Skip to content

Commit bc1584e

Browse files
committed
Run pythoninfo-build on WASI
Replace also "make pythoninfo" with WASI "pythoninfo-host" command.
1 parent 26559cb commit bc1584e

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

master/custom/factories.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,12 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
958958
command=["python3", wasi_py, "make-build-python"],
959959
)
960960
)
961+
self.addStep(
962+
PythonInfo(
963+
name="Display build info of the build Python",
964+
command=["python3", wasi_py, "pythoninfo-build"],
965+
)
966+
)
961967

962968
# Host/WASI Python
963969
self.addStep(
@@ -974,10 +980,12 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
974980
)
975981
)
976982

977-
self.addStep(PythonInfo(
978-
command=["make", "pythoninfo"],
979-
workdir=host_path,
980-
))
983+
self.addStep(
984+
PythonInfo(
985+
name="Display build info of the host/WASI Python",
986+
command=["python3", wasi_py, "pythoninfo-host"],
987+
)
988+
)
981989

982990
# Copied from UnixBuild.
983991
testopts = [*self.testFlags, *get_j_opts(worker, 2)]
@@ -1012,7 +1020,7 @@ def setup(self, branch, worker, test_with_PTY=False, **kwargs):
10121020

10131021

10141022
# Preventing this from running on versions older than 3.13 is managed in
1015-
# master.cfg.
1023+
# workers.py.
10161024
class Wasm32WasiPreview1DebugBuild(_Wasm32WasiPreview1Build):
10171025
append_suffix = ".debug"
10181026
pydebug = True

0 commit comments

Comments
 (0)