https://github.com/python/cpython/commit/7d129f99ab8e7ef9382e5e5c7bb4e51ecf74e894 commit: 7d129f99ab8e7ef9382e5e5c7bb4e51ecf74e894 branch: main author: Brett Cannon <br...@python.org> committer: brettcannon <br...@python.org> date: 2025-05-08T09:54:46-07:00 summary:
Clarify some wording in `wasi(\.py)?` (GH-133619) files: M Tools/wasm/wasi.py M Tools/wasm/wasi/__main__.py diff --git a/Tools/wasm/wasi.py b/Tools/wasm/wasi.py index c0f7ccd51aa71d..b49b27cbbbe66e 100644 --- a/Tools/wasm/wasi.py +++ b/Tools/wasm/wasi.py @@ -3,7 +3,7 @@ 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) diff --git a/Tools/wasm/wasi/__main__.py b/Tools/wasm/wasi/__main__.py index 6af9b5f12cb8e4..ba5faeb9e20c66 100644 --- a/Tools/wasm/wasi/__main__.py +++ b/Tools/wasm/wasi/__main__.py @@ -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" ) _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com