-
Notifications
You must be signed in to change notification settings - Fork 3k
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
index-url extra-index-url install priority order #5045
Comments
Is that for the same distributions for Because, if for example both indexes provide |
Thanks for your reply! These are two different packages maintained by two different parties.
Downside with this: I have to register a lot of empty placeholder-packages on pypi to make sure none of my private package names is registered by someone else. I'm afraid this might lead to some pollution on pypi in general. Not sure if this is a big deal though... |
Packages are expected to be unique up to name and version, so two wheels with the same package name and version are treated as indistinguishable by pip. This is a deliberate feature of the package metadata, and not likely to change. Rather than registering a whole load of empty packages on PyPI (which as you say, isn't that friendly, although probably OK if you use a unique prefix like |
I think this clears it all, at least on my side. I'll just prefix all private packages. Thanks for the infos! :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
I have this in my
pip.conf
:Let's assume
packageX
exists in both registries and I runpip install packageX
.I expect pip to install
packageX
fromhttps://myregistry-xyz.com
, but pip will usehttps://pypi.python.org/pypi
instead.If I switch the values for
index-url
andextra-index-url
I get the same result. pypi is always prioritized.The text was updated successfully, but these errors were encountered: