[issue46028] 3.11.0a3: under tox, sys._base_executable is wrong
Ned Batchelder
report at bugs.python.org
Sat Dec 11 10:45:36 EST 2021
Ned Batchelder <ned at nedbatchelder.com> added the comment:
Tox isn't needed, just venv from the stdlib:
$ python3.11.0a2 -m venv venv_a2
$ venv_a2/bin/python -c "import sys,os.path; print(e := sys._base_executable); print(os.path.exists(e))"
/private/tmp/venv_a2/bin/python
True
$ python3.11.0a3 -m venv venv_a3
$ venv_a3/bin/python -c "import sys,os.path; print(e := sys._base_executable); print(os.path.exists(e))"
/usr/local/bin/python
False
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46028>
_______________________________________
More information about the Python-bugs-list
mailing list