-
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 upgrade warning is bypassed when pip is a dependency #6841
Comments
Yeah, the heuristics for working out when we're trying to use pip to upgrade itself aren't 100% reliable. I don't think anyone would object to improved detection of this case, but we don't know how to do it. Suggestions (and working code 🙂) welcome, of course! |
Hmm... We're checking if "pip" is in the requirement set, which should be robust to this. I guess there's something about this assumption when I wrote that, that's not correct. 🙃 |
I think it's that pip is not in the explicit requirement set, but is pulled in as a dependency when installing one of the requested requirements. I don't think we can do much about that, as we only find out once the install process has started (although I may well be wrong, I'm going from a pretty vague memory of how it works...) |
Right. We're both speculating from memory. XD I've fallen for this before so... let's wait till someone finds the time to investigate what's actually happening. |
I've tried to reproduce the issue on AppVeyor and found that adding "pip" to the list below fixes easily the issue: pip/src/pip/_internal/utils/misc.py Lines 1189 to 1193 in f377148
Checkout my test case and AppVeyor log: Tried on atugushev@8462580 |
Reopening given #7557. |
Helping to debug a contributor setup issue at the PyCon AU sprints, we eventually tracked the problem down to:
The text was updated successfully, but these errors were encountered: