Skip to content

Commit c141340

Browse files
authored
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
1 parent a4be3bc commit c141340

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Tools/wasm/wasi.py

+5
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@ def make_wasi_python(context, working_dir):
270270

271271
exec_script = working_dir / "python.sh"
272272
subprocess.check_call([exec_script, "--version"])
273+
print(
274+
f"🎉 Use '{exec_script.relative_to(context.init_dir)}' "
275+
"to run CPython in wasm runtime"
276+
)
273277

274278

275279
def build_all(context):
@@ -348,6 +352,7 @@ def main():
348352
help="The target triple for the WASI host build")
349353

350354
context = parser.parse_args()
355+
context.init_dir = pathlib.Path().absolute()
351356

352357
dispatch = {"configure-build-python": configure_build_python,
353358
"make-build-python": make_build_python,

0 commit comments

Comments
 (0)