changeset: 90873:ce1b8b2ddf07 branch: 3.4 parent: 90871:7a293766f525 user: Vinay Sajip date: Wed May 28 08:06:24 2014 +0100 files: Lib/venv/__init__.py Misc/NEWS description: 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. diff -r 7a293766f525 -r ce1b8b2ddf07 Lib/venv/__init__.py --- a/Lib/venv/__init__.py Tue May 27 21:24:43 2014 +0300 +++ b/Lib/venv/__init__.py Wed May 28 08:06:24 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 7a293766f525 -r ce1b8b2ddf07 Misc/NEWS --- a/Misc/NEWS Tue May 27 21:24:43 2014 +0300 +++ b/Misc/NEWS Wed May 28 08:06:24 2014 +0100 @@ -18,6 +18,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 #14710: pkgutil.get_loader() no longer raises an exception when None is found in sys.modules.