aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-12 18:16:39 -0400
committerJack Lloyd <[email protected]>2018-08-12 18:16:39 -0400
commitf21693a2499e10fae7a07f7d80178874115a185c (patch)
treef6d0e707e1615c40838ccb04cd13fe53995476fc
parent58408361f32712af812eb5023828ecd0b6ad0996 (diff)
Avoid trying to use symlinks by default on any Windows platforms
GH #1645
-rwxr-xr-xconfigure.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.py b/configure.py
index 55bbe5d27..26f606c7f 100755
--- a/configure.py
+++ b/configure.py
@@ -2271,11 +2271,13 @@ def choose_link_method(options):
# Symbolic link support on Windows was introduced in Windows 6.0 (Vista) and Python 3.2
# Furthermore the SeCreateSymbolicLinkPrivilege is required in order to successfully create symlinks
# So only try to use symlinks on Windows if explicitly requested
- if req == 'symlink' and options.os == 'windows':
- yield 'symlink'
- # otherwise keep old conservative behavior
- if 'symlink' in os.__dict__ and options.os != 'windows':
+
+ if options.os in ['windows', 'mingw', 'cygwin']:
+ if req == 'symlink':
+ yield 'symlink'
+ elif 'symlink' in os.__dict__:
yield 'symlink'
+
if 'link' in os.__dict__:
yield 'hardlink'
yield 'copy'