plyer icon indicating copy to clipboard operation
plyer copied to clipboard

Current GPS example does not build for android with python 3.

Open piet8stevens opened this issue 7 years ago • 2 comments

The supplied buildozer.spec file works with python 2.7 but not with python 3. I have built it on ubuntu 16.04.

In order to make it work with python 3, the buildozer.spec file needs the following changes (thanks to Alexander Taylor):

  • requirements must be changed to include "android, python3crystax".
  • ndk must be changed to refer to the crystax ndk in android.ndk_path

It makes it easier for a beginner (like me) to provide a buildozer.spec that works with python 3. Maybe provide 2 .spec files? This way, beginners can get up to speed faster and avoid wasting time.

I have not tried any other examples, but the comment may be valid for others, too.

If the community has an interest in getting this done, I can fork, make the changes and do a pull request. Question to be resolved is whether to provide 2 .spec files, one each for python 2.7 and 3.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

piet8stevens avatar Jun 03 '17 16:06 piet8stevens

I like the idea. IMO we should have the spec files for all packaging we already have i.e. if it's on android, then let's have buildozer_android_py2.spec, buildozer_android_py3.spec and for iOS buildozer_iOS_py2.spec (and py3 in the future) + pyinstaller spec for (at least) Windows. This way if one person packages is correctly we'd have a base that we can later edit. It could also make testing before a release faster if everything works right.

KeyWeeUsr avatar Oct 15 '18 21:10 KeyWeeUsr

We don't need Python 2 support any more, but I would like to hear that the provided Buildozer.spec works now for Python 3 (i.e. at all)

Julian-O avatar Oct 26 '23 10:10 Julian-O