Skip to content

gh-146541: Allow building the Android testbed for 32-bit targets#146542

Open
robertkirkman wants to merge 2 commits intopython:mainfrom
robertkirkman:32-bit-android-testbed
Open

gh-146541: Allow building the Android testbed for 32-bit targets#146542
robertkirkman wants to merge 2 commits intopython:mainfrom
robertkirkman:32-bit-android-testbed

Conversation

@robertkirkman
Copy link
Copy Markdown
Contributor

@robertkirkman robertkirkman commented Mar 28, 2026

This allows building the Android testbed for 32-bit targets using the prebuilt 32-bit dependencies that are already available here: https://github.com/beeware/cpython-android-source-deps/releases , adding the target triplets to match them, arm-linux-androideabi and i686-linux-android.

This also adds the arm key to the dictionary used to convert the machine variable to an Android ABI in sysconfig.get_platform(), because when the Android testbed is being cross-compiled, it stores the contents of the first substring of _PYTHON_HOST_PLATFORM before the first - symbol in the machine variable, which the dictionary does not currently handle.

This allows building the Android testbed for 32-bit targets using the prebuilt 32-bit dependencies that are already available here: https://github.com/beeware/cpython-android-source-deps/releases , adding the target triplets to match them, `arm-linux-androideabi` and `i686-linux-android`.

This also adds the `arm` key to the dictionary used to convert the `machine` variable to an Android ABI in `sysconfig.get_platform()`, because when the Android testbed is being cross-compiled, it stores the contents of the first substring of `_PYTHON_HOST_PLATFORM` before the first `-` symbol in the `machine` variable, which the dictionary does not currently handle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant