From 8e0113b937544135870879be0469f59976bad2cd Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 23 Sep 2024 11:55:30 -0400 Subject: [PATCH] Fix build with Cython 3.0.10 https://github.com/gevent/gevent/issues/2031 --- cython3010.patch | 12 ++++++++++++ python-gevent.spec | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 cython3010.patch diff --git a/cython3010.patch b/cython3010.patch new file mode 100644 index 0000000..87fdcd1 --- /dev/null +++ b/cython3010.patch @@ -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 + diff --git a/python-gevent.spec b/python-gevent.spec index a03d8f2..7a07e83 100644 --- a/python-gevent.spec +++ b/python-gevent.spec @@ -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