# Maintainer: thasibule # Contributor: ptrr # Contributor: lobisquit # Contributor: chmgtr1 # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Angel 'angvp' Velasquez # Contributor: Ray Rashif # Contributor: Douglas Soares de Andrade # Contributor: Bodor Dávid Gábor # Contributor: Andrzej Giniewicz pkgname="python-scipy-openblas" pkgver=1.5.0 pkgrel=1 pkgdesc="SciPy is open-source software for mathematics, science, and engineering." arch=('x86_64') url="http://www.scipy.org/" license=('BSD') makedepends=('gcc-fortran' 'python-numpy-openblas' 'python-setuptools' 'openblas-lapack' 'pybind11') checkdepends=('python-pytest') optdepends=('python-pillow: for image saving module') provides=("python-scipy=$pkgver") conflicts=('python-scipy') source=("https://github.com/scipy/scipy/releases/download/v${pkgver}/scipy-${pkgver}.tar.gz") sha512sums=('4c981a3125a88593cbc5a17417022a5db8f6ccb4c1c24e78afeb9bb26428b81d2d0fe9965caa418753b1bbbda2fa30533fa1307aac6ab168458d68f7b46049be') build() { export BLAS=/usr/lib/libblas.so export LAPACK=/usr/lib/liblapack.so export Atlas=None export LDFLAGS="$LDFLAGS -shared" cd scipy-${pkgver} python setup.py config_fc --fcompiler=gnu95 build } check() { _pyver=$(python -c 'import sys; v = sys.version_info; print(f"{v.major}.{v.minor}")') # we need to do a temp install so we can import scipy # also, the tests must not be run from the scipy source directory export BLAS=/usr/lib/libblas.so export LAPACK=/usr/lib/liblapack.so export Atlas=None export LDFLAGS="$LDFLAGS -shared" cd ${srcdir}/scipy-${pkgver} python setup.py config_fc --fcompiler=gnu95 install \ --prefix=/usr --root=${srcdir}/test --optimize=1 export PYTHONPATH=${srcdir}/test/usr/lib/python${_pyver}/site-packages cd ${srcdir} python -c "from scipy import test; test('full')" } package() { cd scipy-${pkgver} export Atlas=None export LDFLAGS="$LDFLAGS -shared" python setup.py config_fc --fcompiler=gnu95 install \ --prefix=/usr --root=${pkgdir} --optimize=1 install -Dm644 LICENSE.txt \ "${pkgdir}/usr/share/licenses/python-scipy/LICENSE" }