Fix build with Cython 3.0.10

https://github.com/gevent/gevent/issues/2031
This commit is contained in:
Yaakov Selkowitz 2024-09-23 11:55:30 -04:00
commit 8e0113b937
2 changed files with 15 additions and 0 deletions

12
cython3010.patch Normal file
View file

@ -0,0 +1,12 @@
https://github.com/gevent/gevent/issues/2031
--- a/src/gevent/_gevent_cqueue.pxd
+++ b/src/gevent/_gevent_cqueue.pxd
@@ -75,7 +75,6 @@ cdef class ItemWaiter(Waiter):
cdef readonly Queue queue
-@cython.final
cdef class UnboundQueue(Queue):
pass

View file

@ -10,6 +10,9 @@ Summary: A coroutine-based Python networking library
License: MIT
URL: http://www.gevent.org/
Source0: %{pypi_source %{modname} %{version} tar.gz}
# avoid incompatible types error with Cython 3.0.10
# https://github.com/gevent/gevent/issues/2031
Patch0: cython3010.patch
BuildRequires: gcc
BuildRequires: c-ares-devel