]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify some wording in `wasi(\.py)?` (GH-133619)
authorBrett Cannon <brett@python.org>
Thu, 8 May 2025 16:54:46 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 16:54:46 +0000 (09:54 -0700)
Tools/wasm/wasi.py
Tools/wasm/wasi/__main__.py

index c0f7ccd51aa71dbf83513d595955245a2e52f454..b49b27cbbbe66ed9ad3eecbf80f59fa1218d295b 100644 (file)
@@ -3,7 +3,7 @@ if  __name__ == "__main__":
     import runpy
     import sys
 
-    print("⚠️ WARNING: This script is deprecated and slated for removal in Python 3.19; "
+    print("⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; "
           "execute the `wasi/` directory instead (i.e. `python Tools/wasm/wasi`)\n",
           file=sys.stderr)
 
index 6af9b5f12cb8e4495f78bac20f7daa79e4f99757..ba5faeb9e20c66e1d079c06b4d84baf1e6ab4449 100644 (file)
@@ -258,7 +258,7 @@ def configure_wasi_python(context, working_dir):
     with exec_script.open("w", encoding="utf-8") as file:
         file.write(f'#!/bin/sh\nexec {host_runner} {python_wasm} "$@"\n')
     exec_script.chmod(0o755)
-    print(f"🏃‍♀️ Created {exec_script} ... ")
+    print(f"🏃‍♀️ Created {exec_script} (--host-runner)... ")
     sys.stdout.flush()
 
 
@@ -270,10 +270,10 @@ def make_wasi_python(context, working_dir):
              quiet=context.quiet)
 
     exec_script = working_dir / "python.sh"
-    subprocess.check_call([exec_script, "--version"])
+    call([exec_script, "--version"], quiet=False)
     print(
-        f"🎉 Use '{exec_script.relative_to(context.init_dir)}' "
-        "to run CPython in wasm runtime"
+        f"🎉 Use `{exec_script.relative_to(context.init_dir)}` "
+        "to run CPython w/ the WASI host specified by --host-runner"
     )