glwu / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

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