The implementation of the "make-host" command.
(
context: argparse.Namespace,
host: str | None = None,
)
| 419 | |
| 420 | |
| 421 | def 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 | |
| 437 | def framework_path(host_triple: str, multiarch: str) -> Path: |