dev-vcs/breezy: Fix building with cython-3.1

Closes: https://bugs.gentoo.org/954134
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2025-05-03 15:10:25 +02:00
parent e86d579f86
commit 29cf6811a2

View File

@@ -7,7 +7,7 @@ CRATES=""
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{10..13} )
PYTHON_COMPAT=( python3_{11..13} )
inherit cargo distutils-r1 optfeature
@@ -57,6 +57,12 @@ src_prepare() {
-e 's@, strip=Strip\.All@@' \
-i setup.py || die
# https://bugs.gentoo.org/954134
find -name '*.pyx' -exec \
sed -e '/_AsUnsignedLongMask/s:PyInt:PyLong:' \
-e 's:cpython\.int:cpython.long:' \
-i {} + || die
distutils-r1_src_prepare
}