This repository is in alpha development. forked from Py4A on GoogleCode
see Releases page, and select an installer: PythonForAndroid-debug.apk .
This is Python built to run on Android devices. It is made to be used together with SL4A (Scripting Layer For Android).
Nearly all the actual non-python specific documentation can be found at android-scripting
For Python specific issues and enhancements only, please use the issues tab.
Current issue form is here::
* What device(s) are you experiencing the problem on?
* ex: Nexus ???
* What OS version are you running on the device?
* ex: Andriod ???
* What version of the product are you using?
* SL4A r????
* PythonForAndroid r??
* What steps will reproduce the problem?
1.
2.
3.
* Provide logcat for detail.
* What is the expected output%3F What do you see instead?
* expected: launch ???
* see: stop running
* Please provide any additional information below.
Please do not ask any question about below!
Build packages for build python
apt install xutils-dev
apt install lib32z1 lib32stdc++6
apt install aapt
Check the dependencies of library (sample of Ubuntu)
$ sudo apt install libzlib-dev
Clone this project.
for Mercurial uesr (with hg-git plugin)
$ hg clone git://github.com/kuri65536/python-for-android
for git user $ git clone git://github.com/kuri65536/python-for-android
* Build the apk:
```shell
$ cd android/PythonForAndroid
$ echo sdk.dir=/path/to/android-sdk > local.properties
$ sh /path/to/android-stdudio/gradle/gradle-2.2.1/bin/gradle assembleDebug
Building ??% ...
$ ls build/outputs/apk/
PythonForAndroid-debug.apk
$ cd python-build
$ NDK_PATH=/path/to/android-ndk-r10d make build
$ ls python*.zip
python_r29.zip python_extra_r29.zip ... and so on...
$ cd python-build
$ cat LATEST_VERSION
r29
$ cat LATEST_VERSION_EXTRA
r29
$ cat LATEST_VERSION_SCRIPTS
r28
How to run:
cd python-build
$ sd=/sdcard adb=~/install/android-sdk-linux/platform-tools/adb \
sh ../tools/localinstall.sh