* update python-mpi4py to 3.1.5-2

This commit is contained in:
Alexander Baldeck 2024-02-23 10:11:19 +01:00
parent c5802e9824
commit f57e20ada3

View File

@ -8,7 +8,7 @@
_pkg=mpi4py
pkgname=python-${_pkg}
pkgver=3.1.5
pkgrel=1
pkgrel=2
pkgdesc="Python bindings for the Message Passing Interface (MPI) standard"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/mpi4py/mpi4py"
@ -33,7 +33,11 @@ check() {
cd ${_pkg}-${pkgver}
local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-cpython-${python_version/./} python setup.py test
local pythonpath="${PWD}"/build/lib.linux-$CARCH-cpython-${python_version/./}
# run tests via mpiexec according to upstream:
# https://github.com/mpi4py/mpi4py/blob/3.1.5/.github/workflows/ci.yml#L114-L117
PYTHONPATH="${pythonpath}" mpiexec -n 1 python test/runtests.py -v
PYTHONPATH="${pythonpath}" mpiexec -n 2 python test/runtests.py -v -e spawn
}
package() {