-
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 show ignores environment markers #12165
Labels
Comments
wimglenn
added
S: needs triage
Issues/PRs that need to be triaged
type: bug
A confirmed bug or unintended behavior
labels
Jul 19, 2023
I have a similar issue when adding environment markers |
Pull requests are always welcomed. |
@uranusjr Well, which of the outputs mentioned in "Expected behavior" would you like to see in a PR? |
|
@wimglenn Do you want to tackle the issue? Otherwise I'd give it a try. |
@chrysle go ahead |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
Description
Perhaps the best explanation is to offer an example:
Wow, it really wants numpy! :)
The reason is that environment markers are there:
https://github.com/opencv/opencv-python/blob/43cd7169cb92d96898d59753796678495b95c833/setup.py#L26-L36
Expected behavior
I'm not sure whether they should be deduplicated by pip:
Evaluated and merged by pip (in my case for Python-3.11 on macOS):
Or just rendered without evaluation. It's pretty crazy for this distribution (opencv-python==4.8.0.74) but I guess that would be something like:
The latter is probably my preference, even though this particular package makes it look pathological. The current behavior of stripping the markers entirely in pip show's output seems worse than any of these options.
pip version
23.2
Python version
3.11
OS
macOS
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: