dev-python/cython: Port to py39
authorMichał Górny <mgorny@gentoo.org>
Tue, 26 May 2020 08:02:27 +0000 (10:02 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 26 May 2020 09:35:47 +0000 (11:35 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/cython/cython-0.29.19.ebuild

index 187187f523425bed01b803bedc4ed158af13c536..8b4b6e7acc619df608c651841fe5eac0108242dc 100644 (file)
@@ -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"