1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 12:15:22 +03:00
aports/community/py3-scipy/APKBUILD
Sertonix 09483afdee community/py3-scipy: enable all tests on ppc64le and disable on s390x
they all seem to pass on ppc64le now but s390x is failing at the moment
2025-02-05 21:12:41 +00:00

68 lines
1.5 KiB
Text

# Contributor: Martell Malone <martellmalone@gmail.com>
# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-scipy
pkgver=1.13.1
pkgrel=1
pkgdesc="Python library for scientific computing"
url="https://www.scipy.org/"
arch="all"
license="BSD-3-Clause"
depends="py3-pooch py3-numpy"
makedepends="
cython
gfortran
openblas-dev
py3-gpep517
py3-meson-python
py3-numpy-dev
py3-numpy-f2py
py3-pybind11-dev
py3-setuptools
py3-wheel
python3-dev
pythran
"
checkdepends="py3-hypothesis py3-pytest"
subpackages="$pkgname-tests $pkgname-pyc"
source="https://pypi.io/packages/source/s/scipy/scipy-$pkgver.tar.gz"
builddir="$srcdir"/scipy-$pkgver
replaces=py-scipy # Backwards compatibility
provides=py-scipy=$pkgver-r$pkgrel # Backwards compatibility
case "$CARCH" in
riscv64) options="!check";; # stuck
s390x) options="!check";; # FIXME Terminated
esac
build() {
export CFLAGS="$CFLAGS -O3"
export CXXFLAGS="$CXXFLAGS -O3"
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
cd .testenv
bin/python -c "from scipy import test; test('full')"
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
tests() {
find "$pkgdir" -name tests -type d | while read -r p; do
amove "${p#"$pkgdir"}"
done
}
sha512sums="
28aafdbcae7229a3d11f192683b703cb485d45e4d90413d6564df3d9005bc8fd4df8bd92caffe657666828cd7253e7e0363c0948c74a1b8f3f3b7d4f4cfd9b36 scipy-1.13.1.tar.gz
"