mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Don't chmod() if path is a symlink.
This commit is contained in:
parent
e3fcfc240d
commit
adaddde369
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,8 @@ class EnvBuilder:
|
||||||
# Issue 18807: make copies if
|
# Issue 18807: make copies if
|
||||||
# symlinks are not wanted
|
# symlinks are not wanted
|
||||||
copier(context.env_exe, path)
|
copier(context.env_exe, path)
|
||||||
os.chmod(path, 0o755)
|
if not os.path.islink(path):
|
||||||
|
os.chmod(path, 0o755)
|
||||||
else:
|
else:
|
||||||
subdir = 'DLLs'
|
subdir = 'DLLs'
|
||||||
include = self.include_binary
|
include = self.include_binary
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue