Files
MINGW-packages/mingw-w64-python-numpy/0001-detect-mingw-environment.patch
Ray Donnelly 352a6eee69 numpy: Missed bits, remove _POSIX_BUILD
It is a dependency back to our Python changes that makes our
NumPy changes less palatable from an upstreaming perspective.
Really, we want to know if Python has been built with GCC, and
that is exactly what 'GCC' in sys.version determines.
2016-01-04 01:11:27 +00:00

15 lines
580 B
Diff

diff -urN numpy-1.10.2.orig/numpy/distutils/misc_util.py numpy-1.10.2/numpy/distutils/misc_util.py
--- numpy-1.10.2.orig/numpy/distutils/misc_util.py 2016-01-04 00:38:06.433855300 +0000
+++ numpy-1.10.2/numpy/distutils/misc_util.py 2016-01-04 00:40:27.356823400 +0000
@@ -386,6 +386,10 @@
return True
if os.environ.get('MSYSTEM', '')=='MINGW32':
return True
+ if os.environ.get('MSYSTEM', '')=='MINGW64':
+ return True
+ if 'GCC' in sys.version:
+ return True
return False
def msvc_runtime_library():