-
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 index versions
should ignore --require-venv
#10657
Labels
type: enhancement
Improvements to functionality
Comments
justin-f-perez
added
S: needs triage
Issues/PRs that need to be triaged
type: bug
A confirmed bug or unintended behavior
labels
Nov 13, 2021
justin-f-perez
changed the title
pip index versions doesn't ignore respect -W, PYTHONWARNINGS, or PIP_REQUIRE_VIRTUALENV semantics
pip index versions doesn't respect -W, PYTHONWARNINGS, or PIP_REQUIRE_VIRTUALENV semantics
Nov 13, 2021
Printing the warning on stderr unconditionally is intentional. The As for PIP_REQUIRE_VIRTUALENV, a PR would be welcome setting the appropriate flag on the pip/src/pip/_internal/commands/list.py Line 46 in 12dad05
|
pradyunsg
added
type: enhancement
Improvements to functionality
and removed
type: bug
A confirmed bug or unintended behavior
S: needs triage
Issues/PRs that need to be triaged
labels
Nov 14, 2021
pradyunsg
changed the title
pip index versions doesn't respect -W, PYTHONWARNINGS, or PIP_REQUIRE_VIRTUALENV semantics
Nov 14, 2021
pip index versions
should ignore --require-venv
related (similar) to #8602 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
There doesn't seem to be any way to silence pip's warning about experimental commands being removed without prior warning (ironic, haha) and it produces an unexpected error when PIP_REQUIRE_VIRTUALENV is set.
pip index versions <module>
outputs an "experimental command" warning when called directly, when called as a python3 module (via-m
), whenPYTHONWARNINGS=ignore
is given, or-Wignore
(or both!)There doesn't seem to be any special flags related to ignoring this particular warning, this feature is not listed among the 3 valid values given by
--use-feature
error output.Expected behavior
I expect
pip index versions
to:-W
option and PYTHONWARNINGS environment variable by:pip list
does not is unexpected)pip version
21.3.1
Python version
3.9.7
OS
macOS 11.6.1 20G224
How to Reproduce
-Wignore
optionpip index versions pip
(or any other module)Output
Code of Conduct
The text was updated successfully, but these errors were encountered: