setuptools 45.0.0 gets installed on a python 2.7 virtualenv
See original GitHub issueHello,
I have a CI job that creates a virtualenv from an old version (relying on pip==8.1.2
) with python 2.7.
I then ask pip
to update setuptools wheel pip
.
In the process it installs setuptools==45.0.0
and updates pip==19.3.1
.
The rest of the CI fails because pip
refuses to install the other dependencies due to setuptools
incompatibility with python 2.7.
I believe that this could be avoided by removing:
[bdist_wheel]
universal = 1
from setup.cfg
.
What is the reason for keeping this option in the cfg?
Issue Analytics
- State:
- Created 4 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Python virtualenv setuptools package issue - Stack Overflow
If I understood correctly it should not be necessary if the distributions are downloaded directly from PyPI or any other fully compatible index....
Read more >Project Summaries - Python Packaging User Guide
Project Summaries¶. Summaries and links for the most relevant projects in the space of Python installation and packaging.
Read more >Installation - Streamlink 5.1.2 documentation
Another method of installing Streamlink in a non-system-wide way is using virtualenv, which creates a user owned Python environment instead. Install with ...
Read more >Change log : python-pip package : Ubuntu - Launchpad
Drop Python 2 wheels, these may be provided by a separate source package. ... 9.0.0. virtualenv is installing setuptools 45.0.0 into Python 2.7...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
bdist_wheel.universal=1 is still a problem though, because it results in a py2.py3 wheel, which inherently means the file is expected to work with at least some Python 2 interpreter. If this file winds up in a local wheelhouse or a remote one served with an unintelligent index rather than PyPI itself (e.g., Apache mod_autoindex) then pip on Python 2.7 will attempt to install it anyway rather than selecting an older version.
I also had to ask for
setuptools==44.0.0
explicitly. There is already a setuptools installed in the virtualenv, by the older version of pip, and I guess pip won’t downgrade to a working version if you only dopip install -U setuptools
.