From f9dc5dce64deca7b84343abb758895b2db46c43f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 24 Jan 2019 13:34:01 +0100 Subject: community/python-scipy: do not overwrite upstream prepare() --- community/python-scipy/PKGBUILD | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'community/python-scipy') diff --git a/community/python-scipy/PKGBUILD b/community/python-scipy/PKGBUILD index 7791f788..26b3f417 100644 --- a/community/python-scipy/PKGBUILD +++ b/community/python-scipy/PKGBUILD @@ -1,10 +1,8 @@ # increase standard relative tolerance of verify_gauss_quad -prepare() { - sed -i ' - /def verify_gauss_quad/ { - N - s/rtol=[^,]\+,/rtol=2e-15,/ - } - ' "scipy-${pkgver}/scipy/special/tests/test_orthogonal.py" -} +eval "$( + declare -f prepare | \ + sed ' + 2 a sed -i '"'"'/def verify_gauss_quad/ { N; s/rtol=[^,]\+,/rtol=2e-15,/; } '"'"' "scipy-${pkgver}/scipy/special/tests/test_orthogonal.py" + ' +)" -- cgit v1.2.3