[arch-commits] Commit in python-numpy/repos/staging-x86_64 (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Dec 2 12:09:04 UTC 2021
Date: Thursday, December 2, 2021 @ 12:09:03
Author: felixonmars
Revision: 430278
archrelease: copy trunk to staging-x86_64
Added:
python-numpy/repos/staging-x86_64/PKGBUILD
(from rev 430277, python-numpy/trunk/PKGBUILD)
Deleted:
python-numpy/repos/staging-x86_64/PKGBUILD
----------+
PKGBUILD | 90 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 45 insertions(+), 45 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-02 12:08:54 UTC (rev 430277)
+++ PKGBUILD 2021-12-02 12:09:03 UTC (rev 430278)
@@ -1,45 +0,0 @@
-# Maintainer: Jan de Groot <jgc at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-
-pkgname=python-numpy
-pkgver=1.21.3
-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')
-checkdepends=('python-pytest' 'python-hypothesis')
-options=('staticlibs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpy/archive/v$pkgver.tar.gz")
-sha512sums=('c27fba5bac9c3f2167de279921b0738198e925873a6cef486630554a7724ca58b95468817080ec1b01c1046e859e34adb4d4c8c3dde614216bc3da2290159c8a')
-
-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.10/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/staging-x86_64/PKGBUILD (from rev 430277, python-numpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-02 12:09:03 UTC (rev 430278)
@@ -0,0 +1,45 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Douglas Soares de Andrade <dsa at aur.archlinux.org>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+
+pkgname=python-numpy
+pkgver=1.21.3
+pkgrel=3
+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=('c27fba5bac9c3f2167de279921b0738198e925873a6cef486630554a7724ca58b95468817080ec1b01c1046e859e34adb4d4c8c3dde614216bc3da2290159c8a')
+
+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.10/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/"
+}
More information about the arch-commits
mailing list