Date: Tuesday, November 3, 2020 @ 18:38:43 Author: felixonmars Revision: 399223
archrelease: copy trunk to extra-x86_64 Added: python-numpy/repos/extra-x86_64/PKGBUILD (from rev 399222, python-numpy/trunk/PKGBUILD) Deleted: python-numpy/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 90 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 45 insertions(+), 45 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-11-03 18:38:33 UTC (rev 399222) +++ PKGBUILD 2020-11-03 18:38:43 UTC (rev 399223) @@ -1,45 +0,0 @@ -# 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.19.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' 'python-hypothesis') -options=('staticlibs') -source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz") -sha512sums=('01e0489754c33fc4255fe73b2314ed7bbb4577133cdd05e38eee48c618d247497767ad8d6ce2d03302f56466479207a9287b82f3f3e3bf17364e82ef86f4611a') - -prepare() { - # https://github.com/numpy/numpy/issues/17390 - sed -i '/error/a \ ignore:Module already imported so cannot be rewritten' numpy-$pkgver/pytest.ini -} - -build() { - cd numpy-$pkgver - python setup.py build -} - -check() { - 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.8/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/" -} Copied: python-numpy/repos/extra-x86_64/PKGBUILD (from rev 399222, python-numpy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-11-03 18:38:43 UTC (rev 399223) @@ -0,0 +1,45 @@ +# 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.19.4 +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' 'python-hypothesis') +options=('staticlibs') +source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz") +sha512sums=('369790f3a2dc91156c15f3b6502615ef40a2f0973a80ffdadfcd28a6e7971997d6ba5c146299e76ee0ec1776799a03c6fa185e64b38abea9475c452aebe1e07a') + +prepare() { + # https://github.com/numpy/numpy/issues/17390 + sed -i '/error/a \ ignore:Module already imported so cannot be rewritten' numpy-$pkgver/pytest.ini +} + +build() { + cd numpy-$pkgver + python setup.py build +} + +check() { + 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.8/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/" +}