-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Installation from path or url cannot be constrained to a version #6310
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
Comments
This is expected behaviour. A URL or file requirement references a specific set of source code, and so it makes no sense to supply a version specification as well. |
This bothers me as well. In my case I would like to keep constrains for the remaining dependencies. Wound't it be more appropriate to just skip version checking for that single package specified via URL (but not it's dependencies), possibly with warning instead? Or at least provide an option for ignoring that error. Moreover, for projects kept in git we often have the possibility to determine version string, when it is set in setup.cfg or determined from versioning git tags (pbr), so it would be technically possible to check them against constraints. |
Related: #5898. Also see the discussion on distutils-sig (linked mid-thread in the issue). |
Also, relevant comment: #5898 (comment) |
Workaround for that problem:
Pip doesn't check the version of local git project. Awesome |
Ok you should remove it from the constraint file. But I guess a |
Environment
Hi,
Im working for company that is doing own software.
One software require to install keystonemiddleware package. We don't want to install it from pip repository, but using a git.
How to reproduce:
It raises an error:
Where packages like: scandir, futures, happybase, sortedcontainers are not required for keystonemiddleware.
The text was updated successfully, but these errors were encountered: