Closed anderssonjohan closed 7 months ago
This is not really a bug. There are many pipx
options not implemented and --index-url
is one of them so should have raised it as a "request" or "enhancement". You can inject
packages with a different index-url
so I would need to track the index-url
per package which is really messy and so not being a main use-case I originally decided to not add that option.
However, with commit 7f4ce38ff45def7400c9e599e95465c489166598 I decided to add the option just for install
(and upgrade
and reinstall
). However, it is not supported for inject
. If you inject
a package into an app then the inject
will use the same index-url
as used for the original install. That was not difficult to add and it is at least better than not offering the option at all. If you upgrade
or reinstall
a package then it will use the same index-url
as used for the original install.
The change is included in version 1.9.
To install a tool from a custom index url I use the following with pipx:
Current behavior
Expected behavior
Package installed from custom index server