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

Cython is called in incompatible way, not all options are supported (especially -I) #2311

Closed
4 of 5 tasks
rambo opened this issue Sep 11, 2020 · 0 comments
Closed
4 of 5 tasks

Comments

@rambo
Copy link
Contributor

rambo commented Sep 11, 2020

Checklist

  • the issue is indeed a bug and not a support request
  • issue doesn't already exist: https://github.com/kivy/python-for-android/issues
  • I have a short, runnable example that reproduces the issue
  • I reproduced the problem with the latest development version (p4a.branch = develop)
  • I used the grave accent (aka backticks) to format code or logs when appropriated

Versions

  • Python: 3.7 (also tried with 3.8)
  • OS: Ubuntu 20.04
  • Kivy: 1.11.1
  • Cython: git master HEAD, 0.29.21, 0.29.19
  • OpenJDK: 8u265-b01-0ubuntu2~20.04

Description

Compiling ZMQ recipe fails because cython is called in an incompatible way.

/home/rambo/.virtualenvs/py4a_37/bin/python3 -m Cython.Build.Cythonize --help

has different command line options from

/home/rambo/.virtualenvs/py4a_37/bin/cython --help

This (at least based on the recipe trying to pass -I options) is the correct script, unfortunately the Cython.Compiler.Main module cannot be called as a script (lack the if __name__ == '__main__' check so just changing the module in https://github.com/kivy/python-for-android/blob/develop/pythonforandroid/recipe.py#L1095 is not going to solve this.

buildozer.spec

Using p4a directly

Command:

p4a apk --private `pwd` --package=fi.advian.hellokv --use-setup-py --name "Hello kivy" --version 0.1 --bootstrap=sdl2 --requirements=python3,kivy --ndk-api=21 --ndk-dir=$HOME/.buildozer/android/platform/android-ndk-r19c --sdk-dir=$HOME/.buildozer/android/platform/android-sdk/

Logs

See https://gist.github.com/rambo/feab17c51a742b3d1f2239295298732b

rambo added a commit to advian-oss/python-for-android that referenced this issue Sep 11, 2020
rambo added a commit to advian-oss/python-for-android that referenced this issue Sep 11, 2020
rambo added a commit to advian-oss/python-for-android that referenced this issue Sep 14, 2020
vesellov pushed a commit to vesellov/python-for-android that referenced this issue Feb 10, 2021
* Call cython via the setuptools entrypoint, refs kivy#2311

* Use the python_command way to invoke the cython cli entrypoint
germn pushed a commit to germn/python-for-android that referenced this issue Mar 20, 2021
* Call cython via the setuptools entrypoint, refs kivy#2311

* Use the python_command way to invoke the cython cli entrypoint
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

1 participant