From: Michael Droettboom Date: Thu, 1 May 2025 18:49:39 +0000 (-0400) Subject: gh-133259: Show path to python.sh script on successful build (#133268) X-Git-Tag: v3.14.0b1~133 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c14134020f44575635e11e4552cefcfd8cdbe22f;p=thirdparty%2FPython%2Fcpython.git gh-133259: Show path to python.sh script on successful build (#133268) * gh-133259: Show path to python.sh script on successful build * wasmtime -> (generic) wasm runtime --- diff --git a/Tools/wasm/wasi.py b/Tools/wasm/wasi.py index da847c4ff862..a742043e4be1 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 wasm runtime" + ) 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,