From 7b2ed14efe872527bae38cde98a402859e351bac Mon Sep 17 00:00:00 2001 From: bencodes-oai Date: Fri, 13 Nov 2026 04:28:10 +0000 Subject: [PATCH] Honor `PIP_INDEX_URL` for V8 Python dependencies (#61255) ## What changed Configure V8's `pip.parse` in `MODULE.bazel` to expand `PIP_INDEX_URL` and pass it as `--index-url`, defaulting to `https://pypi.org/simple` when unset or empty. Keep `--require-hashes` enabled. GitOrigin-RevId: b049056e98bf525906a727d8932178f0a0528cd2 --- MODULE.bazel | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MODULE.bazel b/MODULE.bazel index 5ae6f2b161..b277208c95 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -880,7 +880,11 @@ engine_repository( # All V8 inputs are owned here, including the pinned Python generator inputs. pip.parse( - extra_pip_args = ["--require-hashes"], + envsubst = ["PIP_INDEX_URL"], + extra_pip_args = [ + "--require-hashes", + "--index-url=${PIP_INDEX_URL:-https://pypi.org/simple}", + ], hub_name = "v8_python_deps", python_version = "3.11", requirements_lock = "@v8//:bazel/requirements.txt",