Differences
This shows you the differences between two versions of the page.
Next revision
|
Previous revision
|
py34a_howto [2013/08/05 19:28] admin created |
py34a_howto [2013/08/05 20:12] (current) admin |
\\ | \\ |
Install the following items: | Install the following items: |
- [[SSHdroid|https://play.google.com/store/apps/details?id=berserker.android.apps.sshdroid&hl=de]] | - [[https://play.google.com/store/apps/details?id=berserker.android.apps.sshdroid&hl=de|SSHdroid]] |
- [[Android Terminal Emulator|https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=de]] | - [[https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=de|Android Terminal Emulator]] |
| - [[http://code.google.com/p/python-for-android/downloads/detail?name=Python3ForAndroid_r6.apk|Python 3 for Android r6 APK]] |
| \\ \\ |
| 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. |
| |
| {{:screenshot_2013-08-05-21-54-18.jpg?256x160|How it looks like}} |