-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Thoughts on supporting git-style subcommands? #2690
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
Comments
FWIW I'm mildly against this. Older pip doesn't offer this, so anyone offering a broadly compatible extension like pip-init will probably have a standalone command... and document using it like that. |
I tried git style subcommands on twine and it turned out that it caused problems for twine (pypa/twine#74, pypa/twine#32) when not run from the Another problem is that pip is installed by default into every virtual environment, so you'll end up with things like Ultimately unless pip provides an API the only real difference is that you'd be able to type I'm going to go ahead and close this. |
Thanks for the quick responses and sorry I missed the earlier issues! (I looked but used sub-optimal search terms) :) |
I've been thinking about ways to make releasing packages easier lately and one thought was to add a
pip init
command for generating asetup.py
file--but someone beat me to it!git solves integrations like these by including subcommands: it will search
$PATH
for executable files beginning withgit-
; so you can throw an executable file namedgit-rank
into your$PATH
and rungit rank
(no dash) to run the command.I'm looking for feedback on whether a patch to pip that adds git-style subcommands would be welcome or not (because then one could type
pip init
instead ofpip-init
, without modifying pip itself).The text was updated successfully, but these errors were encountered: