-
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
Fail to resolve dependency when install_requires and extras_require have same package with different extras. #7714
Comments
Similar to #7096, but one with extras and one without, instead of with different extras. |
@uranusjr I've read the announcement of pip 20.1b1 release including the new resolver. Since this issue 7714 is checked at this comment, I tested by my self, however, I couldn't confirm.
Result;
Still |
Thanks for testing. I have identified the problem: the new resolver does not handle extras correctly when you install a requirement directly by path. This is because we are not passing extras correctly with |
I’ve proposed a PR to fix the new resolver, and the progress will be tracked there. Meanwhile I think this can be closed with the same reasoning as #7096. |
Environment
Docker image python:latest
Description
If I specify same package with different extras at
install_requires
andextras_require
,pip fails to resolve dependancy.
For example,
install_require=['pandas']
andextras_require={'dev': ['pandas[test]']}
pip install .[dev]
never install extra dependancies defined bypandas[test]
(aka.pytest
etc.)Expected behavior
pip install .
-> Same result withpip install pandas && pip install .
pip install .[dev]
-> Same result withpip install pandas[test] && pip install .
How to Reproduce
Output
Info
If I remove
install_requires='pandas'
, thenpandas['test']
dependancies are installed bypip install .[dev]
correctly.The text was updated successfully, but these errors were encountered: