8000 Changed vispy to 0.4 and added patches · s3coderz/python-for-android@7524ce2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7524ce2

Browse files
committed
Changed vispy to 0.4 and added patches
1 parent be1a4fd commit 7524ce2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pythonforandroid/recipes/vispy/__init__.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,20 @@
66

77

88
class VispyRecipe(PythonRecipe):
9-
version = 'master'
10-
url = 'https://github.com/vispy/vispy/archive/{version}.zip'
9+
version = '0.4.0'
10+
url = 'https://github.com/vispy/vispy/archive/v{version}.tar.gz'
1111

1212
depends = ['python2', 'numpy']
1313

14+
def prebuild_arch(self, arch):
15+
super(VispyRecipe, self).prebuild_arch(arch)
16+
build_dir = self.get_build_dir(arch.arch)
17+
if exists(join(build_dir, '.patched')):
18+
print('vispy already patched, skipping')
19+
return
20+
self.apply_patch('disable_freetype.patch')
21+
self.apply_patch('disable_font_triage.patch')
22+
self.apply_patch('use_es2.patch')
23+
shprint(sh.touch, join(build_dir, '.patched'))
24+
1425
recipe = VispyRecipe()

0 commit comments

Comments
 (0)
0