python3-PyOpenGL-accelerate: fix build with Cython 3.1

This commit is contained in:
Andrew J. Hesford 2025-07-28 14:19:00 -04:00
parent fbb400bec1
commit a2513f1a20
2 changed files with 21 additions and 1 deletions

View 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:

View file

@ -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"