Python for android phones
Python C Perl Objective-C Shell C++ Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.hg_archival.txt
.hgtags
LICENSE
Makefile.pre.in
README.original
Readme.md
compile.sh
configure
configure.in
gdb.setup
install-sh
pyconfig.h
pyconfig.h.in
setup.py

Readme.md

Python2.7.3 Android

This is source for building python2.7.3 for android usig android-ndk.inspired by [python-for-android - Py4A] (http://code.google.com/p/python-for-android/)

Binary files can be downloaded from sourceforge download page by using python we can run ipython on android terminal emulator

compile.sh may give some clue about compiling the source.

compiling hints

Set the appropriate path for your android-ndk ,includes and libs in compile.sh put a runnable python2.7.3 binary file and rename it into hostpython.(It can be copied from /usr/bin or can be compiled from source) uncomment 'configure' and 'make' commands in compile.sh for corresponding actions. this will produce binaries with debugging information (big size tooo). so stripping down is necessary binaries with debugging symbols can be used for debugging with gdbsever. gdbserver arm-elf binary can be found in ndk folder file gdb.setup contains some gdb commands which i used for debuging python using gdb remote debugging For redline support, readline and ncurses libraries are necessary. no need to compile sqlite and openssl (I didn't do that) copy the required header files (for sqlite and openssl) from androidsource/external folder and copy shared libraries fom phones /system/lib folder