mirror of
https://github.com/void-linux/void-packages.git
synced 2025-09-23 04:13:06 +02:00
31 lines
986 B
Bash
31 lines
986 B
Bash
# Template file for 'python3-mpi4py'
|
|
pkgname=python3-mpi4py
|
|
version=4.1.0
|
|
revision=1
|
|
# OpenMPI >= 5 is 64-bit only
|
|
archs="x86_64* aarch64* ppc64* riscv64*"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools python3-Cython gcc-fortran openmpi"
|
|
makedepends="python3-devel openmpi-devel"
|
|
depends="openmpi python3"
|
|
short_desc="Python bindings for the Message Passing Interface (MPI) standard"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/mpi4py/mpi4py"
|
|
changelog="https://raw.githubusercontent.com/mpi4py/mpi4py/master/CHANGES.rst"
|
|
distfiles="$PYPI_SITE/m/mpi4py/mpi4py-${version}.tar.gz"
|
|
checksum=817492796bce771ccd809a6051cf68d48689815493b567a696ce7679260449cd
|
|
# Tests require a sensible MPI environment
|
|
make_check=no
|
|
|
|
pre_build() {
|
|
if [ "${CROSS_BUILD}" ]; then
|
|
# Need to tell OpenMPI wrappers to use cross compilers
|
|
export OMPI_CC="${CC}"
|
|
export OMPI_FC="${FC}"
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.rst
|
|
}
|