Skip to content

@inclement inclement released this Aug 19, 2019

python-for-android is a packager for Python apps on Android. You can create your own Python distribution including the modules and dependencies you want, and bundle it in an APK along with your own code.

Features include:

  • Support for building with both Python 2 and Python 3.
  • Different app backends including Kivy, PySDL2, and a WebView with Python webserver.
  • Automatic support for most pure Python modules, and built in support for many others, including popular dependencies such as numpy and sqlalchemy.
  • Multiple architecture targets, for APKs optimised on any given device.

The major change in this release is that python-for-android has dropped support for running under Python 2. That means that python-for-android cannot run under Python 2, but you can still target Python 2 on Android using the python2 recipe. The python2 recipe will continue to be supported until 2020, at which point support will be dropped.


Core functionality

[#1913]: Removed support for building with CrystaX NDK
[#1883]: Added NDK version checking
[#1888]: Improved service support
[#1598]: Added tools for handling storage paths on Android
[#1937]: Fixed/improved how cython is invoked
[#1818]: Added tools for handling permissions callback
[#1918]: Dropped support for running under Python 2


[#1930]: Fixed pyzmq recipe
[#1935]: Bumped Kivy recipe target to 1.11.1
[#1938]: Added new setuptools dependency for Kivy recipe


[#1915]: Removed reference to nose tests
[#1928, #1933]: Added tests for toolchain module
[#1946]: Added unit tests for recipe module
[#1952]: Added some tests for Recipe.download_file


[#1901]: Added documentation for testing p4a branches and PRs
[#1931]: Documented how p4a uses pip

Assets 4
You can’t perform that action at this time.