Skip to content

gh-137242: Add Android CI job #137186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Strip debug information from release package by default
  • Loading branch information
mhsmith committed Jul 30, 2025
commit 16f1230f241d69353cb75cb5856bffd3fc0de9f4
13 changes: 13 additions & 0 deletions Android/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,14 @@ def package(context):
else:
shutil.copy2(src, dst, follow_symlinks=False)

# Strip debug information.
if not context.debug:
run(
[android_env(context.host)["STRIP"]]
+ glob(f"{temp_dir}/**/*.so", recursive=True),
log=False,
)

dist_dir = subdir(context.host, "dist", create=True)
package_path = shutil.make_archive(
f"{dist_dir}/python-{version}-{context.host}", "gztar", temp_dir
Expand Down Expand Up @@ -773,6 +781,11 @@ def add_parser(*args, **kwargs):
"args", nargs="*", help=f"Arguments to add to sys.argv. "
f"Separate them from {SCRIPT_NAME}'s own arguments with `--`.")

# Package arguments.
package.add_argument(
"-g", action="store_true", default=False, dest="debug",
help="Include debug information")

return parser.parse_args()


Expand Down
Loading