fix numpy testsuite
This commit is contained in:
@@ -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
|
||||
|
||||
11
mingw-w64-python-numpy/fix-testsuite.patch
Normal file
11
mingw-w64-python-numpy/fix-testsuite.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user