diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2014-05-28 08:08:32 +0100 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2014-05-28 08:08:32 +0100 |
commit | f9e77b311f7fb8dd3d52ef43276067a841166bdc (patch) | |
tree | 2ce47be542e13595cfb6156c0fd9f1d088c771fb | |
parent | a5f6ef84575e51a54fe536dea050af22c1ae37a0 (diff) | |
parent | 432810f9f35c014afecbd24edda6b26a3cf04fd9 (diff) | |
download | cpython-git-f9e77b311f7fb8dd3d52ef43276067a841166bdc.tar.gz |
Issue #18807: Merged fix from 3.4.
-rw-r--r-- | Lib/venv/__init__.py | 5 | ||||
-rw-r--r-- | Misc/NEWS | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py index 20dafc0353..252bffbd7b 100644 --- a/Lib/venv/__init__.py +++ b/Lib/venv/__init__.py @@ -212,7 +212,10 @@ class EnvBuilder: for suffix in ('python', 'python3'): path = os.path.join(binpath, suffix) if not os.path.exists(path): - os.symlink(exename, path) + # Issue 18807: make copies if + # symlinks are not wanted + copier(context.env_exe, path) + os.chmod(path, 0o755) else: subdir = 'DLLs' include = self.include_binary @@ -91,6 +91,10 @@ Core and Builtins Library ------- +- Issue #18807: If copying (no symlinks) specified for a venv, then the python + interpreter aliases (python, python3) are now created by copying rather than + symlinking. + - Issue #20197: Added support for the WebP image type in the imghdr module. Patch by Fabrice Aneche and Claudiu Popa. |