mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
dev-python/cython: Port to py39
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
|
||||
PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1 toolchain-funcs elisp-common
|
||||
@@ -26,7 +26,7 @@ BDEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
|
||||
'python3*')
|
||||
python3_{6,7,8})
|
||||
)"
|
||||
|
||||
PATCHES=(
|
||||
@@ -54,6 +54,12 @@ python_compile_all() {
|
||||
}
|
||||
|
||||
python_test() {
|
||||
if [[ ${EPYTHON} == python3.9 ]]; then
|
||||
# https://github.com/cython/cython/issues/3349
|
||||
einfo "Skipping py3.9 due to known failures"
|
||||
return
|
||||
fi
|
||||
|
||||
tc-export CC
|
||||
# https://github.com/cython/cython/issues/1911
|
||||
local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
|
||||
|
||||
Reference in New Issue
Block a user