Skip to content

Commit 6e2e12d

Browse files
committed
Modified vispy recipe for vispy's internal changes
1 parent 110cf69 commit 6e2e12d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pythonforandroid/recipes/vispy/__init__.py

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

77

88
class VispyRecipe(PythonRecipe):
9-
version = '0.4.0'
10-
url = 'https://github.com/vispy/vispy/archive/v{version}.tar.gz'
9+
# version = 'v0.4.0'
10+
version = 'master'
11+
url = 'https://github.com/vispy/vispy/archive/{version}.tar.gz'
1112
# version = 'campagnola-scenegraph-update'
1213
# url = 'https://github.com/campagnola/vispy/archive/scenegraph-update.zip'
1314
# version = '???'
@@ -25,6 +26,10 @@ def prebuild_arch(self, arch):
2526
self.apply_patch('disable_font_triage.patch')
2627
self.apply_patch('use_es2.patch')
2728
self.apply_patch('remove_ati_check.patch')
29+
30+
self.apply_patch('make_shader_es2_compliant.patch')
31+
self.apply_patch('detect_finger_events.patch')
32+
2833
shprint(sh.touch, join(build_dir, '.patched'))
2934

3035
recipe = VispyRecipe()

tests/vispy_testapp/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
print('imported util')
1212
print(ctypes.util.find_library)
1313

14+
import vispy
15+
# vispy.set_log_level('debug')
16+
1417
import sys
1518
from vispy import scene
1619
from vispy.geometry.torusknot import TorusKnot
@@ -19,6 +22,7 @@
1922
import numpy as np
2023

2124
canvas = scene.SceneCanvas(keys='interactive', bgcolor='white')
25+
canvas.unfreeze()
2226
canvas.view = canvas.central_widget.add_view()
2327

2428
points1 = TorusKnot(5, 3).first_component[:-1]

0 commit comments

Comments
 (0)