1
1
2
2
from pythonforandroid .toolchain import CythonRecipe , shprint , current_directory , ArchARM
3
- from os .path import exists , join , isdir
4
- from shutil import rmtree
3
+ from os .path import exists , join
5
4
import sh
6
5
import glob
7
6
@@ -35,6 +34,7 @@ def get_recipe_env(self, arch):
35
34
env = super (KivyRecipe , self ).get_recipe_env (arch )
36
35
if 'sdl2' in self .ctx .recipe_build_order :
37
36
env ['USE_SDL2' ] = '1'
37
+ env ['KIVY_SPLIT_EXAMPLES' ] = '1'
38
38
env ['KIVY_SDL2_PATH' ] = ':' .join ([
39
39
join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL' , 'include' ),
40
40
join (self .ctx .bootstrap .build_dir , 'jni' , 'SDL2_image' ),
@@ -44,11 +44,4 @@ def get_recipe_env(self, arch):
44
44
45
45
return env
46
46
47
- def install_python_package (self , arch ):
48
- super (KivyRecipe , self ).install_python_package (arch )
49
- site_packages_dir = self .ctx .get_site_packages_dir (arch )
50
- usr_dir = join (site_packages_dir , 'usr' , 'share' , 'kivy-examples' )
51
- if exists (usr_dir ) and isdir (usr_dir ):
52
- rmtree (usr_dir )
53
-
54
47
recipe = KivyRecipe ()
0 commit comments