Date: Friday, October 18, 2019 @ 11:21:57 Author: felixonmars Revision: 365141
archrelease: copy trunk to testing-x86_64 Added: python-numpy/repos/testing-x86_64/ python-numpy/repos/testing-x86_64/PKGBUILD (from rev 365140, python-numpy/trunk/PKGBUILD) ----------+ PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 365140, python-numpy/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-10-18 11:21:57 UTC (rev 365141) @@ -0,0 +1,42 @@ +# Maintainer: Jan de Groot <j...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Douglas Soares de Andrade <d...@aur.archlinux.org> +# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> + +pkgname=python-numpy +pkgver=1.17.3 +pkgrel=1 +pkgdesc="Scientific tools for Python" +arch=('x86_64') +license=('custom') +url="https://www.numpy.org/" +depends=('cblas' 'lapack' 'python') +optdepends=('python-nose: testsuite' + 'openblas: faster linear algebra') +makedepends=('python-setuptools' 'gcc-fortran' 'python-nose' 'cython') +checkdepends=('python-pytest') +options=('staticlibs') +source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz") +sha512sums=('9ef67d993b5d2be0ba9a9247e10b86f9e0b07c185beadcbf89e1ac0c85f0f1d25471f2a4cfb45fc9749c3afc178bd59099214ab3d5fe41d772fc5f4b5cf4d5df') + +build() { + cd numpy-$pkgver + python setup.py build +} + +check() { + # TODO: Fix fortran tests here (it works fine after installation) + + cd numpy-$pkgver + python setup.py install --root="$PWD/tmp_install" --optimize=1 + cd "$PWD/tmp_install" + PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.7/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()' +} + +package() { + cd numpy-$pkgver + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + + install -m755 -d "${pkgdir}/usr/share/licenses/python-numpy" + install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python-numpy/" +}