(original) (raw)

changeset: 90874:f2adaccc13ab parent: 90872:d2588e0a4a95 parent: 90873:ce1b8b2ddf07 user: Vinay Sajip <vinay_sajip@yahoo.co.uk> date: Wed May 28 08:08:32 2014 +0100 files: Misc/NEWS description: Issue #18807: Merged fix from 3.4. diff -r d2588e0a4a95 -r f2adaccc13ab Lib/venv/__init__.py --- a/Lib/venv/__init__.py Tue May 27 21:25:31 2014 +0300 +++ b/Lib/venv/__init__.py Wed May 28 08:08:32 2014 +0100 @@ -212,7 +212,10 @@ 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 diff -r d2588e0a4a95 -r f2adaccc13ab Misc/NEWS --- a/Misc/NEWS Tue May 27 21:25:31 2014 +0300 +++ b/Misc/NEWS Wed May 28 08:08:32 2014 +0100 @@ -91,6 +91,10 @@ 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. </vinay_sajip@yahoo.co.uk>