Date: Monday, January 23, 2023 @ 09:15:22
Author: dvzrv
Revision: 467224
archrelease: copy trunk to extra-x86_64
Added:
python-numpy/repos/extra-x86_64/PKGBUILD
(from rev 467223, python-numpy/trunk/PKGBUILD)
Deleted:
python-numpy/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++------------------------------
1 file changed, 40 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-23 09:15:00 UTC (rev 467223)
+++ PKGBUILD 2023-01-23 09:15:22 UTC (rev 467224)
@@ -1,38 +0,0 @@
-# Maintainer: Jan de Groot <[email protected]>
-# Maintainer: Felix Yan <[email protected]>
-# Contributor: Douglas Soares de Andrade <[email protected]>
-# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
-
-pkgname=python-numpy
-pkgver=1.23.5
-pkgrel=1
-pkgdesc="Scientific tools for Python"
-arch=('x86_64')
-license=('custom')
-url="https://www.numpy.org/"
-depends=('cblas' 'lapack' 'python')
-optdepends=('openblas: faster linear algebra')
-makedepends=('python-setuptools' 'gcc-fortran' 'cython')
-checkdepends=('python-pytest' 'python-hypothesis')
-options=('staticlibs')
-source=("https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz")
-sha512sums=('8f3ece76dbe79bc887275332d25f851ade2087de3026de5fb7ed793590b3e7d274f590357296e152373b4e9a245d4d563393ba7198bca6d44631b941acb89c2c')
-
-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 -D -m644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/python-numpy/
-}
Copied: python-numpy/repos/extra-x86_64/PKGBUILD (from rev 467223,
python-numpy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-23 09:15:22 UTC (rev 467224)
@@ -0,0 +1,40 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+# Contributor: Douglas Soares de Andrade <[email protected]>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+
+pkgname=python-numpy
+pkgver=1.23.5
+pkgrel=2
+pkgdesc="Scientific tools for Python"
+arch=('x86_64')
+license=('custom')
+url="https://www.numpy.org/"
+depends=('cblas' 'lapack' 'python')
+optdepends=('openblas: faster linear algebra')
+makedepends=('python-setuptools' 'gcc-fortran' 'cython')
+checkdepends=('python-pytest' 'python-hypothesis')
+options=('staticlibs')
+source=("https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz")
+sha512sums=('8f3ece76dbe79bc887275332d25f851ade2087de3026de5fb7ed793590b3e7d274f590357296e152373b4e9a245d4d563393ba7198bca6d44631b941acb89c2c')
+
+build() {
+ cd numpy-$pkgver
+ python setup.py build
+}
+
+check() {
+ local site_packages=$(python -c "import site;
print(site.getsitepackages()[0])")
+
+ cd numpy-$pkgver
+ python setup.py install --root="$PWD/tmp_install" --optimize=1
+ cd "$PWD/tmp_install"
+ PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/$site_packages:$PYTHONPATH"
python -c 'import numpy; numpy.test()'
+}
+
+package() {
+ cd numpy-$pkgver
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ install -D -m644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/python-numpy/
+}