Skip to content

Conversation

@f3flight
Copy link

In some environments it is preferred to consume only source files
from some indexes, while consuming wheels from others.
This change enables this scenario and exposes it via a new token
":index:..." allowed within --no-binary and --only-binary options.

Example usage::

pip install blah --extra-index-url 'https://trusted-binaries.local' -no-binary ':index:https://pypi.org'

In some environments it is preferred to consume only source files
from some indexes, while consuming wheels from others.
This change enables this scenario and exposes it via a new token
":index:..." allowed within --no-binary and --only-binary options.

Example usage:
  pip install blah --extra-index-url 'https://trusted-binaries.local'
  --no-binary ':index:https://pypi.org'
@pfmoore
Copy link
Member

pfmoore commented Apr 29, 2022

In some environments

Can you quantify how many environments? If the answer is "only one" (your own) then this doesn't seem worth the additional complexity. If it's relatively common, then that's a different matter.

As a data point, I don't recall ever having seen a request for anything like this before.

And as a workaround, I'm pretty sure you could quite simply set up something like simpleindex or devpi to mirror the external indexes, but only serve source distributions.

@pradyunsg
Copy link
Member

Hah, looks like @pfmoore and I are on the same page. I responded with some more detail in #11071.

@github-actions github-actions bot added the needs rebase or merge PR has conflicts with current master label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase or merge PR has conflicts with current master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants