Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors building python_27.zip and python_extras_27.zip #20

Open
GoogleCodeExporter opened this issue Dec 16, 2015 · 3 comments
Open

errors building python_27.zip and python_extras_27.zip #20

GoogleCodeExporter opened this issue Dec 16, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 5 Jan 2013 at 11:31

Attachments:

@GoogleCodeExporter
Copy link
Author

>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 [email protected] on 5 Jan 2013 at 3:35

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 5 Jan 2013 at 6:50

@GoogleCodeExporter
Copy link
Author

I got it working :D

Original comment by [email protected] on 6 Jan 2013 at 10:10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant