Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mpi4py/
Date: Tue, 12 Oct 2021 17:22:47
Message-Id: 1634059344.d64bf0672e79b240faf4e8d15bb57958e99b7bd6.arthurzam@gentoo
1 commit: d64bf0672e79b240faf4e8d15bb57958e99b7bd6
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 12 17:01:30 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 12 17:22:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d64bf067
7
8 dev-python/mpi4py: enable py3.10
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/mpi4py/mpi4py-3.0.3.ebuild | 11 +++++++++--
13 1 file changed, 9 insertions(+), 2 deletions(-)
14
15 diff --git a/dev-python/mpi4py/mpi4py-3.0.3.ebuild b/dev-python/mpi4py/mpi4py-3.0.3.ebuild
16 index 15fba5f284a..2a020662ac4 100644
17 --- a/dev-python/mpi4py/mpi4py-3.0.3.ebuild
18 +++ b/dev-python/mpi4py/mpi4py-3.0.3.ebuild
19 @@ -1,9 +1,9 @@
20 -# Copyright 1999-2020 Gentoo Authors
21 +# Copyright 1999-2021 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI=7
25
26 -PYTHON_COMPAT=( python3_{7,8,9} )
27 +PYTHON_COMPAT=( python3_{8..10} )
28 inherit distutils-r1
29
30 DESCRIPTION="Message Passing Interface for Python"
31 @@ -36,6 +36,13 @@ PATCHES=(
32 "${FILESDIR}/${P}-py38futures.patch"
33 )
34
35 +src_prepare() {
36 + sed -e 's/++Py_REFCNT/Py_INCREF/' \
37 + -e 's/--Py_REFCNT/Py_DECREF/' \
38 + -i src/*.c || die
39 + distutils-r1_src_prepare
40 +}
41 +
42 python_prepare_all() {
43 # not needed on install
44 rm -vr docs/source || die