Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix failure when cythoning kivy/core/window_11 #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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