Automatically exported from code.google.com/p/python-for-android
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
This repository is in alpha development. forked from Py4A on GoogleCode
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::
markdown * 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)
shell $ sudo apt install libzlib-dev
Clone this project. ```shell 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
* Build the py4a binaries.shell $ cd python-build $ NDKPATH=/path/to/android-ndk-r10d make build $ ls python*.zip pythonr29.zip pythonextrar29.zip ... and so on...
* Confirm your binary version.shell $ cd python-build $ cat LATESTVERSION r29 $ cat LATESTVERSIONEXTRA r29 $ cat LATESTVERSION_SCRIPTS r28 ``` * Make a release in github and Upload the binaries to it. Please be careful to match the release name and confirmed binary versions.
How to run: * after build, move current directory to python2:
cd python-build* run scripts
shell $ sd=/sdcard adb=~/install/android-sdk-linux/platform-tools/adb \ sh ../tools/localinstall.sh