8000 Merge pull request #1062 from inclement/delete_kivy_examples · ikewang/python-for-android@06f981f · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 06f981f

Browse files
authored
Merge pull request kivy#1062 from inclement/delete_kivy_examples
Delete the kivy-examples dir from the dist under python3
2 parents 8747281 + c0049ae commit 06f981f

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,7 @@
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, isdir
4+
from shutil import rmtree
45
import sh
56
import glob
67

@@ -43,4 +44,11 @@ def get_recipe_env(self, arch):
4344

4445
return env
4546

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+
4654
recipe = KivyRecipe()

0 commit comments

Comments
 (0)
0