From 864fd7764b97ffac8c08946caccc2286bee36ed1 Mon Sep 17 00:00:00 2001 From: Oliver Mannion <125105+tekumara@users.noreply.github.com> Date: Mon, 6 Feb 2023 18:05:31 +1100 Subject: [PATCH] Ignore PIP_REQUIRE_VIRTUALENV for `pip index` (#11671) Ignore PIP_REQUIRE_VIRTUALENV in `pip index` --- news/11671.feature.rst | 1 + src/pip/_internal/commands/index.py | 1 + 2 files changed, 2 insertions(+) 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`` 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 """