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

Function make_host_python

Platforms/Apple/__main__.py:421–434  ·  view source on GitHub ↗

The implementation of the "make-host" command.

(
    context: argparse.Namespace,
    host: str | None = None,
)

Source from the content-addressed store, hash-verified

419
420
421def make_host_python(
422 context: argparse.Namespace,
423 host: str | None = None,
424) -> None:
425 """The implementation of the "make-host" command."""
426 if host is None:
427 host = context.host
428
429 with (
430 group(f"Compiling host Python ({host})"),
431 cwd(subdir(host)),
432 ):
433 run(["make", "-j", str(os.cpu_count())], host=host)
434 run(["make", "install"], host=host)
435
436
437def framework_path(host_triple: str, multiarch: str) -> Path:

Callers

nothing calls this directly

Calls 6

cwdFunction · 0.85
strFunction · 0.85
cpu_countMethod · 0.80
groupFunction · 0.70
subdirFunction · 0.70
runFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…