Ray Donnelly <[email protected]> added the comment:
Bit of an update to this, I'm re-opening it as there appears to be a regression
from Python 3.7.1 to 3.7.2 for the case when there is no venvlauncher.exe
present (i.e. when there are no python{w,}.exes in Lib\venv\scripts\nt). The
old code of copying `sys.executable` is no longer run (on Windows only).
Currently Anaconda Distribution's venv is done this way. Should we change it to
use the same method as official CPython Windows releases?
Here is a diff I think we need to apply for now, if you feel it is reasonable
to make a PR then I'm happy to do so.
```
$ diff -urN Lib/venv/__init__.py.orig Lib/venv/__init__.py
--- Lib/venv/__init__.py.orig 2019-01-02 20:56:45.015131800 +0000
+++ Lib/venv/__init__.py 2019-01-02 20:56:55.330130800 +0000
@@ -188,9 +188,9 @@
binpath = context.bin_path
path = context.env_exe
copier = self.symlink_or_copy
+ copier(context.executable, path)
dirname = context.python_dir
if os.name != 'nt':
- copier(context.executable, path)
if not os.path.islink(path):
os.chmod(path, 0o755)
for suffix in ('python', 'python3'):
```
----------
status: closed -> open
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue35644>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com