pip index versions
should ignore --require-venv
#10657
Labels
type: enhancement
Improvements to functionality
pip index versions
should ignore --require-venv
#10657
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: