Date: Monday, January 23, 2023 @ 09:15:00 Author: dvzrv Revision: 467223
upgpkg: python-numpy 1.23.5-2: Rebuild to remove hardcoded python interpreter version. Modified: python-numpy/trunk/PKGBUILD ----------+ PKGBUILD | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-01-23 08:53:28 UTC (rev 467222) +++ PKGBUILD 2023-01-23 09:15:00 UTC (rev 467223) @@ -1,11 +1,11 @@ -# Maintainer: Jan de Groot <[email protected]> # 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=1 +pkgrel=2 pkgdesc="Scientific tools for Python" arch=('x86_64') license=('custom') @@ -24,10 +24,12 @@ } 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/usr/lib/python3.10/site-packages:$PYTHONPATH" python -c 'import numpy; numpy.test()' + PATH="$PWD/usr/bin:$PATH" PYTHONPATH="$PWD/$site_packages:$PYTHONPATH" python -c 'import numpy; numpy.test()' } package() {
