]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133259: Show path to python.sh script on successful build (#133268)
authorMichael Droettboom <mdboom@gmail.com>
Thu, 1 May 2025 18:49:39 +0000 (14:49 -0400)
committerGitHub <noreply@github.com>
Thu, 1 May 2025 18:49:39 +0000 (18:49 +0000)
* gh-133259: Show path to python.sh script on successful build

* wasmtime -> (generic) wasm runtime

Tools/wasm/wasi.py

index da847c4ff8621590d3daaf307c725c884c695bdc..a742043e4be1d2d75b5f3236ec68d5ea5be73c6f 100644 (file)
@@ -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,