-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Issue
the home
value in pyvenv.cfg
is inconsistent when generated by venv
and virtualenv
:
$ python3.10 -m venv venv
$ grep home venv/pyvenv.cfg
home = /usr/bin
vs
$ virtualenv --python python3.10 virtualenv
created virtual environment CPython3.10.0.final.0-64 in 114ms
creator CPython3Posix(dest=/home/cyril/work/cpython/virtualenv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/cyril/.local/share/virtualenv)
added seed packages: pip==21.3.1, setuptools==58.5.3, wheel==0.37.0
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
$ grep home virtualenv/pyvenv.cfg
home = /usr
home
is:
/usr/bin
withvenv
/usr̀
withvirtualenv
.
I would expect to have the same value (/usr/bin
).
the value of the home key is the directory containing the Python executable used to create this virtual environment
Environment
Provide at least:
- OS: ubuntu 21.10
pip list
of the host python wherevirtualenv
is installed:
Package Version
--------------------------------- -------
backports.entry-points-selectable 1.1.1
distlib 0.3.3
filelock 3.4.0
pip 21.3.1
pkg_resources 0.0.0
platformdirs 2.4.0
setuptools 59.4.0
six 1.16.0
virtualenv 20.10.0
wheel 0.37.0
Output of the virtual environment creation
Make sure to run the creation with -vvv --with-traceback
: