Skip to content

Commit 8ca18f0

Browse files
committed
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".
1 parent f1c5363 commit 8ca18f0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Platforms/Android/__main__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,11 @@ def make_build_python(context):
207207
run(["make", "-j", str(os.cpu_count())])
208208

209209

210+
def pythoninfo_build_python(context):
211+
os.chdir(subdir("build"))
212+
run(["make", "pythoninfo"])
213+
214+
210215
# To create new builds of these dependencies, usually all that's necessary is to
211216
# push a tag to the cpython-android-source-deps repository, and GitHub Actions
212217
# will do the rest.
@@ -903,6 +908,8 @@ def add_parser(*args, **kwargs):
903908
"configure-build", help="Run `configure` for the build Python")
904909
add_parser(
905910
"make-build", help="Run `make` for the build Python")
911+
add_parser(
912+
"pythoninfo-build", help="Display build info of the build Python")
906913
configure_host = add_parser(
907914
"configure-host", help="Run `configure` for Android")
908915
make_host = add_parser(
@@ -1019,6 +1026,7 @@ def main():
10191026
dispatch = {
10201027
"configure-build": configure_build_python,
10211028
"make-build": make_build_python,
1029+
"pythoninfo-build": pythoninfo_build_python,
10221030
"configure-host": configure_host_python,
10231031
"make-host": make_host_python,
10241032
"build": build_targets,

0 commit comments

Comments
 (0)