-
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
pip search does not honor index-url in ~/.pip/pip.conf #4136
Comments
Having a quick look at this, I believe this line is where this is happening. I agree that if you have defined a different index-url in your pip.conf, this should be the preferred default over pypi. |
Well, it's simply because the search API endpoint is completely uncorrelated with the PEP503-defined simple API endpoint. One is specified with the Cf #589 for the corresponding issue. |
@xavfernandez Got it. So in the end, configuring the
That works, though it isn't overly intuitive. It seems that having them both use the index-url setting then overriding the global with the action specific settings so that you can have the unique URL for search versus install would be more intuitive from an implementation perspective. If nothing else, adding a 'Configurations Directives' section to the pip user guide's configuration section that details the viable configuration directives and what they are for would help alleviate much of this confusion. |
It seems to me that having the I might be speaking in ignorance here and maybe this isn't the best place to voice this concern, but it seems like both searching and installation ought to have the ability to specify multiple locations and the order in which they're queried using a common configuration option. Sadly we don't all have the luxury of placing our packages at |
This is essentially a duplicate of #395 since that is the reason why we have different names for these configurations. Sharing the name will only make this more confusing sadly :( |
@dstufft So, there is no fix to the issue that |
Just update: apparently, when I run |
My dockerfile
Still access
|
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:
Currently the pip search command does not honor the index-url or the configuration structure in the ~/.pip/pip.conf
pip search should be updated so that it uses the same logic for handling index-url. So I can define a global path in ~/.pip/pip.conf to apply to both of them or have a subsection of [install] and [search] where I can have a unique index-url for each action.
This is extremely important for anyone using artifactory for a pypi repo.
An optimally supported ~/.pip/pip.conf would be:
What I've run:
When I run
pip install
:when I run
pip search
:The text was updated successfully, but these errors were encountered: