-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
search
command uses --index, while install
uses --index-url
#589
Comments
An issue is that Not sure how to define in the config files different values for |
This is causing us a lot of headaches because our configuration management tool requires an index url, but it doesn't expose whether it is using it for search or for install (spoiler: it does BOTH) and so having to figure out why the calls are failing simply because of the presence or absence of /simple is NOT an exercise that should be required by the user of pip. Pip should accept one format of index-url globally and automatically append /simple if that is required for installation, or better yet if it was passed --index-url and not --index if it sees /simple at the end of the URL it REMOVES the extra /simple automatically when performing a search. Having the intelligence in pip would allow you to make it backwards compatible with the old options, but accepting a single style for BOTH calls as well as supporting the config file's index URL for searching, this would be HUGE. |
hi @dragon788, of course you are right. However, is it possible to omit both options from the pip command and put them in /etc/pip.conf instead? Then both search and install should work without index-url and/or index. |
This is essentially a duplicate of #395 since that is the reason why we have different names for these configurations. |
It is confusing and got it wrong right now, I think it would be nice for options that behaves equally to be the same name.
PS.: A rename would break backwards compatibility, and I don't know how many people use this feature.
The text was updated successfully, but these errors were encountered: