-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
44 lines (35 loc) · 1.07 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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