-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
can pip-compile handle multiple extras of the same package properly #1511
Comments
Hello @zyxue , Thanks for the report. That's because |
Are you sure that's really the cause? I thought I find this change makes the resolution behaving more as expected, https://github.com/jazzband/pip-tools/pull/1512/files, any comment? Or what's the currently suggested work around, please? |
However, I was wrong and the issue was really in the requirements combiner. Sorry, my bad. I've checked your PR and it looks like it fixes the issue. Thanks for the nice catch and the concise solution! |
Doesn't pip have a new solver now since pip-20.3 (https://pip.pypa.io/en/stable/user_guide/#changes-to-the-pip-dependency-resolver-in-20-3-2020), is pip-tools planning to use that instead? Thanks, I'll try to add tests to the PR. |
#1539 adds support for the new resolver. Could you give it a try? |
tried, still the same, it doesn't fix the example I have at the top |
This may be due to pypa/pip#9644. |
@richafrank , tried
so it appears to be working now. |
Wonderful. I'll close this then. Based on the above chatter, @atugushev feel free to reopen if you think there's something else to be done here. |
Environment Versions
Steps to replicate
requirements.in
pip-compile requirements.in --rebuild
My debugging leads to the following:
tune-sklearn
depends onray[tune]
as specified in its setup.py, then pip-compile groups constraints intoray[default,tune]
, which leads to zero dependenciesExpected result
"1.4.0[default,tune]"
should have the deps of bothdefault
andtune
.Actual result
"1.4.0[default,tune]"
has zero deps.The text was updated successfully, but these errors were encountered: