-
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 install upgrade will not upgrade package if extras_require specified. #10173
Comments
I can reproduce with pip 21.1.x but not with 21.0.1 and not with main. I have tracked the issue down to 778778c; prior to that it works as expected. I don't know whether a 21.1.4 release is planned, but 21.2 should be out soon (follow #10106 for updates). In the interim downgrading to 21.0.1 should work around this. |
Thanks Dominic for the info! |
I took a look at the changes (thanks @domdfcoding for the additional info, that saved me a ton of time!) and it seems the previous implementation “worked” accidentally because we were handling packages with extras incorrectly. 778778c fixed that handling but unfortunately broke the accidental code path that made this work. 73edd74 then implemented a proper code path (for something else about extras that never worked) and incidentally also correctly handled the issue. Extras are the worst 🙄 @wangchao1230 Would you be interested in contributing a test case so we don’t accidentally break this in the future? A test function in |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Description
Expected behavior
# this command will upgrade if the [pandas] extras_require specified pip install azureml-dataprep[pandas] --upgrade
pip version
21.1.3
Python version
Python 3.7.6
OS
Windows
How to Reproduce
See description part.
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: