[arch-commits] Commit in python-numpy/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 3 18:59:17 UTC 2022


    Date: Monday, January 3, 2022 @ 18:59:16
  Author: felixonmars
Revision: 433336

upgpkg: python-numpy 1.21.5-2: remove nose as numpy stopped using it since 1.15.0

Modified:
  python-numpy/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-03 14:48:09 UTC (rev 433335)
+++ PKGBUILD	2022-01-03 18:59:16 UTC (rev 433336)
@@ -5,25 +5,19 @@
 
 pkgname=python-numpy
 pkgver=1.21.5
-pkgrel=1
+pkgrel=2
 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')
+optdepends=('openblas: faster linear algebra')
+makedepends=('python-setuptools' 'gcc-fortran' 'cython')
 checkdepends=('python-pytest' 'python-hypothesis')
 options=('staticlibs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz")
+source=("https://github.com/numpy/numpy/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
 sha512sums=('dd9007bcf9bc93ea62ec0bacdf31b6f33159701463c2a4c8d4ba009c1b404a76e2d6ccd9c424b15820915f6265da95062c122035c66e18656eb990c3ac7df198')
 
-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
@@ -38,8 +32,7 @@
 
 package() {
   cd numpy-$pkgver
-  python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
+  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/"
+  install -D -m644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/python-numpy/
 }



More information about the arch-commits mailing list