https://github.com/python/cpython/commit/c14134020f44575635e11e4552cefcfd8cdbe22f
commit: c14134020f44575635e11e4552cefcfd8cdbe22f
branch: main
author: Michael Droettboom <[email protected]>
committer: mdboom <[email protected]>
date: 2025-05-01T18:49:39Z
summary:
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
files:
M Tools/wasm/wasi.py
diff --git a/Tools/wasm/wasi.py b/Tools/wasm/wasi.py
index da847c4ff86215..a742043e4be1d2 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,
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]