Denish553 / android-python27

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

errors building python_27.zip and python_extras_27.zip #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to create a standalone python installation, which can be used with the 
android terminal emulator.
The python installation needs zope, twisted and pyopenssl, so I need to rebuild 
python_27.zip and python_extras_27.zip.
I created an Ubuntu VM (12.04.1-desktop-i386).
I downloaded and installed adt-bundle-linux-x86.zip and 
android-ndk-r7c-linux-x86.tar.bz2.
I downloaded the android-python27 source.
I executed "sudo apt-get install build-essential cpp-4.4 g++-4.4 gcc-4.4-base 
gcc-4.4 bison flex autoconf automake autotools-dev quilt libcurl3 curl 
openssh-server ant mercurial filezilla pure-ftpd dpatch texinfo libncurses5-dev 
libgmp3-dev libmpfr-dev gawk patchutils binutils-dev zlib1g-dev git"
I executed "zcat -f /var/log/dpkg.log* | grep "\ install\ " | sort | tee 
jeeto_install.txt"
I configured NDK in config.sh.
I created jeeto_bootstrap.sh, jeeto_build.sh and jeeto_package.sh.
I executed "bash ./jeeto_bootstrap.sh 2>&1 | tee jeeto_bootstrap.txt"
I executed "bash ./jeeto_build.sh 2>&1 | tee jeeto_build.txt"
I executed "bash ./jeeto_package.sh 2>&1 | tee jeeto_package.txt"
The packaging shows several errors (and python_27.zip is only 2,74 MB and 
python_extras_27.zip is only 1,17 KB).

What am I doing wrong?

Also, how do I add the zope, twisted and pyopenssl recipes from 
kivy/python-for-android to build.sh 
(https://github.com/kivy/python-for-android/tree/master/recipes)?
I do not know much about linux :(

Thank you!

Original issue reported on code.google.com by jeeto.je...@gmail.com on 5 Jan 2013 at 11:31

Attachments:

GoogleCodeExporter commented 9 years ago
>Also, how do I add the zope, twisted and pyopenssl recipes from 
kivy/python-for-android to build.sh 
(https://github.com/kivy/python-for-android/tree/master/recipes)?

If you're not familiar with those kind of stuff you will loose too much time 
trying to add those modules to this Python build, so the easiest for you is to 
use the Python build of Kivy. From there you can add modules you need to your 
build this way:

./distribute.sh -m "openssl zope twisted pyopenssl kivy"

See for more informations: 
https://github.com/kivy/python-for-android/blob/master/docs/source/usage.rst

Then to use your Python build from a terminal emulator, you only need to know 
the path where Python bin/libs/extras are installed on the device and set 
accordingly environment variables like e.g. for this project 
http://code.google.com/p/android-python27/wiki/TutorialHowToRunPythonfromShell

Original comment by anthony....@gmail.com on 5 Jan 2013 at 3:35

GoogleCodeExporter commented 9 years ago
Thank you for your response :)

I build python with the python-for-android source, but now I get "python: 1: 
Syntax error: word unexpected (expecting ")")".

When packaging android-python27, I get several errors. Why? What am I doing 
wrong?

Original comment by jeeto.je...@gmail.com on 5 Jan 2013 at 6:50

GoogleCodeExporter commented 9 years ago
I got it working :D

Original comment by jeeto.je...@gmail.com on 6 Jan 2013 at 10:10