mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
python3-PyOpenGL-accelerate: fix build with Cython 3.1
This commit is contained in:
parent
fbb400bec1
commit
a2513f1a20
2 changed files with 21 additions and 1 deletions
20
srcpkgs/python3-PyOpenGL-accelerate/patches/cython-3.1.patch
Normal file
20
srcpkgs/python3-PyOpenGL-accelerate/patches/cython-3.1.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- a/src/vbo.pyx
|
||||
+++ b/src/vbo.pyx
|
||||
@@ -188,7 +188,7 @@
|
||||
assert not self.created, """Already created the buffer"""
|
||||
buffers = self.get_implementation().glGenBuffers(1)
|
||||
try:
|
||||
- self.buffer = long( buffers )
|
||||
+ self.buffer = int( buffers )
|
||||
except (TypeError,ValueError) as err:
|
||||
self.buffer = buffers[0]
|
||||
self.target = self.c_resolve( self.target_spec )
|
||||
@@ -242,7 +242,7 @@
|
||||
"""Add an integer to this VBO (offset)"""
|
||||
if hasattr( other, 'offset' ):
|
||||
other = other.offset
|
||||
- assert isinstance( other, (int,long) ), """Only know how to add integer/long offsets"""
|
||||
+ assert isinstance( other, (int) ), """Only know how to add integer offsets"""
|
||||
return VBOOffset( self, other )
|
||||
cdef int check_live( self ):
|
||||
if self.data is _NULL:
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python3-PyOpenGL-accelerate'
|
||||
pkgname=python3-PyOpenGL-accelerate
|
||||
version=3.1.9
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-Cython"
|
||||
makedepends="python3-devel"
|
||||
|
|
Loading…
Add table
Reference in a new issue