Skip to content

Commit 7d129f9

Browse files
authored
Clarify some wording in wasi(\.py)? (GH-133619)
1 parent c81fa2b commit 7d129f9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tools/wasm/wasi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import runpy
44
import sys
55

6-
print("⚠️ WARNING: This script is deprecated and slated for removal in Python 3.19; "
6+
print("⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; "
77
"execute the `wasi/` directory instead (i.e. `python Tools/wasm/wasi`)\n",
88
file=sys.stderr)
99

Tools/wasm/wasi/__main__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def configure_wasi_python(context, working_dir):
258258
with exec_script.open("w", encoding="utf-8") as file:
259259
file.write(f'#!/bin/sh\nexec {host_runner} {python_wasm} "$@"\n')
260260
exec_script.chmod(0o755)
261-
print(f"🏃‍♀️ Created {exec_script} ... ")
261+
print(f"🏃‍♀️ Created {exec_script} (--host-runner)... ")
262262
sys.stdout.flush()
263263

264264

@@ -270,10 +270,10 @@ def make_wasi_python(context, working_dir):
270270
quiet=context.quiet)
271271

272272
exec_script = working_dir / "python.sh"
273-
subprocess.check_call([exec_script, "--version"])
273+
call([exec_script, "--version"], quiet=False)
274274
print(
275-
f"🎉 Use '{exec_script.relative_to(context.init_dir)}' "
276-
"to run CPython in wasm runtime"
275+
f"🎉 Use `{exec_script.relative_to(context.init_dir)}` "
276+
"to run CPython w/ the WASI host specified by --host-runner"
277277
)
278278

279279

0 commit comments

Comments
 (0)