File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616import sysconfig
1717import tempfile
1818
19-
2019CHECKOUT = pathlib .Path (__file__ ).parent .parent .parent
2120
2221CROSS_BUILD_DIR = CHECKOUT / "cross-build"
2322BUILD_DIR = CROSS_BUILD_DIR / "build"
2423
2524LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local"
26- LOCAL_SETUP_MARKER = "# Generated by Tools/wasm/wasi.py\n " . encode ( "utf-8" )
25+ LOCAL_SETUP_MARKER = b "# Generated by Tools/wasm/wasi.py\n "
2726
2827WASMTIME_VAR_NAME = "WASMTIME"
2928WASMTIME_HOST_RUNNER_VAR = f"{{{ WASMTIME_VAR_NAME } }}"
@@ -84,7 +83,7 @@ def wrapper(context):
8483 and getattr (context , "clean" , False )
8584 and working_dir .exists ()
8685 ):
87- print (f "🚮 Deleting directory (--clean)..." )
86+ print ("🚮 Deleting directory (--clean)..." )
8887 shutil .rmtree (working_dir )
8988
9089 working_dir .mkdir (parents = True , exist_ok = True )
@@ -372,7 +371,7 @@ def main():
372371 make_host = subcommands .add_parser (
373372 "make-host" , help = "Run `make` for the host/WASI"
374373 )
375- clean = subcommands .add_parser (
374+ subcommands .add_parser (
376375 "clean" , help = "Delete files and directories created by this script"
377376 )
378377 for subcommand in (
You can’t perform that action at this time.
0 commit comments