blob: 4cd13c91153366b3adec0e3364d64e0f323a4aec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Contributor: Martell Malone <martellmalone@gmail.com>
# Contributor: fossdd <fosdd@pwned.life>
# Maintainer: fossdd <fosdd@pwned.life>
pkgname=py3-scipy
pkgver=1.13.0
pkgrel=0
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
cython
"
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="$options !check";; # FIXME: tests hangs
esac
build() {
case "$CARCH" in
ppc64le)
# Segmentation fault (core dumped)
sed -i '/test_propack.py/d' scipy/sparse/linalg/tests/meson.build
rm scipy/sparse/linalg/tests/test_propack.py
;;
esac
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="
9bd6fd3f76742a07e5bb003edf4c0e3a82edf749077502fbce3d16fe595d455846edcf57db12ec0a9d4792803e974355362d919047414badfcaededf1e4343f7 scipy-1.13.0.tar.gz
"
|