Skip to content

PIP_INDEX_URL not used by "pip search package" #8979

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

Closed
joaompinto opened this issue Oct 10, 2020 · 4 comments
Closed

PIP_INDEX_URL not used by "pip search package" #8979

joaompinto opened this issue Oct 10, 2020 · 4 comments

Comments

@joaompinto
Copy link

joaompinto commented Oct 10, 2020

Environment

  • pip version: 20.2.3
  • Python version: 3.8.4
  • OS: Windows

PIP_INDEX_URL not used by "pip search package".

The behavior of pip search with PIP_INDEX_URL set should be the same as using pip search -i .

How to Reproduce

Output

$ PIP_INDEX_URL=https://www.google.com pip search quickweb
QuickWeb (1.6.0)  - Rapid Development Python Web Framework


lameg@LAPTOP-RK2UJUPM MINGW64 ~
$ pip search -i https://www.google.com search quickweb
ERROR: Exception:
...

@uranusjr
Copy link
Member

uranusjr commented Oct 10, 2020

#2170 contains relevent information.


Edit: #395 seems to be the canonical tracking issue.

@joaompinto
Copy link
Author

@uranusjr from my reading #395 is a much complex and structural change, can we please you keep this issue open ?
From my understanding the current implementation already works as expected for --index-url, so it's just a matter of extending the logic to check for PIP_INDEX_URL.

@uranusjr
Copy link
Member

uranusjr commented Oct 10, 2020

The current implementation does not work for --index-url. It works for -i, but that’s an abbreviation of --index. And it’s not a simple problem of different option names either, since --index-url and --index accept different values. Which is why this ends up requiring a complex structural change.

@joaompinto
Copy link
Author

Ok I am sorry I was not aware of the index vs index-url endpoint difference, understood it now. Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants