Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pythonforandroid/recipes/kivy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

from pythonforandroid.toolchain import CythonRecipe, shprint, current_directory, ArchARM
from os.path import exists, join
from os.path import exists, join, basename
import sh
import glob

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

def cythonize_file(self, env, build_dir, filename):
# We can ignore a few files that aren't important to the
# android build, and may not work on Android anyway
do_not_cythonize = ['window_x11.pyx', ]
if basename(filename) in do_not_cythonize:
return
super(KivyRecipe, self).cythonize_file(env, build_dir, filename)

def get_recipe_env(self, arch):
env = super(KivyRecipe, self).get_recipe_env(arch)
if 'sdl2' in self.ctx.recipe_build_order:
Expand Down