diff options
author | lmwang | 2020-12-04 22:08:27 -0800 |
---|---|---|
committer | lmwang | 2020-12-04 22:08:27 -0800 |
commit | 09b044d294953ad0758ffc77d46bd7ce43d2db9d (patch) | |
tree | 7a7439ee480cf1b754535868102e69b3d5998603 | |
parent | aa8010f296a795060047b6a473a5953dd7ffdf78 (diff) | |
download | aur-09b044d294953ad0758ffc77d46bd7ce43d2db9d.tar.gz |
1.19.4
-rw-r--r-- | .SRCINFO | 10 | ||||
-rwxr-xr-x | PKGBUILD | 14 |
2 files changed, 13 insertions, 11 deletions
@@ -1,6 +1,6 @@ pkgbase = python-numpy-openblas pkgdesc = Scientific tools for Python - built with openblas - pkgver = 1.19.1 + pkgver = 1.19.4 pkgrel = 1 url = http://numpy.scipy.org/ arch = i686 @@ -18,13 +18,13 @@ pkgbase = python-numpy-openblas depends = cython depends = openblas-lapack optdepends = python-nose: testsuite - provides = python3-numpy=1.19.1 - provides = python-numpy=1.19.1 + provides = python3-numpy=1.19.4 + provides = python-numpy=1.19.4 conflicts = python3-numpy conflicts = python-numpy options = staticlibs - source = python-numpy-1.19.1.tar.gz::https://github.com/numpy/numpy/releases/download/v1.19.1/numpy-1.19.1.tar.gz - sha256sums = 1396e6c3d20cbfc119195303b0272e749610b7042cc498be4134f013e9a3215c + source = python-numpy-1.19.4.tar.gz::https://github.com/numpy/numpy/releases/download/v1.19.4/numpy-1.19.4.tar.gz + sha256sums = fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413 pkgname = python-numpy-openblas @@ -5,7 +5,7 @@ # Contributor: Angel "angvp" Velasquez <angvp[at]archlinux.com.ve> pkgname="python-numpy-openblas" -pkgver=1.19.1 +pkgver=1.19.4 pkgrel=1 pkgdesc="Scientific tools for Python - built with openblas" arch=("i686" "x86_64") @@ -19,25 +19,27 @@ makedepends=('cblas' 'lapack' 'python' 'python-setuptools' 'gcc-fortran' 'python checkdepends=('python-pytest') options=('staticlibs') source=("python-numpy-$pkgver.tar.gz::https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz") -sha256sums=('1396e6c3d20cbfc119195303b0272e749610b7042cc498be4134f013e9a3215c') +sha256sums=('fe836a685d6838dbb3f603caef01183ea98e88febf4ce956a2ea484a75378413') + +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() { export Atlas=None export LDFLAGS="$LDFLAGS -shared" - echo "Building Python3" cd numpy-$pkgver python setup.py config_fc --fcompiler=gnu95 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.8/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()' + PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/usr/lib/python3.9/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()' } package() { |