forked from pool/python-opengl-accelerate
Add patch to work with latest beta OBS-URL: https://build.opensuse.org/request/show/724517 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opengl-accelerate?expand=0&rev=11
26 lines
725 B
Diff
26 lines
725 B
Diff
=== modified file 'accelerate/src/numpy_formathandler.pyx'
|
|
--- accelerate/src/numpy_formathandler.pyx 2018-08-12 01:47:52 +0000
|
|
+++ accelerate/src/numpy_formathandler.pyx 2018-11-05 06:18:00 +0000
|
|
@@ -52,16 +52,18 @@
|
|
np.float16,
|
|
np.float32,
|
|
np.float64,
|
|
- np.float128,
|
|
np.complex64,
|
|
np.complex128,
|
|
- np.complex256,
|
|
np.bytes_,
|
|
np.str_,
|
|
np.void,
|
|
np.datetime64,
|
|
np.timedelta64,
|
|
)
|
|
+ if hasattr(np,'float128'):
|
|
+ HANDLED_TYPES += (np.float128,)
|
|
+ if hasattr(np,'complex256'):
|
|
+ HANDLED_TYPES += (np.complex256,)
|
|
|
|
def __init__( self, ERROR_ON_COPY=None, a_to_gl=None, gl_to_a=None ):
|
|
if ERROR_ON_COPY is None:
|
|
|