From 8ca18f025a8618271ccc414858c01ec6d2020dcb Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 30 Jun 2026 23:46:12 +0200 Subject: [PATCH 1/2] gh-152711: Add pythoninfo-build command to Platforms/Android Add a pythoninfo-build command to Platforms/Android to display build info of the build Python. The command runs "make pythoninfo". --- Platforms/Android/__main__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Platforms/Android/__main__.py b/Platforms/Android/__main__.py index 063e1f316031443..455a62aa37c461c 100755 --- a/Platforms/Android/__main__.py +++ b/Platforms/Android/__main__.py @@ -207,6 +207,11 @@ def make_build_python(context): run(["make", "-j", str(os.cpu_count())]) +def pythoninfo_build_python(context): + os.chdir(subdir("build")) + run(["make", "pythoninfo"]) + + # To create new builds of these dependencies, usually all that's necessary is to # push a tag to the cpython-android-source-deps repository, and GitHub Actions # will do the rest. @@ -903,6 +908,8 @@ def add_parser(*args, **kwargs): "configure-build", help="Run `configure` for the build Python") add_parser( "make-build", help="Run `make` for the build Python") + add_parser( + "pythoninfo-build", help="Display build info of the build Python") configure_host = add_parser( "configure-host", help="Run `configure` for Android") make_host = add_parser( @@ -1019,6 +1026,7 @@ def main(): dispatch = { "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, "build": build_targets, From bc5459b01698145c83146245c3da492aafbd3ab9 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 1 Jul 2026 00:03:46 +0200 Subject: [PATCH 2/2] ci and build commands now also run pythoninfo-build --- Platforms/Android/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platforms/Android/__main__.py b/Platforms/Android/__main__.py index 455a62aa37c461c..78f94b317ab0478 100755 --- a/Platforms/Android/__main__.py +++ b/Platforms/Android/__main__.py @@ -313,6 +313,7 @@ def build_targets(context): if context.target in {"all", "build"}: configure_build_python(context) make_build_python(context) + pythoninfo_build_python(context) for host in HOSTS: if context.target in {"all", "hosts", host}: @@ -824,6 +825,7 @@ def ci(context): for step in [ configure_build_python, make_build_python, + pythoninfo_build_python, configure_host_python, make_host_python, package,