MCPcopy Index your code
hub / github.com/python/cpython / make_wasi_python

Function make_wasi_python

Platforms/WASI/_build.py:388–402  ·  view source on GitHub ↗

Run `make` for the WASI/host build.

(context, working_dir)

Source from the content-addressed store, hash-verified

386
387@subdir(lambda context: CROSS_BUILD_DIR / host_triple(context))
388def make_wasi_python(context, working_dir):
389 """Run `make` for the WASI/host build."""
390 call(
391 ["make", "--jobs", str(cpu_count()), "all"],
392 env=updated_env(),
393 context=context,
394 )
395
396 exec_script = working_dir / "python.sh"
397 call([exec_script, "--version"], quiet=False)
398 log(
399 "🎉",
400 f"Use `{exec_script.relative_to(pathlib.Path().absolute())}` "
401 "to run CPython w/ the WASI host specified by --host-runner",
402 )
403
404
405def clean_contents(context):

Callers

nothing calls this directly

Calls 6

strFunction · 0.85
absoluteMethod · 0.80
callFunction · 0.70
updated_envFunction · 0.70
logFunction · 0.70
relative_toMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…