Skip to content

Commit 84bbbc7

Browse files
committed
Fixed Kivy master compilation by ignoring some pyx files
1 parent b0f52e7 commit 84bbbc7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
from pythonforandroid.toolchain import CythonRecipe, shprint, current_directory, ArchARM
3-
from os.path import exists, join
3+
from os.path import exists, join, basename
44
import sh
55
import glob
66

@@ -30,6 +30,14 @@ def cythonize_build(self, env, build_dir='.'):
3030
shprint(sh.cp, '-r', join('kivy', 'include'),
3131
join(dirn, 'kivy'))
3232

33+
def cythonize_file(self, env, build_dir, filename):
34+
# We can ignore a few files that aren't important to the
35+
# android build, and may not work on Android anyway
36+
do_not_cythonize = ['window_x11.pyx', ]
37+
if basename(filename) in do_not_cythonize:
38+
return
39+
super(KivyRecipe, self).cythonize_file(env, build_dir, filename)
40+
3341
def get_recipe_env(self, arch):
3442
env = super(KivyRecipe, self).get_recipe_env(arch)
3543
if 'sdl2' in self.ctx.recipe_build_order:

0 commit comments

Comments
 (0)