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:
parent
416943f7ed
commit
d5ccf8203d
9
var/spack/repos/builtin/packages/py-gevent/cython.patch
Normal file
9
var/spack/repos/builtin/packages/py-gevent/cython.patch
Normal 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
|
@ -41,16 +41,13 @@ class PyGevent(PythonPackage):
|
|||||||
|
|
||||||
# https://github.com/gevent/gevent/issues/1599
|
# https://github.com/gevent/gevent/issues/1599
|
||||||
conflicts("^py-cython@3:", when="@:20.5.0")
|
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
|
# Deprecated compiler options. upstream PR: https://github.com/gevent/gevent/pull/1896
|
||||||
patch("icc.patch", when="@:21.12.0 %intel")
|
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")
|
@run_before("install")
|
||||||
def recythonize(self):
|
def recythonize(self):
|
||||||
# Clean pre-generated cython files -- we've seen issues with Python 3.8 due to
|
# Clean pre-generated cython files -- we've seen issues with Python 3.8 due to
|
||||||
|
Loading…
Reference in New Issue
Block a user