8000 python-config is not installed since version 20 · Issue #1808 · pypa/virtualenv · GitHub
[go: up one dir, main page]

Skip to content
python-config is not installed since version 20 #1808
@iguanaonmystack

Description

@iguanaonmystack

Issue

Prior to virtualenv version 20, eg 16.7.10, virtualenv installs python-config in the virtualenv's bin directory. Since version 20 this no longer happens.

$ pip3 install --user virtualenv\<20
$ ~/.local/bin/virtualenv --version
16.7.10
$ ~/.local/bin/virtualenv venv-16
$ ls venv-16/bin/
activate      activate.fish  activate_this.py  easy_install      pip   pip3.8  python3    python-config
activate.csh  activate.ps1   activate.xsh      easy_install-3.8  pip3  python  python3.8  wheel
$ pip3 install --user --upgrade virtualenv
[...]
Installing collected packages: virtualenv
  Attempting uninstall: virtualenv
    Found existing installation: virtualenv 16.7.10
    Uninstalling virtualenv-16.7.10:
      Successfully uninstalled virtualenv-16.7.10
Successfully installed virtualenv-20.0.18
$ ~/.local/bin/virtualenv --version
virtualenv 20.0.18 from /home/iguana/.local/lib/python3.8/site-packages/virtualenv/__init__.py
$ ~/.local/bin/virtualenv venv-20
$ ls venv-20/bin/
activate      activate.fish  activate_this.py  easy_install   easy_install-3.8  pip3     pip3.8  python3    wheel   wheel-3.8
activate.csh  activate.ps1   activate.xsh      easy_install3  pip               pip-3.8  python  python3.8  wheel3

Environment

  • OS: Debian sid

  • pip list of the host python where virtualenv is installed:

$ pip3 list
Package Version


appdirs 1.4.3
apsw 3.30.1.post1
asn1crypto 0.24.0
astropy 4.0
atomicwrites 1.3.0
attrs 19.3.0
Automat 0.8.0
backcall 0.1.0
bcrypt 3.1.7
beautifulsoup4 4.9.0
black 19.10b0
blinker 1.4
boto 2.49.0
Brlapi 0.7.0
certifi 2019.11.28
cffi 1.14.0
chardet 3.0.4
Click 7.0
colorama 0.4.3
configobj 5.0.6
constantly 15.1.0
cryptography 2.8
css-parser 1.0.4
cssselect 1.1.0
cssutils 1.0.2
cupshelpers 1.0
cycler 0.10.0
Cython 0.29.14
dateparser 0.7.2
dbus-python 1.2.16
decorator 4.4.2
distlib 0.3.0
distro 1.4.0
dnspython 1.16.0
docutils 0.16
EbookLib 0.17.1
entrypoints 0.3
evdev 1.3.0
ExifRead 2.1.2
fabric 2.5.0
feedparser 5.2.1
filelock 3.0.12
flake8 3.7.9
Flask 1.1.2
gpg 1.13.1-unknown
html2text 2020.1.16
html5-parser 0.4.9
html5lib 1.0.1
httplib2 0.14.0
hyperlink 19.0.0
hypothesis 4.36.2
idna 2.8
ifaddr 0.1.6
ijson 2.3
importlib-metadata 1.6.0
incremental 16.10.1
invoke 1.3.0
iotop 0.6
ipython 7.13.0
ipython-genutils 0.2.0
itsdangerous 1.1.0
jedi 0.16.0
jeepney 0.4.3
Jinja2 2.11.1
kazam 1.4.5
keyring 18.0.1
keyrings.alt 3.4.0
kiwisolver 1.0.1
libevdev 0.5
lightdm-gtk-greeter-settings 1.2.2
louis 3.13.0
lxml 4.5.0
Markdown 3.1.1
MarkupSafe 1.1.1
matplotlib 3.2.1
mccabe 0.6.1
mechanize 0.4.5
more-itertools 4.2.0
msgpack 0.6.2
musicbrainzngs 0.7.1
mutagen 1.40.0
mysqlclient 1.4.4
netifaces 0.10.9
numpy 1.18.3
olefile 0.46
packaging 20.3
paramiko 2.6.0
parsel 1.5.2
parso 0.6.2
pathspec 0.8.0
pexpect 4.6.0
pickleshare 0.7.5
Pillow 7.0.0
pip 20.0.2
pluggy 0.13.0
ply 3.11
prompt-toolkit 2.0.10
psutil 5.6.7
py 1.8.1
pyasn1 0.4.2
pyasn1-modules 0.2.1
pycairo 1.16.2
pychm 0.8.6
pycodestyle 2.5.0
pycparser 2.20
pycrypto 2.6.1
pycups 1.9.73
pycurl 7.43.0.2
PyDispatcher 2.0.5
pyflakes 2.1.1
Pygments 2.3.1
PyGObject 3.36.0
PyHamcrest 1.9.0
pyinotify 0.9.6
PyNaCl 1.3.0
pyOpenSSL 19.1.0
pyparsing 2.4.6
PyQt5 5.14.2
PyQtWebEngine 5.14.0
PySimpleSOAP 1.16.2
pysmbc 1.0.15.6
pytest 4.6.9
pytest-arraydiff 0.3
pytest-astropy 0.7.0
pytest-astropy-header 0.1.2
pytest-doctestplus 0.5.0
pytest-openfiles 0.5.0
pytest-remotedata 0.3.2
python-apt 1.8.6
python-dateutil 2.8.1
python-debian 0.1.37
python-debianbts 3.0.2
pytz 2019.3
pyudev 0.21.0
pyxattr 0.6.1
pyxdg 0.26
PyYAML 5.3.1
pyzmq 18.1.1
queuelib 1.5.0
quodlibet 4.2.1
ranger-fm 1.9.3
regex 2019.8.19
reportbug 7.6.0
repoze.lru 0.7
requests 2.23.0
roman 2.0.0
Routes 2.4.1
Rtree 0.9.4
scipy 1.4.1
scour 0.37
Scrapy 1.7.3
SecretStorage 3.1.2
service-identity 18.1.0
setuptools 46.1.3
simplegeneric 0.8.1
simplejson 3.17.0
sip 4.19.22
six 1.14.0
soupsieve 2.0
toml 0.10.0
tqdm 4.43.0
traitlets 4.3.3
Twisted 18.9.0
typed-ast 1.4.1
tzlocal 2.1b1
ujson 1.35
urllib3 1.25.8
vboxapi 1.0
virtualenv 20.0.19
w3lib 1.21.0
wcwidth 0.1.9
webencodings 0.5.1
WebOb 1.8.6
Werkzeug 0.16.1
wheel 0.34.2
WTForms 2.2.1
youtube-dl 2020.3.24
zeroconf 0.23.0
zipp 1.0.0
zope.interface 4.7.1


