From 10af2306b15c1ab4229dcbd852426c8bfab25e1b Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 1 Feb 2021 12:41:19 -0500 Subject: [PATCH] python3-numpy: update to 1.20.0. --- srcpkgs/python3-numpy/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/python3-numpy/template b/srcpkgs/python3-numpy/template index ae5a0d0953..752fb593e4 100644 --- a/srcpkgs/python3-numpy/template +++ b/srcpkgs/python3-numpy/template @@ -1,7 +1,7 @@ # Template file for 'python3-numpy' pkgname=python3-numpy -version=1.19.5 -revision=2 +version=1.20.0 +revision=1 wrksrc="numpy-${version}" build_style=python3-module hostmakedepends="python3-setuptools python3-Cython gcc-fortran" @@ -13,7 +13,7 @@ maintainer="bra1nwave " license="BSD-3-Clause" homepage="https://www.numpy.org/" distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz" -checksum=43fe3bcdf27a2eb27196a1d140385aeece71c8b1a6eda18d2c6365239e50c60f +checksum=f30566b4a0d168a6869bef55b5843a2c8ed743f136fc80b305d6b8604828aea0 alternatives="numpy:f2py:/usr/bin/f2py3" build_options="openblas" @@ -37,6 +37,13 @@ post_patch() { if [ "$XBPS_TARGET_LIBC" = musl ] ; then vsed -i 's|"backtrace",||' numpy/core/setup_common.py 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() {