From 2fd57282f0262ca084e05b0f2c63fbada395d02b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 16 Jan 2022 20:27:28 +0000 Subject: gentoo resync : 16.01.2021 --- dev-python/mpi4py/Manifest | 4 ++- dev-python/mpi4py/metadata.xml | 12 +++++-- dev-python/mpi4py/mpi4py-3.1.3.ebuild | 63 +++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 4 deletions(-) create mode 100644 dev-python/mpi4py/mpi4py-3.1.3.ebuild (limited to 'dev-python/mpi4py') diff --git a/dev-python/mpi4py/Manifest b/dev-python/mpi4py/Manifest index e4ddd3d773a9..eacdfe41b652 100644 --- a/dev-python/mpi4py/Manifest +++ b/dev-python/mpi4py/Manifest @@ -1,5 +1,7 @@ AUX mpi4py-3.0.3-py38futures.patch 4779 BLAKE2B 0e034da4e2237f15f1f6c559f520dc7ffad5ccb344b0b87f444461132919f26b42b861fd86ed4b785b2de176b726c6ac14d5f69aeb4cdac0b6e182cceacb265b SHA512 1193779d8fc0a26845d9435a55b6fea808785f6d2299c3b0fe6ba16c7c8b846d35041ebabe7f51f67aacbd3d1e4a1d334a36ac2b457941b2467cc0ca8a4b30f3 AUX mpi4py-3.0.3-py38setup.patch 783 BLAKE2B f92a508e2f8c0749135b79c92656662729434b12c4b1d90587bafc02870c934d2aea135b963660835818c0596d0c0635e02af78e2a2b855259d96d252bf1b19d SHA512 0b35ff4d6ebdb7fe0bb117114d68f9823094429bfdab37d8c8ae404d1357bedbe0c75e46ac4ffbbfdc5197adb24f934ecedbce8eb2b00757c00421e1dad912d9 DIST mpi4py-3.0.3.tar.gz 1429389 BLAKE2B 1e8c44b857b417237832682d0b3b5c90d1f1046fd8137d2a63972419ff8ec0e1fd2ebba521e2d2d6ba9f773b7c607370b55d8d75c9afeaca172ac06dd838943c SHA512 041768f753c8188b2560fe92711861780f0d77eda3281433520c98bb1e9b4da6a89c364f2d1c4623868ffbbcfde34ef556198b1bef6fc1c4a9c19cd5e71b546c +DIST mpi4py-3.1.3.tar.gz 2461368 BLAKE2B 3ff7f6519a1ee96249567b1c65401fd1242c433bbb0a55c9d0a9b07f167ec44c71aefc24ac5fb354ceeb591dbfe97a4306f8455bb00559789367e91b78d80c16 SHA512 7a15224692016253120e8e88be1f7201e6f4548c1fb5ed15f04f416000b0d9e259dd8e80c0e237b1a960143e52b4a840d2a541359833387ac12868af1c059cea EBUILD mpi4py-3.0.3.ebuild 1571 BLAKE2B 5e3e3424a50fc58c6891776ac221341ba22172a44e58a3e57c5a2ed0eb7eefbbc5c93984aa7a9521703dc5db55b74370cf43f9c4d50ca5246125a2ca9c62570a SHA512 1b4117487d63c2845b88ae301de9ae0ff2bbc5a9bbc7eb636216278cccb8040da13b8509f703d5cbe769c24b0cd720710538da79f29544f8f103fd81c9571e2e -MISC metadata.xml 1041 BLAKE2B 6f06ebdcd00df3413d6e2c7f1185cdaa18f3d9074e1b1492a5d10bbce2b71eee2a93fb5c65cd6fefd645c950195c63edf830a5182be5d07f8cb297b9e0ee38ce SHA512 377aea52bea6b6d98cd4bf6d10cb837daad2945a882ce6b2bcac9a84765a2cdf1e08f062e869fe0f0bb1c0b8b7d1fc3b9c039b48db99b69cad161d5224386d65 +EBUILD mpi4py-3.1.3.ebuild 1598 BLAKE2B 79d4f3ccff1fbc237b2e01395b1d4e63915917033d537c7a856538157fe4c05f1c718857df2ff39600e9e72de15dc5b8a6c3ef2fbbd2fceef8d8dec304b78125 SHA512 712a6b07d44aa59b15802492322bb34a9bdcfdeb124d935e0ce00e569589ce3fb30a6e196406805a635de8cb671df66cee8b73f62208bd82a03ded8ed3117d9c +MISC metadata.xml 1229 BLAKE2B 1634ae0e35f9b9362e9b4eaf21443a1fe6c7fc54ec6e4cc5914695533a3563586371cde7b48e34dfcdad6dc5a89f49bec705e434e68353e93e122c272fa163f3 SHA512 d0892adce1d1b5253185a9b539d2dca2a0d4cc96ce7e6e5cfb0507a90fdc88d92d7c74fc6fc93e951872bcfad73d4071b403b7e4269081c55b18789f09b35226 diff --git a/dev-python/mpi4py/metadata.xml b/dev-python/mpi4py/metadata.xml index c9ea17d57be9..0dd4ceca2177 100644 --- a/dev-python/mpi4py/metadata.xml +++ b/dev-python/mpi4py/metadata.xml @@ -1,7 +1,14 @@ - + + alex.fan.q@gmail.com + Alex Fan + + + proxy-maint@gentoo.org + Proxy Maintainers + MPI for Python (mpi4py) provides bindings of the Message Passing Interface (MPI) standard for the Python programming language, allowing any Python program to exploit multiple processors. @@ -14,8 +21,7 @@ arrays, builtin bytes/string/array objects). - mpi4py - mpi4py + mpi4py/mpi4py mpi4py diff --git a/dev-python/mpi4py/mpi4py-3.1.3.ebuild b/dev-python/mpi4py/mpi4py-3.1.3.ebuild new file mode 100644 index 000000000000..82dad43fd50f --- /dev/null +++ b/dev-python/mpi4py/mpi4py-3.1.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +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? ( + dev-python/nose[${PYTHON_USEDEP}] + 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 +} -- cgit v1.2.3