[arch-commits] Commit in python-numpy/repos (testing-x86_64 testing-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jan 30 20:45:52 UTC 2021
Date: Saturday, January 30, 2021 @ 20:45:52
Author: felixonmars
Revision: 406947
archrelease: copy trunk to testing-x86_64
Added:
python-numpy/repos/testing-x86_64/
python-numpy/repos/testing-x86_64/PKGBUILD
(from rev 406946, python-numpy/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-numpy/repos/testing-x86_64/PKGBUILD (from rev 406946, python-numpy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2021-01-30 20:45:52 UTC (rev 406947)
@@ -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.20.0
+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=('3ebcc06c70951a555759444066755933d57aaf11888d1736ec5f0d283fea4f120e7313711686c3b2135b589b6a92218460c8c177dd9b23847cead0ea2db69733')
+
+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/"
+}
More information about the arch-commits
mailing list