-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix bypassed pip upgrade warning on Windows #6864
Conversation
3c7fb1f
to
dd58736
Compare
Thanks for the PR! Much appreciated! Can you confirm that this handles the case of invoking pip via pip3 or pip3.7? If not, let's handle that case as well here. |
7f220d7
to
6c98b04
Compare
Thanks for catching! I've fixed it and made the first test parametrized. |
6c98b04
to
9c94307
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.
Thank you for submitting this!
One note, the error message from your Appveyor example here may be a little confusing to someone installing a package.
ERROR: To modify pip, please run the following command: C:\Python36\python.exe -m pip install --upgrade briefcase
Would it be straightforward (and worthwhile) to special-case this to indicate that pip is being modified because it is listed as a dependency (and maybe what it is listed as a dependency of)?
Thanks for reviewing this, Christopher! Appreciated it. I'd prefer to fix that case in the next PR. |
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.
Two more minor comments.
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.
Reviewing this in a hurry -- please don't mind my repetition.
Comments starting with "nit: " are optional suggestions. If you disagree with them, that's cool -- they're not worth spending energy debating over. ;)
Handle the case of invoking pip via pip3 and pip3.7
Fix typos and remove unneeded assertions.
048c1f2
to
360d9b8
Compare
Note, i've added |
Rebased to the latest master Remove unneeded assertions Use create_basic_wheel_for_package Couple other nitpicks
360d9b8
to
173761c
Compare
Fix typos Use script.pip instead of script.run
fc3c3d7
to
f9fc667
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!
Kindly pinging @pradyunsg :) Is there any other issues with this PR? |
Appreciate the ping @atugushev! :) |
Fixes #6841