summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2021-10-12 20:01:30 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2021-10-12 20:22:24 +0300
commitd64bf0672e79b240faf4e8d15bb57958e99b7bd6 (patch)
tree4c39a50fbd2028928d0b21803f1a89f81559abf5
parentdev-python/pycollada: enable py3.10 (diff)
downloadgentoo-d64bf0672e79b240faf4e8d15bb57958e99b7bd6.tar.gz
gentoo-d64bf0672e79b240faf4e8d15bb57958e99b7bd6.tar.bz2
gentoo-d64bf0672e79b240faf4e8d15bb57958e99b7bd6.zip
dev-python/mpi4py: enable py3.10
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--dev-python/mpi4py/mpi4py-3.0.3.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-python/mpi4py/mpi4py-3.0.3.ebuild b/dev-python/mpi4py/mpi4py-3.0.3.ebuild
index 15fba5f284a5..2a020662ac41 100644
--- a/dev-python/mpi4py/mpi4py-3.0.3.ebuild
+++ b/dev-python/mpi4py/mpi4py-3.0.3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
DESCRIPTION="Message Passing Interface for Python"
@@ -36,6 +36,13 @@ PATCHES=(
"${FILESDIR}/${P}-py38futures.patch"
)
+src_prepare() {
+ sed -e 's/++Py_REFCNT/Py_INCREF/' \
+ -e 's/--Py_REFCNT/Py_DECREF/' \
+ -i src/*.c || die
+ distutils-r1_src_prepare
+}
+
python_prepare_all() {
# not needed on install
rm -vr docs/source || die