summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cython/cython-0.28.4.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-python/cython/cython-0.28.4.ebuild b/dev-python/cython/cython-0.28.4.ebuild
index eecc7a4ba326..cf9e239cebae 100644
--- a/dev-python/cython/cython-0.28.4.ebuild
+++ b/dev-python/cython/cython-0.28.4.ebuild
@@ -32,6 +32,14 @@ DEPEND="${RDEPEND}
SITEFILE=50cython-gentoo.el
S="${WORKDIR}/${MY_PN}-${PV%_*}"
+python_prepare_all() {
+ # tests behavior that is illegal in Python 3.7+
+ # https://github.com/cython/cython/issues/2454
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_compile() {
if ! python_is_python3; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"