@@ -277,23 +277,18 @@ def clean_contents(context):
277
277
278
278
279
279
def main ():
280
- host_runner_parts = [
281
- f"{ shutil .which ('wasmtime' )} run" ,
282
- # Make sure the stack size will work for a pydebug
283
- # build.
284
- # The 8388608 value comes from `ulimit -s` under Linux
285
- # which equates to 8291 KiB.
286
- "--wasm max-wasm-stack=8388608" ,
287
- # Enable thread support.
288
- #"--wasm threads=y --wasi threads=y "
289
- # Use WASI 0.2 primitives
290
- "--wasi preview2" ,
291
- # Map the checkout to / to load the stdlib from /Lib.
292
- "--dir {HOST_DIR}::{GUEST_DIR}" ,
293
- # Set PYTHONPATH to the sysconfig data.
294
- "--env {ENV_VAR_NAME}={ENV_VAR_VALUE}"
295
- ]
296
- default_host_runner = " " .join (host_runner_parts )
280
+ default_host_runner = (f"{ shutil .which ('wasmtime' )} run "
281
+ # Make sure the stack size will work for a pydebug
282
+ # build.
283
+ # The 8388608 value comes from `ulimit -s` under Linux
284
+ # which equates to 8291 KiB.
285
+ "--wasm max-wasm-stack=8388608 "
286
+ # Enable thread support.
287
+ "--wasm threads=y --wasi threads=y "
288
+ # Map the checkout to / to load the stdlib from /Lib.
289
+ "--dir {HOST_DIR}::{GUEST_DIR} "
290
+ # Set PYTHONPATH to the sysconfig data.
291
+ "--env {ENV_VAR_NAME}={ENV_VAR_VALUE}" )
297
292
298
293
parser = argparse .ArgumentParser ()
299
294
subcommands = parser .add_subparsers (dest = "subcommand" )
0 commit comments