From 289015e1244411445dfea4b48900cde14098c19c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 19 May 2026 12:06:30 +0200 Subject: [PATCH] dev-python/mpi4py: Remove old MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/mpi4py/Manifest | 1 - ...pi4py-3.1.5-test_memory.testReadOnly.patch | 33 --------- dev-python/mpi4py/mpi4py-3.1.5.ebuild | 70 ------------------- 3 files changed, 104 deletions(-) delete mode 100644 dev-python/mpi4py/files/mpi4py-3.1.5-test_memory.testReadOnly.patch delete mode 100644 dev-python/mpi4py/mpi4py-3.1.5.ebuild diff --git a/dev-python/mpi4py/Manifest b/dev-python/mpi4py/Manifest index e6e8c8e825329..de66a3a0886f6 100644 --- a/dev-python/mpi4py/Manifest +++ b/dev-python/mpi4py/Manifest @@ -1,2 +1 @@ -DIST mpi4py-3.1.5.tar.gz 2469777 BLAKE2B 0638e3def52f731b64e2999f83f2d6ccc94dc2f8b37d964c10e49ca12470d3d3ef77ff2737294d85614b2d59d1eec49880e74f2ba3d73fd090152b63c8cc701e SHA512 04da1d6daf66cc86fa3ec574eea6e01749f895035e3394afbc68d6245394c5b03557ede0bda3642b06d9c6ff2c1e6e878a6c8c30d3fa3491392e2e13b82cdec8 DIST mpi4py-4.0.1.tar.gz 466179 BLAKE2B 4e678f08c257a32922914448c82d13c0a1e29aa1e39a1f669d8c2d766a1ecbd8bdf2bf3b12dae8eca9bf3846c096d0ecb0bbdb9147b3048acfe48e067d72161f SHA512 7721ef4f0859e90ca91d6911c3e5a897249f57c8b575065cdb1d537602ce0b30909f144b292c7d74013361cdf9e464cb0c16e408f37fd6c8c1554cbbe9785c05 diff --git a/dev-python/mpi4py/files/mpi4py-3.1.5-test_memory.testReadOnly.patch b/dev-python/mpi4py/files/mpi4py-3.1.5-test_memory.testReadOnly.patch deleted file mode 100644 index 986e565588a09..0000000000000 --- a/dev-python/mpi4py/files/mpi4py-3.1.5-test_memory.testReadOnly.patch +++ /dev/null @@ -1,33 +0,0 @@ -https://github.com/mpi4py/mpi4py/pull/452 -From: Paul Zander - -From 3adbd69b7219525f32636552394935a0a770896d Mon Sep 17 00:00:00 2001 -From: Lisandro Dalcin -Date: Mon, 15 Jan 2024 10:45:38 +0300 -Subject: [PATCH] fix: Fix implementation of MPI.buffer.toreadonly() - ---- - src/mpi4py/MPI/asbuffer.pxi | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - -diff --git a/src/mpi4py/MPI/asbuffer.pxi b/src/mpi4py/MPI/asbuffer.pxi -index 15e06a1..6536c1f 100644 ---- a/src/mpi4py/MPI/asbuffer.pxi -+++ b/src/mpi4py/MPI/asbuffer.pxi -@@ -257,14 +257,12 @@ cdef class memory: - - def toreadonly(self) -> memory: - """Return a readonly version of the memory object""" -- cdef void *buf = self.view.buf -- cdef Py_ssize_t size = self.view.len - cdef object obj = self - if self.view.obj != NULL: - obj = self.view.obj - cdef memory mem = memory.__new__(memory) -- PyBuffer_FillInfo(&mem.view, obj, -- buf, size, 1, PyBUF_SIMPLE) -+ PyMPI_GetBuffer(obj, &mem.view, PyBUF_SIMPLE) -+ mem.view.readonly = 1 - return mem - - def release(self) -> None: diff --git a/dev-python/mpi4py/mpi4py-3.1.5.ebuild b/dev-python/mpi4py/mpi4py-3.1.5.ebuild deleted file mode 100644 index 6a64732ff4c13..0000000000000 --- a/dev-python/mpi4py/mpi4py-3.1.5.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{10..12} ) -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 pypi - -DESCRIPTION="Message Passing Interface for Python" -HOMEPAGE="https://github.com/mpi4py/mpi4py https://pypi.org/project/mpi4py/" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" -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] - ) -" - -PATCHES=( - "${FILESDIR}/${PN}-3.1.5-test_memory.testReadOnly.patch" -) - -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 -} - -python_test() { - echo "Beginning test phase" - local -x PYTHONPATH="${BUILD_DIR}/install$(python_get_sitedir)" - - # python want's all arguments as separate strings - local mpi_opts=( - "-n" "1" - ) - # 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 - has_version sys-cluster/openmpi && mpi_opts+=( - "--use-hwthread-cpus" - "--mca" "btl" "tcp,self" - "--mca" "oob_tcp_if_include" "lo" - ) - mpiexec \ - "${mpi_opts[@]}" \ - "${PYTHON}" -B -v ./test/runtests.py -v \ - --exclude="test_msgspec" --exclude="test_spawn" || - die "Testsuite failed under ${EPYTHON}" -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/. ) - use examples && local DOCS=( demo ) - distutils-r1_python_install_all -}