Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/
Date: Tue, 26 May 2020 09:36:07
Message-Id: 1590485747.78c28f624e112d2fb0487c0e6a9fb0ef2d38a214.mgorny@gentoo
1 commit: 78c28f624e112d2fb0487c0e6a9fb0ef2d38a214
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 26 08:02:27 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue May 26 09:35:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c28f62
7
8 dev-python/cython: Port to py39
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cython/cython-0.29.19.ebuild | 10 ++++++++--
13 1 file changed, 8 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/cython/cython-0.29.19.ebuild b/dev-python/cython/cython-0.29.19.ebuild
16 index 187187f5234..8b4b6e7acc6 100644
17 --- a/dev-python/cython/cython-0.29.19.ebuild
18 +++ b/dev-python/cython/cython-0.29.19.ebuild
19 @@ -3,7 +3,7 @@
20
21 EAPI=7
22
23 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
24 +PYTHON_COMPAT=( python2_7 python3_{6,7,8,9} pypy3 )
25 PYTHON_REQ_USE="threads(+)"
26
27 inherit distutils-r1 toolchain-funcs elisp-common
28 @@ -26,7 +26,7 @@ BDEPEND="${RDEPEND}
29 dev-python/setuptools[${PYTHON_USEDEP}]
30 test? (
31 $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
32 - 'python3*')
33 + python3_{6,7,8})
34 )"
35
36 PATCHES=(
37 @@ -54,6 +54,12 @@ python_compile_all() {
38 }
39
40 python_test() {
41 + if [[ ${EPYTHON} == python3.9 ]]; then
42 + # https://github.com/cython/cython/issues/3349
43 + einfo "Skipping py3.9 due to known failures"
44 + return
45 + fi
46 +
47 tc-export CC
48 # https://github.com/cython/cython/issues/1911
49 local -x CFLAGS="${CFLAGS} -fno-strict-overflow"