Skip to content

Document system() == "android" as a fully supported value#15510

Merged
eli-schwartz merged 1 commit intomesonbuild:masterfrom
mhsmith:android
Feb 1, 2026
Merged

Document system() == "android" as a fully supported value#15510
eli-schwartz merged 1 commit intomesonbuild:masterfrom
mhsmith:android

Conversation

@mhsmith
Copy link
Contributor

@mhsmith mhsmith commented Jan 31, 2026

In #6233 the "android" system name was documented as "subject to change". The main argument for this was that there was no clear reference for what the value "should" be, because most Android builds are cross-compiling, and Python's platform.system is not used. At that time, Python didn't officially support Android anyway.

However, Python has supported Android since version 3.13, which came out more than a year ago, and it now defines "Android" as a possible value of platform.system. In this context, I've successfully built NumPy and several other Meson-based Python packages that depend on it, and never had to make any changes to Meson itself (see the PRs linked to mesonbuild/meson-python#824).

So I think the time has come for Meson to say that this value is no longer subject to change, and it's safe for people to rely on it.

@mhsmith mhsmith requested a review from jpakkane as a code owner January 31, 2026 18:22
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks reasonable.

In mesonbuild#6233 the "android" system name was documented as "subject to
change". The main argument for this was that there was no clear
reference for what the value "should" be, because most Android builds
are cross-compiling, and Python's `platform.system` is not used. At that
time, Python didn't officially support Android anyway.

However, Python has supported Android since version 3.13, which came out
more than a year ago, and it now defines "Android" as a possible value
of `platform.system`.
@eli-schwartz
Copy link
Member

Updated commit message to include the details from the PR description.

@eli-schwartz eli-schwartz merged commit 062d40d into mesonbuild:master Feb 1, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants