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

Function make_build_python

Platforms/WASI/_build.py:204–217  ·  view source on GitHub ↗

Make/build the build Python.

(context, working_dir)

Source from the content-addressed store, hash-verified

202
203@subdir(BUILD_DIR)
204def make_build_python(context, working_dir):
205 """Make/build the build Python."""
206 call(["make", "--jobs", str(cpu_count()), "all"], context=context)
207
208 binary = build_python_path()
209 cmd = [
210 binary,
211 "-c",
212 "import sys; "
213 "print(f'{sys.version_info.major}.{sys.version_info.minor}')",
214 ]
215 version = subprocess.check_output(cmd, encoding="utf-8").strip()
216
217 log("🎉", f"{binary} {version}")
218
219
220def wasi_sdk(context):

Callers

nothing calls this directly

Calls 6

strFunction · 0.85
callFunction · 0.70
build_python_pathFunction · 0.70
logFunction · 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…