Deprecated: Array and string offset access syntax with curly braces is deprecated in /srv/www/vhosts/scios.ch/httpdocs/inet/inc/init.php on line 557

Warning: Declaration of action_plugin_captcha::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /srv/www/vhosts/scios.ch/httpdocs/inet/lib/plugins/captcha/action.php on line 20
py34a_howto [SciOS::Home]
topheader Welcome 18.118.32.213 @ scios.ch on Sat Apr 20 9:28:00 UTC 2024
 
topheader
 

Python 3 for Android

Read http://code.google.com/p/python-for-android/wiki/Python3

Install the following items:



Proceed as given by the instructions at http://code.google.com/p/python-for-android/wiki/Python3


Create a start file that calls the py3 interpreter in the terminal emulation:

export EXTERNAL_STORAGE=/mnt/sdcard/com.googlecode.python3forandroid
export PY34A=/data/data/com.googlecode.python3forandroid/files/python3
export PY4A_EXTRAS=$EXTERNAL_STORAGE/extras
export PYTHONPATH=$EXTERNAL_STORAGE/extras/python3:$PY34A/lib/python3.2/lib-dynload
export TEMP=$EXTERNAL_STORAGE/extras/python3/tmp
export HOME=/sdcard
export PYTHON_EGG_CACHE=$TEMP
export PYTHONHOME=$PY34A
export LD_LIBRARY_PATH=$PY34A/lib
$PYTHONHOME/bin/python3 "$@"

Place it somewhere it can be read and executed, e.g. /sdcard. Note that one can ssh/sftp to the Android tablet by SSHdroid, what is quite convenient for development and editing purposes.

How it looks like

 
 
py34a_howto.txt · Last modified: 2013/08/05 20:12 by admin
topheader
© 1998-2022, SciOS Scientific Operating Systems GmbH

Legal | Credits | Profile | Contact | Customer Login