-
Notifications
You must be signed in to change notification settings - Fork 3k
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 fails on different compatible ~= version specifiers #12229
Comments
|
Sorry I misread. pip should find 1.0.0 as mentioned. |
From a first look this seems to be a bug in the provider. I think the provider is incorrectly supplying 1.1.0 as a compatible version, but the resolver correctly identifies this as an inconsistency. |
I had a poke around it looks like the issue is coming from the As an example
This appears to be because the And so when the provider tries to combine the specifiers, it's resulting in only the |
I've confirmed that this issue is fixed by the packaging fix pypa/packaging#493. So I will close this issue as a duplicate of #9613. |
Description
Say we have four wheels
When trying to install
package_3
pip fails withExpected behavior
pip should install a version of
package_1
that satisfies both of thepackage_2
andpackage_3
requirements. That is it should installpackage_1-1.0.0
.pip version
23.2.1
Python version
3.9.17
OS
Ubuntu 20.04.4 LTS
How to Reproduce
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: