-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Changed 'python -mpip' to 'python -m pip' for consistency #19739
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
Conversation
The top-level files INSTALL.rst and README.rst both use the version with the space between the -m and the module that is execute. To be more consistent, this was changed here as well.
It looks like we have a couple more:
and for completeness all the places we do it the other way
This has come up a couple times and I remember that people had strong opinions in either direction, but I do not remember what they are. I suspect pro-' ' is easier to read / seperate the same of the module from the I tend to actually type no-space, but I think for docs the space is easier to read. Thank you for working on this @chbauman and sorry you walked into something with some historical discussions behind it ;) |
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.
I have a weak preference for the other cases to be converted as well, but not going to block on that getting done.
I also tend to type with no space (because why bother), but I recently found out that if the module is a dotted name, then powershell gets confused if there's no space (see the point about |
Thank you for your contribute @chbauman ! Congratulations on your first (I think) Matplotlib PR 🎉 hopefully we will hear from you again. |
Thanks, was actually my second one, but it's also the first project I am contributing to. You will certainly hear more from me. |
@chbauman 🐑 sorry for my mistake, but still glad to have you helping! |
@meeseeksdev backport to v3.4.x |
…p' for consistency
…739-on-v3.4.x Backport PR #19739 on branch v3.4.x (Changed 'python -mpip' to 'python -m pip' for consistency)
The top-level files INSTALL.rst and README.rst both use the version with the space between the -m and the module in the command that is executed. To be more consistent, this was changed here as well.
PR Summary
PR Checklist
pytest
passes).flake8
on changed files to check).flake8-docstrings
and runflake8 --docstring-convention=all
).doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).