Date: Monday, April 22, 2019 @ 08:23:12 Author: felixonmars Revision: 351868
archrelease: copy trunk to extra-x86_64 Added: python-numpy/repos/extra-x86_64/PKGBUILD (from rev 351867, python-numpy/trunk/PKGBUILD) Deleted: python-numpy/repos/extra-x86_64/PKGBUILD ----------+ PKGBUILD | 154 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 77 insertions(+), 77 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-04-22 08:22:55 UTC (rev 351867) +++ PKGBUILD 2019-04-22 08:23:12 UTC (rev 351868) @@ -1,77 +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> - -pkgbase=python-numpy -pkgname=('python-numpy' 'python2-numpy') -pkgver=1.16.2 -pkgrel=1 -pkgdesc="Scientific tools for Python" -arch=('x86_64') -license=('custom') -url="http://www.numpy.org/" -makedepends=('cblas' 'lapack' 'python' 'python2' 'python-setuptools' 'python2-setuptools' - 'gcc-fortran' 'python-nose' 'python2-nose' 'cython' 'cython2') -checkdepends=('python-pytest' 'python2-pytest') -options=('staticlibs') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz") -sha512sums=('81f0f1826e64933948f7c5d5bd94ae3ffaad7c902762114b51110e7959bd08ec2c885187f42f961c151380b8eac810c797442f72afc2965ad939981eed458b3c') - -prepare() { - cp -a numpy-$pkgver{,-py2} - cd numpy-$pkgver-py2 - - sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ - -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ - -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ - -i $(find . -name '*.py') -} - -build() { - cd "$srcdir"/numpy-$pkgver - python setup.py build - - cd "$srcdir"/numpy-$pkgver-py2 - python2 setup.py build -} - -check() { - # TODO: Fix fortran tests here (it works fine after installation) - - cd "$srcdir"/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()' - - cd "$srcdir"/numpy-$pkgver-py2 - python2 setup.py install --root="$PWD/tmp_install" --optimize=1 - cd "$PWD/tmp_install" - PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 -c 'import numpy; numpy.test()' -} - -package_python-numpy() { - depends=('cblas' 'lapack' 'python') - optdepends=('python-nose: testsuite' - 'openblas: faster linear algebra') - - 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/" -} - -package_python2-numpy() { - depends=('cblas' 'lapack' 'python2') - optdepends=('python2-nose: testsuite' - 'openblas: faster linear algebra') - - cd numpy-$pkgver-py2 - python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - - install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy" - install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/" - - mv "$pkgdir"/usr/bin/f2py{,2} -} Copied: python-numpy/repos/extra-x86_64/PKGBUILD (from rev 351867, python-numpy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-04-22 08:23:12 UTC (rev 351868) @@ -0,0 +1,77 @@ +# 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> + +pkgbase=python-numpy +pkgname=('python-numpy' 'python2-numpy') +pkgver=1.16.3 +pkgrel=1 +pkgdesc="Scientific tools for Python" +arch=('x86_64') +license=('custom') +url="http://www.numpy.org/" +makedepends=('cblas' 'lapack' 'python' 'python2' 'python-setuptools' 'python2-setuptools' + 'gcc-fortran' 'python-nose' 'python2-nose' 'cython' 'cython2') +checkdepends=('python-pytest' 'python2-pytest') +options=('staticlibs') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz") +sha512sums=('f9caa1773ec38f6e737d7732083515dc32709c8127d137e51cf35138391a66b012b84592ef473c60846fd3178ed392aa81c4e8d27adb24e5746deabdd8352019') + +prepare() { + cp -a numpy-$pkgver{,-py2} + cd numpy-$pkgver-py2 + + sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + -i $(find . -name '*.py') +} + +build() { + cd "$srcdir"/numpy-$pkgver + python setup.py build + + cd "$srcdir"/numpy-$pkgver-py2 + python2 setup.py build +} + +check() { + # TODO: Fix fortran tests here (it works fine after installation) + + cd "$srcdir"/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()' + + cd "$srcdir"/numpy-$pkgver-py2 + python2 setup.py install --root="$PWD/tmp_install" --optimize=1 + cd "$PWD/tmp_install" + PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python2.7/site-packages:$PYTHONPATH" python2 -c 'import numpy; numpy.test()' +} + +package_python-numpy() { + depends=('cblas' 'lapack' 'python') + optdepends=('python-nose: testsuite' + 'openblas: faster linear algebra') + + 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/" +} + +package_python2-numpy() { + depends=('cblas' 'lapack' 'python2') + optdepends=('python2-nose: testsuite' + 'openblas: faster linear algebra') + + cd numpy-$pkgver-py2 + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + + install -m755 -d "${pkgdir}/usr/share/licenses/python2-numpy" + install -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/python2-numpy/" + + mv "$pkgdir"/usr/bin/f2py{,2} +}