From a51fa04ade56428e8314f5c8cf31f00db2e07962 Mon Sep 17 00:00:00 2001 From: "U-Laptop\\rute" Date: Mon, 22 Sep 2014 23:31:01 +0200 Subject: [PATCH] fix numpy testsuite --- mingw-w64-python-numpy/PKGBUILD | 7 +++++-- mingw-w64-python-numpy/fix-testsuite.patch | 11 +++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 mingw-w64-python-numpy/fix-testsuite.patch diff --git a/mingw-w64-python-numpy/PKGBUILD b/mingw-w64-python-numpy/PKGBUILD index 6607742144..990c968149 100644 --- a/mingw-w64-python-numpy/PKGBUILD +++ b/mingw-w64-python-numpy/PKGBUILD @@ -19,15 +19,18 @@ makedepends=( options=('staticlibs') source=(http://downloads.sourceforge.net/numpy/${_realname}-${pkgver}.tar.gz fix-finding-python2.patch - gfortran-better-version-check.patch) + gfortran-better-version-check.patch + fix-testsuite.patch) md5sums=('a93dfc447f3ef749b31447084839930b' '1f9586ab1206193fd4058f2cf802c7df' - '4f6552fb0d25ca07f359df9e1d276e45') + '4f6552fb0d25ca07f359df9e1d276e45' + '84e65671dc50c0a0e5fa40a1dd25359d') prepare() { cd ${_realname}-$pkgver patch -Np1 -i ${srcdir}/fix-finding-python2.patch patch -Np1 -i ${srcdir}/gfortran-better-version-check.patch + patch -Np1 -i ${srcdir}/fix-testsuite.patch cd .. cp -a numpy-$pkgver numpy-py2-$pkgver diff --git a/mingw-w64-python-numpy/fix-testsuite.patch b/mingw-w64-python-numpy/fix-testsuite.patch new file mode 100644 index 0000000000..ff799c1d34 --- /dev/null +++ b/mingw-w64-python-numpy/fix-testsuite.patch @@ -0,0 +1,11 @@ +--- numpy-1.9.0/numpy/core/tests/test_multiarray.py 2014-09-07 10:57:48.000000000 +0200 ++++ /mingw64/lib/python3.4/site-packages/numpy/core/tests/test_multiarray.py 2014-09-22 20:42:55.177362800 +0200 +@@ -2691,7 +2691,7 @@ + """Test workarounds for 32-bit limited fwrite, fseek, and ftell + calls in windows. These normally would hang doing something like this. + See http://projects.scipy.org/numpy/ticket/1660""" +- if sys.platform != 'win32': ++ if sys.platform != 'win32' or "MSYSTEM" in os.environ: + return + try: + # before workarounds, only up to 2**32-1 worked