/python-for-android-x86

Make original project https://code.google.com/p/python-for-android/ works for x86 architecture

Primary LanguageCApache License 2.0Apache-2.0

This project is inherited from https://code.google.com/p/python-for-android/.

The target is to support X86 architecture for android python.

Following words are from original project python-for-android, and maybe 
updated later.


========================================================================
In order to build Py4A you first need to build Python for Android platform,
make sure you have all the dependencies needed for building python 2.6 for your
distro in Ubuntu run: sudo apt-get build-dep python2.6

In Ubuntu (i386) you need to run this before anything else:
export LDFLAGS="-L /usr/lib/i386-linux-gnu/"

pushd python-build
bash build.sh
popd

Then you need to update the references for the APK file
pushd python-build
python update-apk.py
popd

Next step is building a few Android libraries needed for Py4A to be built.
pushd android
pushd Utils
ant
popd
pushd Common
ant
popd
pushd InterpreterForAndroid
ant
popd
popd

Now build Py4A apk signing with debug key
pushd android/PythonForAndroid
mkdir libs
cp ../{Utils,Common,InterpreterForAndroid}/dist/*.jar libs
ant debug
popd