python3-numpy: update to 1.20.0.

This commit is contained in:
Andrew J. Hesford 2021-02-01 12:41:19 -05:00
parent 5b322c44c4
commit 10af2306b1

View file

@ -1,7 +1,7 @@
# Template file for 'python3-numpy' # Template file for 'python3-numpy'
pkgname=python3-numpy pkgname=python3-numpy
version=1.19.5 version=1.20.0
revision=2 revision=1
wrksrc="numpy-${version}" wrksrc="numpy-${version}"
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython gcc-fortran" hostmakedepends="python3-setuptools python3-Cython gcc-fortran"
@ -13,7 +13,7 @@ maintainer="bra1nwave <bra1nwave@protonmail.com>"
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=43fe3bcdf27a2eb27196a1d140385aeece71c8b1a6eda18d2c6365239e50c60f checksum=f30566b4a0d168a6869bef55b5843a2c8ed743f136fc80b305d6b8604828aea0
alternatives="numpy:f2py:/usr/bin/f2py3" alternatives="numpy:f2py:/usr/bin/f2py3"
build_options="openblas" build_options="openblas"
@ -37,6 +37,13 @@ post_patch() {
if [ "$XBPS_TARGET_LIBC" = musl ] ; then if [ "$XBPS_TARGET_LIBC" = musl ] ; then
vsed -i 's|"backtrace",||' numpy/core/setup_common.py vsed -i 's|"backtrace",||' numpy/core/setup_common.py
fi fi
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
# When host/target word sizes disagree, this $werror header
# triggers -Werror failures about redefining SIZEOF_OFF_T from
# the wrong host size to the correct target size
vsed -e 's/\$werror//' -i numpy/core/src/_simd/_simd.dispatch.c.src
fi
} }
pre_build() { pre_build() {