darylbrewer / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Python from Debian chroot can't use android.py #348

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Users with Debian on their phones would like to be able to import android.py 
from ASE using the Python distributed with Debian.

Original issue reported on code.google.com by damonkoh...@gmail.com on 13 Jun 2010 at 10:23

GoogleCodeExporter commented 9 years ago
Michael Kramer says:

i just followed the debian-on-G1 instructions from here:
http://www.saurik.com/id/10
to get the debian chroot working on the nexus one.

then it required the python 2.5 adjustment that is available from the
ASE tutorials: 
http://forum.xda-developers.com/showpost.php?s=a6dd9291991d8fcd9a512764d0bf00bb&
p=3957997&postcount=8

and finally (admittedly this is klugey) i have ASE run a script (e.g.
in /sdcard/ase/scripts/ ) that makes os.system calls
to start a chroot session wheren the desired python is started.

not only is debian nice for the c-types support, but as soon as you
have it you also have
gcc + all the nice development tools so you can build libraries,
executables, modules, etc. on the phone as
you would any other machine - so no need for a cross compiling
environment - and then there
are all the GUI desktops that one can try on the debian side (and see
via vnc on the android side), these
show nice proof of concept but tend to be slow difficult to work with
- so its python through ASE for me.

Original comment by damonkoh...@gmail.com on 6 Aug 2010 at 9:14