-
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
Feature request: flag to unset --extra-index-url #6394
Comments
May be related to #4263, which tries to solve this kind of issue in a general way. An extension to that proposal could take this use case into account without creating more command-line options. Could also be related to #6131, which suggests that an empty value for |
I believe this should be prioritised as a security issue. Lack of ability to force certain index in |
similarly for |
I have had this issue and I used
option, which was able to solve my issue. Maybe it will be useful to others? |
What's the problem this feature will solve?
If
extra-index-url
is set in/etc/pip.conf
or equivalent, it's not possible (as far as I'm aware) to unset this option in a pip command. You can replace--index-url
but not unset--extra-index-url
. If you have a third-party source set as an additional index, but want to explicitly install from PyPI, you have to clear/etc/pip.conf
.Describe the solution you'd like
Either a new flag to disable
extra-index-url
, or a new flag to specify to explicitly use one index, e.g:Alternative Solutions
As far as I'm aware, the only alternative is to delete
/etc/pip.conf
, and there's no way to tell pip not to use it for a particular use.Additional context
I maintain a third-party repo at piwheels.org for Raspberry Pi users and we pre-configure
/etc/pip.conf
in Raspbian to setextra-index-url
. If users want to make sure their installation comes from PyPI one time, they have to remove/etc/pip.conf
.One such reason for this is when a package's requirements.txt specifies hashes from PyPI, e.g. piwheels/piwheels#144
The text was updated successfully, but these errors were encountered: