Resolver error message is misleading when requested extra is only available in incompatible versions #9683
Labels
C: dependency resolution
About choosing which dependencies to install
C: error messages
Improving error messages
type: enhancement
Improvements to functionality
pip version
21.0.1
Python version
3.9.2
OS
Linux
Additional information
No response
Description
If I try to install a package with the requirements
Authlib==1.0.0a1
,Flask-Multipass>=0.3.1,<0.4-dev
,Flask-Multipass-CERN
pip is not able to install it because ofFlask-Multipass-CERN
requiringFlask-Multipass[authlib]
which in turnrequires
authlib[client]>=0.14.1,<1.0
.However, since
Version('1.0.0a1') < Version('1.0')
succeeds (with the Version class frompackaging
), I would expect the dependency resolution to succeed.Expected behavior
The specified packages should be installed.
How to Reproduce
Create a
setup.cfg
containing this:and a setup.py with
Run
pip install -e .
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: