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

Add modules #18

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

Add modules #18

GoogleCodeExporter opened this issue Dec 16, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

How to add new module without setup ex:  PIL and pygame.


Original issue reported on code.google.com by [email protected] on 27 Dec 2012 at 7:03

@GoogleCodeExporter
Copy link
Author

You would need to add them in the Python build: 
http://code.google.com/p/android-python27/source/browse/#hg%2Fpython-build

You can find info on how to do that there:

- http://bazaar.launchpad.net/~pgs4a-developer/pgs4a/mainline/files
- https://bitbucket.org/gabomdq/ignifuga/src
- https://github.com/kivy/python-for-android/tree/master/recipes

Original comment by [email protected] on 27 Dec 2012 at 7:08

@GoogleCodeExporter
Copy link
Author

Hi Anthony,
Would you mind expanding on your answer? Also, is it possible to add a 
pre-built for android module (such as one downloaded from here: 
http://code.google.com/p/python-for-android/downloads/list) into the zip files 
directly, or must you start a build from scratch? I have experimented with kivy 
and their build process successfully. Is there a way to use the python build 
created with kivy? I'm pretty new to all of this and unfortunately can't seem 
to research my way to the answer.
Thanks, Megan

Original comment by [email protected] on 18 Jan 2013 at 9:31

@GoogleCodeExporter
Copy link
Author

> is it possible to add a pre-built for android module (such as one downloaded 
from here: http://code.google.com/p/python-for-android/downloads/list) into the 
zip files directly

Yes you can add pure python modules into python extras zip. Modules with C code 
compiled must be recompiled and linked against libpython2.7.

> I have experimented with kivy and their build process successfully. Is there 
a way to use the python build created with kivy? 

This should work.
Note that if you plan to use PyGame, it probably makes more sense to just use 
Kivy. 

Original comment by [email protected] on 18 Jan 2013 at 9:46

@GoogleCodeExporter
Copy link
Author

I'm actually trying to work with the twisted library. Where in python extras do 
you add the module? 

And once the module is added in the appropriate location am I correct in my 
understanding that you should be able to import that module directly into your 
.py file without appending any additional directories to the python search path?

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

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