Skip to content

Commit

Permalink
Add a verification check for the python.sh file
Browse files Browse the repository at this point in the history
Implicity verifies `python.wasm` also works.
  • Loading branch information
brettcannon committed Oct 18, 2023
1 parent d66fd8b commit b21d59a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tools/wasm/wasi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import pathlib
import shutil
import subprocess
import sys
import sysconfig
import tempfile

Expand Down Expand Up @@ -187,6 +188,9 @@ def compile_wasi_python(context, build_python, version):
with exec_script.open("w", encoding="utf-8") as file:
file.write(f'#!/bin/sh\nexec {host_runner} "$@"\n')
exec_script.chmod(0o755)
print(f"Created {exec_script} ... ", end="")
sys.stdout.flush()
subprocess.check_call([exec_script, "--version"])


def main():
Expand Down

0 comments on commit b21d59a

Please sign in to comment.