]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python: fix msys64 wheel directory specification
authorJohn Snow <jsnow@redhat.com>
Fri, 30 Jan 2026 05:05:18 +0000 (00:05 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 2 Feb 2026 06:46:40 +0000 (16:46 +1000)
In python3.14, fixes were made to the file URI parsing [1] such that
file URIs that used to work but were technically out of spec are now
broken.

As a result, our msys2 GitLab CI tests began failing.

Stop using "file://" URI links in favor of simple paths (Thanks pbo) to
fix parsing errors under Python 3.14 and fix the msys2 GitLab CI tests.

[1] https://docs.python.org/3/whatsnew/3.14.html#urllib

Reported-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Suggested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Tested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20260130050518.517688-2-jsnow@redhat.com>

python/scripts/mkvenv.py

index a064709e6ce4b67bc6d8d8f359db5ff77cdbc6ef..5cba5770d22ee3d5c1e6faf5ed342a92e6e4f6b4 100644 (file)
@@ -683,7 +683,7 @@ def pip_install(
     if not online:
         full_args += ["--no-index"]
     if wheels_dir:
-        full_args += ["--find-links", f"file://{str(wheels_dir)}"]
+        full_args += ["--find-links", str(wheels_dir)]
     full_args += list(args)
     subprocess.run(
         full_args,