python3-yaml: patch and rebuild for Cython 3

This commit is contained in:
Andrew J. Hesford 2023-07-17 16:11:36 -04:00
parent 4af03fdffc
commit 541068665d
2 changed files with 12 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- a/setup.py
+++ b/setup.py
@@ -81,7 +81,7 @@
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:

View file

@ -1,7 +1,7 @@
# Template file for 'python3-yaml' # Template file for 'python3-yaml'
pkgname=python3-yaml pkgname=python3-yaml
version=6.0 version=6.0
revision=2 revision=3
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython" hostmakedepends="python3-setuptools python3-Cython"
makedepends="libyaml-devel python3-devel" makedepends="libyaml-devel python3-devel"