summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-05-16 22:53:58 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-05-16 22:53:58 (GMT)
commit1486cb6e1c77cf36049d10717099af7b27dd4934 (patch)
tree35d87b5ae7a5f281b2bf8029e0d8733e1783e026 /src/engine/SCons/Node
parent0821956ca661d728764062dd0ddc9971181116b3 (diff)
downloadSCons-1486cb6e1c77cf36049d10717099af7b27dd4934.zip
SCons-1486cb6e1c77cf36049d10717099af7b27dd4934.tar.gz
SCons-1486cb6e1c77cf36049d10717099af7b27dd4934.tar.bz2
PY2/3 For the time being disable using soft or hard links in duplicating files on win32. It's supported under PY3, but SCons will need more work to make sure it's used in a consistant way and if user permissions are needed if they user has them
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r--src/engine/SCons/Node/FS.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/engine/SCons/Node/FS.py b/src/engine/SCons/Node/FS.py
index 64b2e3f..d98f7d0 100644
--- a/src/engine/SCons/Node/FS.py
+++ b/src/engine/SCons/Node/FS.py
@@ -220,7 +220,12 @@ needs_normpath_match = needs_normpath_check.match
# there should be *no* changes to the external file system(s)...
#
-if hasattr(os, 'link'):
+# For Now disable hard & softlinks for win32
+# PY3 supports them, but the rest of SCons is not ready for this
+# in some cases user permissions may be required.
+# TODO: See if theres a reasonable way to enable using links on win32/64
+
+if hasattr(os, 'link') and sys.platform != 'win32':
def _hardlink_func(fs, src, dst):
# If the source is a symlink, we can't just hard-link to it
# because a relative symlink may point somewhere completely
@@ -236,7 +241,7 @@ if hasattr(os, 'link'):
else:
_hardlink_func = None
-if hasattr(os, 'symlink'):
+if hasattr(os, 'symlink') and sys.platform != 'win32':
def _softlink_func(fs, src, dst):
fs.symlink(src, dst)
else: