14
0

Accepting request 724517 from home:jayvdb:branches:devel:languages:python

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
This commit is contained in:
Tomáš Chvátal
2019-08-19 09:12:08 +00:00
committed by Git OBS Bridge
parent b927279aa6
commit 6d433a4a36
5 changed files with 76 additions and 7 deletions

25
commit1080.patch Normal file
View File

@@ -0,0 +1,25 @@
=== 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: