dev-python/mpi4py: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-05-19 12:06:30 +02:00
parent 84c71fa9c3
commit 289015e124
3 changed files with 0 additions and 104 deletions

View File

@@ -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

View File

@@ -1,33 +0,0 @@
https://github.com/mpi4py/mpi4py/pull/452
From: Paul Zander <negril.nx+gentoo@gmail.com>
From 3adbd69b7219525f32636552394935a0a770896d Mon Sep 17 00:00:00 2001
From: Lisandro Dalcin <dalcinl@gmail.com>
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 = <object>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:

View File

@@ -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
}