-
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
When pip was not installed by pip, don't show the upgrade warning #5368
Conversation
And of course, I broke the tests :) |
44a700e
to
5196c74
Compare
Fixed and added tests! Travis CI is failing with mypy, but it seems unrelated. |
Would be nice to check how this behaves on Windows. I have no idea and the monkeypatching might cover up the default behavior there. |
I'll look into the mypy issues tonight. |
master should be fixed, thanks to @DanielShaulov! :) |
OK, let's rebase this. |
5196c74
to
e4a4b91
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM other than the news file.
news/5346.bugfix
Outdated
@@ -0,0 +1,3 @@ | |||
When pip is installed by another package manager (mostly Linux |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable pip's version check (and upgrade message) when installed by a different package manager.
This works better with Linux distributions where pip's upgrade message may
result in users running pip in a manner that modifies files that should be
managed by the OS's package manager.
The first line being long is fine. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a10c7229691f8311376ee25457b303d605436e54
Hello! I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the |
a10c722
to
d0b7708
Compare
Thanks @pradyunsg |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Implements behavior as discussed in #5346.