-
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 check is case sensitive on distribution names #4828
Comments
Thanks for filing this issue @vphilippon! :) This is because I have a patch that fixes this over at #4820 (just added a test) but there's some more stuff there so, until if there's no clean way to handle #4086 that comes up in the short term (read: before pip 10), I'll make a more specific PR. :) |
Thanks @pradyunsg for the info on the states of things. While it may not look like it, this is a pretty major bug in my eyes. I'll go ahead with a special demand here: Making a 9.0.2 release with a fix to this. I'll be happy to provide a patch targeting a 9.0.x branch if you (and the other maintainers) agree. The main reason for my demand is that (as you can guess) I care a lot about having some dependency resolution, and I'm pretty sure Also, I've started to work on a minimal solution project to dependency resolution that does not depend on I've noted that there are no previous "major release branch" in the repo, so I take it this is not something that was really done before. I'm also aware that this is additional work for the maintainers, who are working on getting |
Sure. I agree with you here.
It'll probably be a better idea to have write a tool that does the dependency checking independent of pip; completely decoupled from it. As per my understanding, it's a feasible task to at least implement the same thing as pip check using just
FWIW, about a 9.0.2 -- some maintainer would have to do release work and there's a lot of other small issues that should be fixed in a 9.0.2 and finding those and rebasing them etc is probably too much effort. I don't think I can make such a release but won't mind someone doing it; I do think it's extremely unlikely though.
:D |
I'll take a look at this, that could replace an actual 'pip check' call. My first goal is to have a stupidly simple tool that, even if extremely inefficient, will give a valid result that can serve as a test reference for better tools in the future. We can discuss this on the project of course. Thanks for the input. About 9.0.2, I completely understand. My offer to help out if any maintainers wants to tackle this remains, both in bringing in the fix, as well as testing the would-be 9.0.2. |
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:
When running
pip check
to find unmet dependencies, the check is case sensitive.As an example, if a packages states it requires "
pyyaml==3.11
" (lowercase),pip check
will not detect the missing dependency if PyYAML 3.12 is installed, as the distribution name is "PyYAML" (not all lowercase)What I've run:
With this setup.py, to reproduce:
Then:
What I expected (obtained by changing to
install_requires=['PyYAML==3.11']
:The text was updated successfully, but these errors were encountered: