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

Python 3.8 support on Android #2044

Merged
merged 8 commits into from
Feb 16, 2020
Merged

Conversation

inclement
Copy link
Member

Needs cleaning up so not for merging yet (in particular want to retain the py3.7 patches for py3.7 builds), but this seems to work.

@opacam
Copy link
Member

opacam commented Dec 27, 2019

Nice work 👍

Thanks @inclement, I will review it when you finish the last touches, aaa...and it would be great to have the python 3.8 patch uploaded so we can to test this 😄

@jgavris
Copy link

jgavris commented Feb 11, 2020

+1 ...If you can upload the patch for 3.8 we're more than willing to test it.

@inclement
Copy link
Member Author

Doing some testing now, but this is intended to be basically final (barring bugfixes).

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looking forward to testing it soon

pythonforandroid/patching.py Show resolved Hide resolved
@inclement
Copy link
Member Author

I've tested that this is working. There's a minor inconvenience that you have to remember to change both the python3 and hostpython3 versions if targeting something different to the default, but that's something we can fix later.

pythonforandroid/python.py Outdated Show resolved Hide resolved
@inclement
Copy link
Member Author

Thanks for the reviews. Looks like the only test failure is now in travis on macOS, with the error: [Errno 2] No such file or directory: '/usr/local/include/python3.8/pyconfig.h' that I've seen other people mention before, presumably because the Travis builds are using 3.7. I've changed the travis.yml to use 3.8 to see if that works, but does anyone know why osx (and only osx) is using the system's Python.h in the build?

@inclement
Copy link
Member Author

inclement commented Feb 16, 2020

Looks like 3.8 isn't available on macos with travis anyway, so updating the travis.yml doesn't do anything useful. Let's leave it at 3.7 for now, it's fine to run p4a under this version and we can sort out multi-version testing later if we want.

This leaves the question of what to do with the failing macos build. Does anyone expect to commit a fix for the pyconfig.h problem any time soon (or maybe I already missed one?)?

@inclement
Copy link
Member Author

Just ran the tests on the develop branch again, to establish that the macos pyconfig.h issues is present there as well. I think this PR can therefore be merged, the tests are only failing in one place, the same as on trunk.

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! I only have one concern. Why bumping the default version to some "cutting edge" Python? Specially since it breaks the build for osx.
My concern with having broken build on develop branch is we may start overlook on other broken things in the future as the build would be red anyway.
So probably keeping the default to 3.7 in the recipe is an easy enough workaround until somebody sorts things up on osx?

@@ -18,15 +19,24 @@ class Python3Recipe(GuestPythonRecipe):
:class:`~pythonforandroid.python.GuestPythonRecipe`
'''

version = '3.7.1'
version = '3.8.1'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why bumping the default version to something "cutting edge"? I think it's great that we support it, but maybe it's a bit early to bump it as a default at the same time?

@inclement
Copy link
Member Author

inclement commented Feb 16, 2020 via email

@AndreMiras
Copy link
Member

Re the broken osx build, I just saw from your other PR, the osx build is broken no matter what #1975
So I understand now this is not related to this one either and I misunderstood that 👍

@inclement
Copy link
Member Author

Thanks. I'm going to go ahead and merge this, we can always change the default version later if preferred.

@inclement inclement merged commit 40ed06d into kivy:develop Feb 16, 2020
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

Successfully merging this pull request may close these issues.

4 participants