py-gevent: add patch for Cython 3.0.10 and 3.0.11 (#46845)

Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
This commit is contained in:
Juan Miguel Carceller 2024-10-07 17:38:36 +02:00 committed by GitHub
parent 416943f7ed
commit d5ccf8203d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 6 deletions

View File

@ -0,0 +1,9 @@
--- 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

@ -41,16 +41,13 @@ class PyGevent(PythonPackage):
# https://github.com/gevent/gevent/issues/1599
conflicts("^py-cython@3:", when="@:20.5.0")
# https://github.com/gevent/gevent/issues/2031
conflicts(
"^py-cython@3.0.10",
when="@:23.9.0",
msg="py-gevent fails to build when using cython@3.0.10",
)
# Deprecated compiler options. upstream PR: https://github.com/gevent/gevent/pull/1896
patch("icc.patch", when="@:21.12.0 %intel")
# https://github.com/gevent/gevent/issues/2031
patch("cython.patch", when="@:24.2.1^py-cython@3.0.10:3.0.11")
@run_before("install")
def recythonize(self):
# Clean pre-generated cython files -- we've seen issues with Python 3.8 due to