From bc1584eaf5aa642b89ab2178402a5b1ce592001e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 25 Jun 2026 20:31:28 +0200 Subject: [PATCH] Run pythoninfo-build on WASI Replace also "make pythoninfo" with WASI "pythoninfo-host" command. --- master/custom/factories.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/master/custom/factories.py b/master/custom/factories.py index f1c55630..e0ded339 100644 --- a/master/custom/factories.py +++ b/master/custom/factories.py @@ -958,6 +958,12 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs): command=["python3", wasi_py, "make-build-python"], ) ) + self.addStep( + PythonInfo( + name="Display build info of the build Python", + command=["python3", wasi_py, "pythoninfo-build"], + ) + ) # Host/WASI Python self.addStep( @@ -974,10 +980,12 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs): ) ) - self.addStep(PythonInfo( - command=["make", "pythoninfo"], - workdir=host_path, - )) + self.addStep( + PythonInfo( + name="Display build info of the host/WASI Python", + command=["python3", wasi_py, "pythoninfo-host"], + ) + ) # Copied from UnixBuild. testopts = [*self.testFlags, *get_j_opts(worker, 2)] @@ -1012,7 +1020,7 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs): # Preventing this from running on versions older than 3.13 is managed in -# master.cfg. +# workers.py. class Wasm32WasiPreview1DebugBuild(_Wasm32WasiPreview1Build): append_suffix = ".debug" pydebug = True