Skip to content

Commit 4bda515

Browse files
committed
[GR-69311] Avoid sneaking in our default extra index if the user was overriding the main index already
1 parent abfbe1b commit 4bda515

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,11 @@ def run_python_unittests(python_binary, args=None, paths=None, exclude=None, env
11261126
if mx.primary_suite() != SUITE:
11271127
env.setdefault("GRAALPYTEST_ALLOW_NO_JAVA_ASSERTIONS", "true")
11281128

1129+
if (pip_index := env.get("PIP_INDEX_URL")) and "PIP_EXTRA_INDEX_URL" not in env:
1130+
# the user was overriding the index, don't sneak our default extra
1131+
# index in in that case
1132+
env["PIP_EXTRA_INDEX_URL"] = pip_index
1133+
11291134
if BYTECODE_DSL_INTERPRETER:
11301135
args += ['--vm.Dpython.EnableBytecodeDSLInterpreter=true']
11311136
args += [_python_test_runner(), "run", "--durations", "10", "-n", parallelism, f"--subprocess-args={shlex.join(args)}"]

0 commit comments

Comments
 (0)