How can I package the whole python interpreter in an Android APK?
Asked Answered
K

2

8

I know about SL4A and how I can run Python scripts in Android.

I need to know how I can package the whole Python interpreter inside my APK so my end-users won't have to download and install SL4A before running my App.

Thanks.

Karolyn answered 18/4, 2011 at 14:34 Comment(1)
I know how to do this for pygame and it seems to work.Karolyn
C
2

Try looking at kivy.org.

It's a python on android based Multitouch GUI,inside the documentation is explained how to create a package with all inside to publish on Android shop.

I also remember that there was a chapter on the book Pro Android Python with SL4A explaining how to pack all and publish.

Hope this helps

Clinkstone answered 20/7, 2012 at 15:53 Comment(0)
F
2

There's the android-python27 project, which actually works with interpreters other than Python 2.7, despite the name. If you want to bundle a Python application with an interpreter in a single APK, that's about the only option. You can use different interpreters and add your own Python libraries and that kind of thing.

It's pretty painful to use to be honest ~ the 'user-friendly' approach requires Eclipse ~ but, if you're ready to package your app, it does the job.

It's available under Apache License 2.0.

Fecit answered 18/2, 2013 at 18:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.