damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.44k stars 800 forks source link

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

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:26

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

Copied from original issue: damonkohler/android-scripting#348

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:26

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