**Output of the virtual environment creation**

Make sure to run the creation with `-vvv --with-traceback`:

```console
$ ~/.local/bin/virtualenv -vvv --with-traceback venv-20
44 setup logging to NOTSET [DEBUG report:42]
72 find interpreter for spec PythonSpec(path=/usr/bin/python3) [INFO builtin:44]
73 proposed PythonInfo(spec=CPython3.8.3.candidate.1-64, exe=/usr/bin/python3, platform=linux, version='3.8.3rc1 (default, Apr 30 2020, 07:33:30) \n[GCC 9.3.0]', encoding_fs_io=utf-8-utf-8) [INFO builtin:50]
73 accepted PythonInfo(spec=CPython3.8.3.candidate.1-64, exe=/usr/bin/python3, platform=linux, version='3.8.3rc1 (default, Apr 30 2020, 07:33:30) \n[GCC 9.3.0]', encoding_fs_io=utf-8-utf-8) [DEBUG builtin:52]
75 filesystem is case-sensitive [DEBUG info:28]
124 create virtual environment via CPython3Posix(dest=/home/iguana/venv-20, clear=False, global=False) [INFO session:52]
124 create folder /home/iguana/venv-20/bin [DEBUG _sync:21]
124 create folder /home/iguana/venv-20/lib/python3.8/site-packages [DEBUG _sync:21]
124 write /home/iguana/venv-20/pyvenv.cfg [DEBUG pyenv_cfg:34]
124 	home = /usr [DEBUG pyenv_cfg:38]
125 	implementation = CPython [DEBUG pyenv_cfg:38]
125 	version_info = 3.8.3.candidate.1 [DEBUG pyenv_cfg:38]
125 	virtualenv = 20.0.19 [DEBUG pyenv_cfg:38]
125 	include-system-site-packages = false [DEBUG pyenv_cfg:38]
125 	base-prefix = /usr [DEBUG pyenv_cfg:38]
125 	base-exec-prefix = /usr [DEBUG pyenv_cfg:38]
125 	base-executable = /usr/bin/python3 [DEBUG pyenv_cfg:38]
125 symlink /usr/bin/python3 to /home/iguana/venv-20/bin/python [DEBUG _sync:40]
125 create virtualenv import hook file /home/iguana/venv-20/lib/python3.8/site-packages/_virtualenv.pth [DEBUG api:95]
125 create /home/iguana/venv-20/lib/python3.8/site-packages/_virtualenv.py [DEBUG api:98]
125 ============================== target debug ============================== [DEBUG session:54]
126 debug via /home/iguana/venv-20/bin/python /home/iguana/.local/lib/python3.8/site-packages/virtualenv/create/debug.py [DEBUG creator:187]
125 {
"sys": {
  "executable": "/home/iguana/venv-20/bin/python",
  "_base_executable": "/home/iguana/venv-20/bin/python",
  "prefix": "/home/iguana/venv-20",
  "base_prefix": "/usr",
  "real_prefix": null,
  "exec_prefix": "/home/iguana/venv-20",
  "base_exec_prefix": "/usr",
  "path": [
    "/usr/lib/python38.zip",
    "/usr/lib/python3.8",
    "/usr/lib/python3.8/lib-dynload",
    "/home/iguana/venv-20/lib/python3.8/site-packages"
  ],
  "meta_path": [
    "<class '_virtualenv._Finder'>",
    "<class '_frozen_importlib.BuiltinImporter'>",
    "<class '_frozen_importlib.FrozenImporter'>",
    "<class '_frozen_importlib_external.PathFinder'>"
  ],
  "fs_encoding": "utf-8",
  "io_encoding": "utf-8"
},
"version": "3.8.3rc1 (default, Apr 30 2020, 07:33:30) \n[GCC 9.3.0]",
"makefile_filename": "/usr/lib/python3.8/config-3.8-x86_64-linux-gnu/Makefile",
"os": "<module 'os' from '/usr/lib/python3.8/os.py'>",
"site": "<module 'site' from '/usr/lib/python3.8/site.py'>",
"datetime": "<module 'datetime' from '/usr/lib/python3.8/datetime.py'>",
"math": "<module 'math' (built-in)>",
"json": "<module 'json' from '/usr/lib/python3.8/json/__init__.py'>"
} [DEBUG session:55]
157 add seed packages via FromAppData(download=True, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1) [INFO session:59]
157 Attempting to acquire lock 140040557034272 on /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels.lock [DEBUG filelock:270]
158 Lock 140040557034272 acquired on /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels.lock [INFO filelock:274]
159 get bundled wheel /home/iguana/.local/lib/python3.8/site-packages/virtualenv/seed/embed/wheels/pip-20.1-py2.py3-none-any.whl [DEBUG acquire:51]
159 get bundled wheel /home/iguana/.local/lib/python3.8/site-packages/virtualenv/seed/embed/wheels/setuptools-46.1.3-py3-none-any.whl [DEBUG acquire:51]
160 get bundled wheel /home/iguana/.local/lib/python3.8/site-packages/virtualenv/seed/embed/wheels/wheel-0.34.2-py2.py3-none-any.whl [DEBUG acquire:51]
160 download wheels ['wheel'] [DEBUG acquire:133]
163 download wheels ['setuptools'] [DEBUG acquire:133]
166 download wheels ['pip'] [DEBUG acquire:133]
2016 install wheel from wheel /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels/wheel-0.34.2-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
2016 install pip from wheel /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels/pip-20.1-py2.py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
2016 install setuptools from wheel /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels/setuptools-46.1.3-py3-none-any.whl via CopyPipInstall [DEBUG via_app_data:46]
2017 copy /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel-0.34.2.virtualenv to /home/iguana/venv-20/lib/python3.8/site-packages/wheel-0.34.2.virtualenv [DEBUG _sync:48]
2017 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/setuptools-46.1.3-py3-none-any/pkg_resources to /home/iguana/venv-20/lib/python3.8/site-packages/pkg_resources [DEBUG _sync:48]
2017 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/pip-20.1-py2.py3-none-any/pip to /home/iguana/venv-20/lib/python3.8/site-packages/pip [DEBUG _sync:48]
2018 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel to /home/iguana/venv-20/lib/python3.8/site-packages/wheel [DEBUG _sync:48]
2023 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/wheel-0.34.2-py2.py3-none-any/wheel-0.34.2.dist-info to /home/iguana/venv-20/lib/python3.8/site-packages/wheel-0.34.2.dist-info [DEBUG _sync:48]
2026 copy /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/setuptools-46.1.3-py3-none-any/setuptools-46.1.3.virtualenv to /home/iguana/venv-20/lib/python3.8/site-packages/setuptools-46.1.3.virtualenv [DEBUG _sync:48]
2028 changing mode of /home/iguana/venv-20/bin/wheel-3.8 to 755 [INFO util:566]
2028 copy /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/setuptools-46.1.3-py3-none-any/easy_install.py to /home/iguana/venv-20/lib/python3.8/site-packages/easy_install.py [DEBUG _sync:48]
2028 changing mode of /home/iguana/venv-20/bin/wheel to 755 [INFO util:566]
2028 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/setuptools-46.1.3-py3-none-any/setuptools-46.1.3.dist-info to /home/iguana/venv-20/lib/python3.8/site-packages/setuptools-46.1.3.dist-info [DEBUG _sync:48]
2028 changing mode of /home/iguana/venv-20/bin/wheel3 to 755 [INFO util:566]
2029 generated console scripts wheel wheel-3.8 wheel3 [DEBUG base:53]
2031 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/setuptools-46.1.3-py3-none-any/setuptools to /home/iguana/venv-20/lib/python3.8/site-packages/setuptools [DEBUG _sync:48]
2047 changing mode of /home/iguana/venv-20/bin/easy_install3 to 755 [INFO util:566]
2047 changing mode of /home/iguana/venv-20/bin/easy_install-3.8 to 755 [INFO util:566]
2048 changing mode of /home/iguana/venv-20/bin/easy_install to 755 [INFO util:566]
2048 generated console scripts easy_install easy_install-3.8 easy_install3 [DEBUG base:53]
2071 copy directory /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/pip-20.1-py2.py3-none-any/pip-20.1.dist-info to /home/iguana/venv-20/lib/python3.8/site-packages/pip-20.1.dist-info [DEBUG _sync:48]
2072 copy /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/image/CopyPipInstall/pip-20.1-py2.py3-none-any/pip-20.1.virtualenv to /home/iguana/venv-20/lib/python3.8/site-packages/pip-20.1.virtualenv [DEBUG _sync:48]
2073 changing mode of /home/iguana/venv-20/bin/pip-3.8 to 755 [INFO util:566]
2073 changing mode of /home/iguana/venv-20/bin/pip3 to 755 [INFO util:566]
2073 changing mode of /home/iguana/venv-20/bin/pip to 755 [INFO util:566]
2073 changing mode of /home/iguana/venv-20/bin/pip3.8 to 755 [INFO util:566]
2074 generated console scripts pip pip3.8 pip-3.8 pip3 [DEBUG base:53]
2074 Attempting to release lock 140040557034272 on /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels.lock [DEBUG filelock:315]
2074 Lock 140040557034272 released on /home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1/3.8/wheels.lock [INFO filelock:318]
2074 add activators for Bash, CShell, Fish, PowerShell, Python, Xonsh [INFO session:64]
2075 write /home/iguana/venv-20/pyvenv.cfg [DEBUG pyenv_cfg:34]
2075 	home = /usr [DEBUG pyenv_cfg:38]
2075 	implementation = CPython [DEBUG pyenv_cfg:38]
2075 	version_info = 3.8.3.candidate.1 [DEBUG pyenv_cfg:38]
2075 	virtualenv = 20.0.19 [DEBUG pyenv_cfg:38]
2075 	include-system-site-packages = false [DEBUG pyenv_cfg:38]
2075 	base-prefix = /usr [DEBUG pyenv_cfg:38]
2075 	base-exec-prefix = /usr [DEBUG pyenv_cfg:38]
2075 	base-executable = /usr/bin/python3 [DEBUG pyenv_cfg:38]
2075 created virtual environment CPython3.8.3.candidate.1-64 in 2033ms
creator CPython3Posix(dest=/home/iguana/venv-20, clear=False, global=False)
seeder FromAppData(download=True, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/home/iguana/.local/share/virtualenv/seed-app-data/v1.0.1)
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator [WARNING __main__:21]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0