mitsuhiko / pipsi

pip script installer
Other
2k stars 133 forks source link

Support for specifying the index #183

Open hexedpackets opened 5 years ago

hexedpackets commented 5 years ago

Currently pipsi only uses the default index URL for fetching packages. pip has both --index-url and --extra-index-url options for changing this location on the fly, which is really useful when installing internally hosted tools.

This can be worked around with environmental variables, but having the flags available would be better.

cs01 commented 5 years ago

pipsi is no longer maintained.

https://github.com/pipxproject/pipx-app is an alternative that is maintained. It supports --index-url and supports other arbitrary pip arguments with --pip-args. See pipx install --help.

So you could do something like

pipx install --pip-args="--index-url URL --extra-index-url EXTRA_URL" PACKAGE