Skip to content

Latest commit

 

History

History
 
 

README.md

Python for Android

Scripts and CI jobs for building Python for Android.

  • Can be run on both Linux and macOS.
  • Python 3.12 uses the legacy patched cross-build flow.
  • Python 3.13+ uses CPython's official Android/android.py build flow.
  • Creates Python installation with a structure suitable for https://github.com/flet-dev/mobile-forge.

Usage

To build Python for a specific ABI:

./build.sh 3.13.12 arm64-v8a

To build all ABIs:

./build-all.sh 3.13.12

ABI support:

  • Python 3.12: arm64-v8a, armeabi-v7a, x86_64, x86
  • Python 3.13+: arm64-v8a, x86_64

Credits

Build process depends on:

Based on the work from: