mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-09 00:10:21 +03:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user