python3-numpy: update to 1.22.3.

Fixes #36062.
This commit is contained in:
Andrew J. Hesford 2022-03-09 14:22:37 -05:00
parent c25dd27be2
commit 19a3cb1324

View file

@ -1,6 +1,6 @@
# Template file for 'python3-numpy' # Template file for 'python3-numpy'
pkgname=python3-numpy pkgname=python3-numpy
version=1.22.2 version=1.22.3
revision=1 revision=1
wrksrc="numpy-${version}" wrksrc="numpy-${version}"
build_style=python3-module build_style=python3-module
@ -13,7 +13,7 @@ maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="BSD-3-Clause" license="BSD-3-Clause"
homepage="https://www.numpy.org/" homepage="https://www.numpy.org/"
distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz" distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
checksum=3428c3bd846beca1cd4417ebee6eab8bb62e987fc3101e5858d74c92b312d096 checksum=c8f3ec591e3f17b939220f2b9eabb4c5e2db330f8af62c0a3aeee8a4d1a6c0db
alternatives="numpy:f2py:/usr/bin/f2py3" alternatives="numpy:f2py:/usr/bin/f2py3"
# Tests do not function propery in a build directory # Tests do not function propery in a build directory
make_check="no" make_check="no"
@ -69,13 +69,8 @@ pre_build() {
} }
post_install() { post_install() {
# create compat symlinks for .h files rm ${DESTDIR}/usr/bin/f2py
vmkdir ${py3_inc}
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py3_inc}
rm -f ${DESTDIR}/usr/bin/f2py rm ${DESTDIR}/${py3_sitelib}/numpy/LICENSE.txt
rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt
vlicense LICENSE.txt LICENSE vlicense LICENSE.txt LICENSE
} }