run(["make", "-j", str(os.cpu_count())])
+def pythoninfo_build_python(context: argparse.Namespace) -> None:
+ """The implementation of the "pythoninfo-build" command."""
+ with (
+ group("Display build info of the build Python"),
+ cwd(subdir("build")),
+ ):
+ run(["make", "pythoninfo"])
+
+
def apple_target(host: str) -> str:
"""Return the Apple platform identifier for a given host triple."""
for _, platform_slices in HOSTS.items():
for step in [
configure_build_python,
make_build_python,
+ pythoninfo_build_python,
]:
step(context)
make_build = subcommands.add_parser(
"make-build", help="Run `make` for the build Python"
)
+ pythoninfo_build = subcommands.add_parser(
+ "pythoninfo-build", help="Display build info of the build Python"
+ )
configure_host = subcommands.add_parser(
"configure-host",
help="Run `configure` for a specific platform and target",
clean,
configure_build,
make_build,
+ pythoninfo_build,
configure_host,
make_host,
build,
"clean": clean,
"configure-build": configure_build_python,
"make-build": make_build_python,
+ "pythoninfo-build": pythoninfo_build_python,
"configure-host": configure_host_python,
"make-host": make_host_python,
"package": package,