aboutsummaryrefslogtreecommitdiff
path: root/lang/python/python-yaml/patches/001-cython3.patch
blob: fe3956c2c6807e35598f5bf169777eb0b1671604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,3 @@
 [build-system]
-requires = ["setuptools", "wheel", "Cython<3.0"]
+requires = ["setuptools", "wheel", "Cython"]
 build-backend = "setuptools.build_meta"
--- a/setup.py
+++ b/setup.py
@@ -82,7 +82,7 @@ if 'sdist' in sys.argv or os.environ.get
     with_cython = True
 try:
     from Cython.Distutils.extension import Extension as _Extension
-    from Cython.Distutils import build_ext as _build_ext
+    from Cython.Distutils.old_build_ext import old_build_ext as _build_ext
     with_cython = True
 except ImportError:
     if with_cython: