Commit 432810f9 authored by Vinay Sajip's avatar Vinay Sajip

Issue #18807: If copying (no symlinks) specified for a venv, then the python...

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.
parent 3207a030
...@@ -212,7 +212,10 @@ class EnvBuilder: ...@@ -212,7 +212,10 @@ class EnvBuilder:
for suffix in ('python', 'python3'): for suffix in ('python', 'python3'):
path = os.path.join(binpath, suffix) path = os.path.join(binpath, suffix)
if not os.path.exists(path): 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: else:
subdir = 'DLLs' subdir = 'DLLs'
include = self.include_binary include = self.include_binary
......
...@@ -18,6 +18,10 @@ Core and Builtins ...@@ -18,6 +18,10 @@ Core and Builtins
Library 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 - Issue #14710: pkgutil.get_loader() no longer raises an exception when None is
found in sys.modules. found in sys.modules.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment