Skip to content

Python 3 branch still uses python 2.x #1022

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

Closed
kosiara opened this issue Mar 20, 2017 · 1 comment
Closed

Python 3 branch still uses python 2.x #1022

kosiara opened this issue Mar 20, 2017 · 1 comment

Comments

@kosiara
Copy link

kosiara commented Mar 20, 2017

  1. I'm trying to use Kivy's python-for-Android to compile a python interpreter and embed it in Android applications
  2. I need a python 3.x interpreter and the main branch still uses 2.x.

Why is python3 branch still using python 2.x? (As in recipes/hostpython/recipe.sh and
recipes/python/recipe.sh ) ?

Does python-for-Android work as a python3 interpreter?

Where can I find patches to python 3 (like the ones for python 2) ?

Thanks

@inclement
Copy link
Member

inclement commented Mar 25, 2017

The python3 branch just made the old toolchain's python scripts work under Python 3, it didn't attempt to add Python 3 build support. However, the current toolchain (i.e. master branch) supports Python 3 without patching via the CrystaX NDK. The Python 3 recipe is here, but doesnt actually do anything special as we currently use the precompiled CrystaX binaries. There's also some brief documentation about it here.

You can definitely use this method to embed a Python interpreter in your Android applications. If you just want Python itself you could even skip python-for-android and use the CrystaX builds directly, although python-for-android is probably useful if you want to compile extra modules.

You can alternatively find patches for some Python 3 versions in other projects, but I never had much luck with them when trying it. However, I haven't looked for a while.

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

No branches or pull requests

2 participants