-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip tries to install setuptools 45.0.0 on Python 2 #7586
Comments
pip does it because setuptools 45.0.0 declares itself to be Python 2 compatible. Regardless of the actual situation (I have little knowledge about), pip is doing what it is supposed to do, and any fix should happen on setuptools. Suggest to close this as wrong project. |
@uranusjr According to PyPI, That said, I can't reproduce it. |
@pganssle Hmm interesting. I did not do a throughout check (should have, sorry) and was assuming based on the wheel being declared |
setuptools 45.0.0 correctly indicates that it is only compatible with Python >= 3.5 (see here, which is included in 45.0.0). On upload to PyPI, this value is propagated to In your log it looks like you are using two mirrors. Here are the setuptools pages that pip would look at:
Mirror 1 looks like it is correctly populating the |
This is correct; we pre-build wheels and setup Given a directory full of .whl files, how would we determine the |
Here are the specific standards-compliant steps to get the value from a wheel:
If these don't work then pip wouldn't've been able to install the wheel anyway. Make sure to encode the value as described in PEP 503. |
Thanks, Christopher. @chrahunt |
Any time. I will close this now, but please let us know if you have any other concerns. Thanks! |
This is pip version of pypa/virtualenv#1493 and pypa/setuptools#1963
Please look there for more background.
I know Python 2 is EOL and killable so feel free to ignore but please notice this means pip does not behave as advertised.
Environment
Description
setuptools 45.0.0 tries to install on Python 2 but it is not meant to be installed on Python < 3.5
Expected behavior
pip installs setuptools<45
per setuptools docs:
How to Reproduce
Output
http://paste.openstack.org/show/788302/
The text was updated successfully, but these errors were encountered: