From 362f9ce976338c6b31e66ede1bc832da41a2b987 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:33:05 +1100 Subject: [PATCH 1/2] Ignore PIP_REQUIRE_VIRTUALENV in `pip index` --- src/pip/_internal/commands/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pip/_internal/commands/index.py b/src/pip/_internal/commands/index.py index b4bf0ac06e1..7267effed24 100644 --- a/src/pip/_internal/commands/index.py +++ b/src/pip/_internal/commands/index.py @@ -24,6 +24,7 @@ class IndexCommand(IndexGroupCommand): Inspect information available from package indexes. """ + ignore_require_venv = True usage = """ %prog versions """ From 69f3e7f130a366facacd6d2db45d782af6dcd5f4 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Thu, 22 Dec 2022 12:36:27 +1100 Subject: [PATCH 2/2] Create 11671.feature.rst --- news/11671.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/11671.feature.rst diff --git a/news/11671.feature.rst b/news/11671.feature.rst new file mode 100644 index 00000000000..31f81f8da00 --- /dev/null +++ b/news/11671.feature.rst @@ -0,0 +1 @@ +Ignore PIP_REQUIRE_VIRTUALENV for ``pip index``