-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Open
Labels
state: needs discussionThis needs some more discussionThis needs some more discussiontype: feature requestRequest for a new featureRequest for a new feature
Description
What's the problem this feature will solve?
In our environment we prefer to consume only source artifacts from the outside world, but not binaries (for ex. wheels). Currently we have to do funky stuff like pip download --no-binary :all: ... + some code to replace downloaded sdists with internally available wheels if version matches + we have a problem with build dependencies and setup dependencies.
Describe the solution you'd like
Add support for a new token :index:<http...> in --no-binary and --only-binary handlers. <http...> is a URL which will be compared against Link.comes_from in LinkEvaluator (where most other binary vs source logic is also located).
Example use case:
pip install blah --extra-index-url https://my-trusted-wheels-source.local --no-binary ":index:https://pypi.org"
Result:
- all wheels found on
pypi.orgare skipped. - wheels on
my-trusted-wheels-source.localare not skipped.
Alternative Solutions
Our team was not able to find a reliable workaround for this scenario.
Additional context
N/A
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
state: needs discussionThis needs some more discussionThis needs some more discussiontype: feature requestRequest for a new featureRequest for a new feature