From 3acacf32c0597435f6b14b9721411c2463bab802 Mon Sep 17 00:00:00 2001 From: kth5 Date: Mon, 30 Sep 2024 20:03:27 +0200 Subject: [PATCH] * update python-numpy to 2.1.1-1 --- python/python-numpy/.SRCINFO | 27 +++++++++++++++++++++++++++ python/python-numpy/PKGBUILD | 19 +++++++------------ 2 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 python/python-numpy/.SRCINFO diff --git a/python/python-numpy/.SRCINFO b/python/python-numpy/.SRCINFO new file mode 100644 index 0000000000..a3863a4428 --- /dev/null +++ b/python/python-numpy/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = python-numpy + pkgdesc = Scientific tools for Python + pkgver = 2.1.1 + pkgrel = 1 + url = https://www.numpy.org/ + arch = x86_64 + arch = powerpc64le + arch = powerpc64 + arch = powerpc + arch = riscv64 + license = custom + checkdepends = python-pytest + checkdepends = python-hypothesis + makedepends = python-build + makedepends = python-installer + makedepends = meson-python + makedepends = cmake + makedepends = gcc-fortran + makedepends = cython + depends = cblas + depends = lapack + depends = python + optdepends = blas-openblas: faster linear algebra + source = https://github.com/numpy/numpy/releases/download/v2.1.1/numpy-2.1.1.tar.gz + sha512sums = 94843f88a32cc1df3e572ac13f294e49201a1f50fbd28707a500839cdff61958823c5b8748a7a54cd866a1acc9bd11efde53042141a81cca44393ee7cee78cdc + +pkgname = python-numpy diff --git a/python/python-numpy/PKGBUILD b/python/python-numpy/PKGBUILD index 2cad3bc91c..8c6950af86 100755 --- a/python/python-numpy/PKGBUILD +++ b/python/python-numpy/PKGBUILD @@ -5,7 +5,7 @@ # Contributor: Angel 'angvp' Velasquez pkgname=python-numpy -pkgver=2.0.1 +pkgver=2.1.1 pkgrel=1 pkgdesc="Scientific tools for Python" arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) @@ -16,19 +16,10 @@ optdepends=('blas-openblas: faster linear algebra') makedepends=('python-build' 'python-installer' 'meson-python' 'cmake' 'gcc-fortran' 'cython') checkdepends=('python-pytest' 'python-hypothesis') source=("https://github.com/numpy/numpy/releases/download/v$pkgver/numpy-$pkgver.tar.gz") -sha512sums=('4f638c17b44317b0000000b729726a5a4e9519af11d254b0e2daf32c6ff0cfdd56723a9cbee67c9145088f429f1f0cce79240f968211c2fb5ac08378e86dccfe') +sha512sums=('94843f88a32cc1df3e572ac13f294e49201a1f50fbd28707a500839cdff61958823c5b8748a7a54cd866a1acc9bd11efde53042141a81cca44393ee7cee78cdc') build() { cd numpy-$pkgver - # -mcpu etc interferes with numpy's own CPU detection and it'll provide - # runtime selection of featuresets - case "${CARCH}" in - powerpc64*) - export CFLAGS="-O2 -pipe" - export CXXFLAGS="-O2 -pipe" - ;; - esac - CFLAGS+=" -ffat-lto-objects" \ CXXFLAGS+=" -ffat-lto-objects" \ python -m build --wheel --no-isolation \ @@ -49,5 +40,9 @@ package() { cd numpy-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl - install -D -m644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/python-numpy/ + # Symlink license file + local site_packages=$(python -c "import site; print(site.getsitepackages()[0])") + install -d "$pkgdir"/usr/share/licenses/$pkgname + ln -s "$site_packages"/numpy-$pkgver.dist-info/LICENSE.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt }