After git cloning python-for-android I tried creating a distribution:
./distribute.sh -m "kivy"
And got few errors of this kind:
Error compiling Cython file:
------------------------------------------------------------
...
vertex_format.last_shader = self
for i in xrange(vertex_format.vattr_count):
attr = &vertex_format.vattr[i]
if attr.per_vertex == 0:
continue
attr.index = glGetAttribLocation(self.program, <char *><bytes>attr.name)
^
------------------------------------------------------------
kivy/graphics/shader.pyx:448:63: Casting temporary Python object to non-numeric non-Python type
Found this answer, which did not solve my problem:
sudo apt-get remove --purge cython
sudo pip install cython
Do I need a specific Cython version?
Thanks!
Update
Thanks to @RyanP I tried running:
cython -V
cython shader.pyx
Well, Cython version seems ok:
Cython version 0.21
But still, shader.pyx won't compile with the very same error.
Another update
I did both:
- Used @inclement advice and removed both
build
anddist
. - Used
export P4A_kivy_DIR=/path/to/cloned/kivy/
And dist/default
was finally created.