Date: Tuesday, July 20, 2021 @ 04:51:30
  Author: felixonmars
Revision: 420151

archrelease: copy trunk to testing-x86_64

Added:
  python-numpy/repos/testing-x86_64/
  python-numpy/repos/testing-x86_64/PKGBUILD
    (from rev 420150, python-numpy/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 420150, 
python-numpy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2021-07-20 04:51:30 UTC (rev 420151)
@@ -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.21.1
+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=('bfbe77d231138c99bf40a4a725303be00152442952b656c48a7e2a1005065dfbb201d070d1102c5e136c2a80acd7d655c6efe715f7a8d19531665c5fe370755a')
+
+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.9/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/"
+}

Reply via email to