-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
Specifying index-url / Private Indexes #36
Comments
It used to be, it is not in the version on github. Now that I also use this version and not my own one, I want to incorporate that functionality back but I never really liked how that worked. Because of how pip installs stuff it's very hard to pin dependencies to a specific index which is what I wanted to actually achieve originally. I'm up for suggestions of how this can be accomplished best with the current state of pip. |
The current state of affairs in the pip world is pretty bad :( |
Only pdm solves that properly |
Pipenv also solves this properly https://pipenv.pypa.io/en/latest/pipfile/#example-pipfile-lock There is no PEP for this though. |
Actually there is a draft pep for this, someone in pip project issue about that shared with me
https://peps.python.org/pep-0708/#what-is-changing 🙏 |
So if I read this correctly it will still consult both of them but error if it finds it in more than one. That's I guess better than nothing but quite unfortunate behavior. I much prefer what pdm does here. |
Apparently in the original proposal there was a "repository file" that would let the end user specify the exact repository to pull a dependency from. This was "handwaved away" so I guess package managers will be expected to decide on how they want to do this themselves. https://docs.google.com/document/d/184fQkb6NggVQfYmjTDA7p_U3iWDKk6grc2DigT1X3Es/edit |
Any update for this feature? stucked using private pypi. |
@futurist I'm currently considering adding a temporary hack in to unblock basic uses. |
would be great, especially for pytorch where this is super common. |
Is it possible to specify
--index-url
when adding a dependency to a project?The text was updated successfully, but these errors were encountered: