Skip to content

Commit 62fb64a

Browse files
authored
Ignore PIP_REQUIRE_VIRTUALENV for pip index (#11671)
Ignore PIP_REQUIRE_VIRTUALENV in `pip index`
1 parent 684521f commit 62fb64a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

news/11671.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ignore PIP_REQUIRE_VIRTUALENV for ``pip index``

src/pip/_internal/commands/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class IndexCommand(IndexGroupCommand):
2424
Inspect information available from package indexes.
2525
"""
2626

27+
ignore_require_venv = True
2728
usage = """
2829
%prog versions <package>
2930
"""

0 commit comments

Comments
 (0)