Skip to content

Commit 4db3116

Browse files
authored
Add Recipe for Kivy3 module (#2263)
Add recipe for kivy3
1 parent 392d57f commit 4db3116

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
from pythonforandroid.recipe import PythonRecipe
2+
import shutil
3+
4+
5+
class Kivy3Recipe(PythonRecipe):
6+
version = 'master'
7+
url = 'https://github.com/kivy/kivy3/archive/{version}.zip'
8+
9+
depends = ['kivy']
10+
site_packages_name = 'kivy3'
11+
12+
'''Due to setuptools.'''
13+
call_hostpython_via_targetpython = False
14+
15+
def build_arch(self, arch):
16+
super().build_arch(arch)
17+
suffix = '/kivy3/default.glsl'
18+
shutil.copyfile(self.get_build_dir(arch.arch) + suffix, self.ctx.get_python_install_dir() + suffix)
19+
20+
21+
recipe = Kivy3Recipe()

0 commit comments

Comments
 (0)