From 60d744e0e72345c543e666f8af209ffc961871ae Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 1 May 2025 12:38:39 -0400 Subject: [PATCH 1/2] gh-133259: Show path to python.sh script on successful build --- Tools/wasm/wasi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Tools/wasm/wasi.py b/Tools/wasm/wasi.py index da847c4ff86215..f0bc2a1a123d42 100644 --- a/Tools/wasm/wasi.py +++ b/Tools/wasm/wasi.py @@ -270,6 +270,10 @@ def make_wasi_python(context, working_dir): exec_script = working_dir / "python.sh" subprocess.check_call([exec_script, "--version"]) + print( + f"🎉 Use '{exec_script.relative_to(context.init_dir)}' " + "to run CPython in wasmtime" + ) def build_all(context): @@ -348,6 +352,7 @@ def main(): help="The target triple for the WASI host build") context = parser.parse_args() + context.init_dir = pathlib.Path().absolute() dispatch = {"configure-build-python": configure_build_python, "make-build-python": make_build_python, From 5c47c05c7b06ac56775689d99bcab3065a332f02 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 1 May 2025 14:24:13 -0400 Subject: [PATCH 2/2] wasmtime -> (generic) wasm runtime --- Tools/wasm/wasi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/wasm/wasi.py b/Tools/wasm/wasi.py index f0bc2a1a123d42..a742043e4be1d2 100644 --- a/Tools/wasm/wasi.py +++ b/Tools/wasm/wasi.py @@ -272,7 +272,7 @@ def make_wasi_python(context, working_dir): subprocess.check_call([exec_script, "--version"]) print( f"🎉 Use '{exec_script.relative_to(context.init_dir)}' " - "to run CPython in wasmtime" + "to run CPython in wasm runtime" )