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

Function make_build_python

Platforms/emscripten/__main__.py:277–290  ·  view source on GitHub ↗

Make/build the build Python.

(context, working_dir)

Source from the content-addressed store, hash-verified

275
276@subdir("native_build_dir")
277def make_build_python(context, working_dir):
278 """Make/build the build Python."""
279 call(["make", "--jobs", str(cpu_count()), "all"], quiet=context.quiet)
280
281 binary = build_python_path(context)
282 cmd = [
283 binary,
284 "-c",
285 "import sys; "
286 "print(f'{sys.version_info.major}.{sys.version_info.minor}')",
287 ]
288 version = subprocess.check_output(cmd, encoding="utf-8").strip()
289
290 print(f"🎉 {binary} {version}")
291
292
293def check_shasum(file: str, expected_shasum: str):

Callers

nothing calls this directly

Calls 5

strFunction · 0.85
callFunction · 0.70
build_python_pathFunction · 0.70
stripMethod · 0.45
check_outputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…