public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Yixun Lan" <dlan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/mpi4py/
Date: Fri,  6 Jan 2023 14:51:49 +0000 (UTC)	[thread overview]
Message-ID: <1673016319.d714c01d6241f43dae4fb3abc426397d7609c622.dlan@gentoo> (raw)

commit:     d714c01d6241f43dae4fb3abc426397d7609c622
Author:     Alex Fan <alex.fan.q <AT> gmail <DOT> com>
AuthorDate: Fri Jan  6 12:55:13 2023 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Jan  6 14:45:19 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d714c01d

dev-python/mpi4py: add 3.1.4

remove unneeded dev-python/nose dep, this package uses unittest
bump PYTHON_COMPAT to 3.11

Signed-off-by: Alex Fan <alex.fan.q <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 dev-python/mpi4py/Manifest            |  1 +
 dev-python/mpi4py/mpi4py-3.1.4.ebuild | 62 +++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/mpi4py/Manifest b/dev-python/mpi4py/Manifest
index 7e2384ad85d3..faba9600f3e6 100644
--- a/dev-python/mpi4py/Manifest
+++ b/dev-python/mpi4py/Manifest
@@ -1 +1,2 @@
 DIST mpi4py-3.1.3.tar.gz 2461368 BLAKE2B 3ff7f6519a1ee96249567b1c65401fd1242c433bbb0a55c9d0a9b07f167ec44c71aefc24ac5fb354ceeb591dbfe97a4306f8455bb00559789367e91b78d80c16 SHA512 7a15224692016253120e8e88be1f7201e6f4548c1fb5ed15f04f416000b0d9e259dd8e80c0e237b1a960143e52b4a840d2a541359833387ac12868af1c059cea
+DIST mpi4py-3.1.4.tar.gz 2493282 BLAKE2B e1a048e6053263f6685c549e2e6f96072b7d95db68595c8848d0ecdb0a6cadf2b102e4c4ce589053ed17a090335afc56f4b3630b60944aeac7e4bc4ad82d4a1b SHA512 f59ad765bc272f8b63f74cfde4e588f640c4fc3d47d05729509da45a2155f830c1d409ec716ff374756748fa8ebfa6e72f9fbe188a6b89ea3fa115740a532b08

diff --git a/dev-python/mpi4py/mpi4py-3.1.4.ebuild b/dev-python/mpi4py/mpi4py-3.1.4.ebuild
new file mode 100644
index 000000000000..85ed88fe6299
--- /dev/null
+++ b/dev-python/mpi4py/mpi4py-3.1.4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit distutils-r1
+
+DESCRIPTION="Message Passing Interface for Python"
+HOMEPAGE="https://github.com/mpi4py/mpi4py https://pypi.org/project/mpi4py/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-python/cython[${PYTHON_USEDEP}]
+	dev-python/numpy[${PYTHON_USEDEP}]
+	virtual/mpi
+"
+DEPEND="${RDEPEND}
+	test? (
+		virtual/mpi[romio]
+	)
+"
+
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+	# not needed on install
+	rm -vr docs/source || die
+	rm test/test_pickle.py || die # disabled by Gentoo-bug #659348
+	distutils-r1_python_prepare_all
+}
+
+src_compile() {
+	export FAKEROOTKEY=1
+	distutils-r1_src_compile
+}
+
+python_test() {
+	echo "Beginning test phase"
+	pushd "${BUILD_DIR}"/../ &> /dev/null || die
+	# spawn is not stable in OpenMPI 4
+	# https://github.com/jsquyres/ompi/pull/4#issuecomment-806897758
+	# oob_tcp_if_include lo is needed to allow test in systemd-nspawn container
+	mpiexec --use-hwthread-cpus --mca btl tcp,self --mca oob_tcp_if_include lo \
+		-n 1 "${PYTHON}" -B ./test/runtests.py -v \
+		--exclude="test_msgspec" --exclude="test_spawn" ||
+		die "Testsuite failed under ${EPYTHON}"
+	popd &> /dev/null || die
+}
+
+python_install_all() {
+	use doc && local HTML_DOCS=( docs/. )
+	use examples && local DOCS=( demo )
+	distutils-r1_python_install_all
+}


             reply	other threads:[~2023-01-06 14:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-06 14:51 Yixun Lan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-03 20:03 [gentoo-commits] repo/gentoo:master commit in: dev-python/mpi4py/ Michał Górny
2024-02-03 19:09 Sam James
2024-02-03 14:03 Arthur Zamarin
2023-12-21  0:07 Ionen Wolkens
2023-02-17  6:21 Michał Górny
2023-02-16 22:49 Sam James
2023-02-16 22:49 Sam James
2023-01-06 14:51 Yixun Lan
2022-02-15 14:58 Jakov Smolić
2022-02-13 15:16 Sam James
2022-01-08 12:41 Yixun Lan
2022-01-08 12:41 Yixun Lan
2022-01-08 12:41 Yixun Lan
2021-10-12 17:22 Arthur Zamarin
2021-08-13  6:58 Michał Górny
2020-03-20 16:17 Michał Górny
2019-09-07 11:58 Andreas Sturmlechner
2019-09-02 10:20 Agostino Sarubbo
2019-09-02 10:15 Agostino Sarubbo
2019-07-22 22:23 Andreas Sturmlechner
2017-12-22 18:17 Christoph Junghans
2017-07-15 21:46 Patrice Clement
2017-07-15 21:46 Patrice Clement
2017-06-26  4:35 Sebastien Fabbro
2017-01-18 16:52 Agostino Sarubbo
2016-11-28 14:28 Christoph Junghans
2015-10-21 13:41 Justin Lecher
2015-10-19 16:29 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1673016319.d714c01d6241f43dae4fb3abc426397d7609c622.dlan@gentoo \
    --to=dlan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox