You've already forked MINGW-packages
mirror of
https://github.com/encounter/MINGW-packages.git
synced 2026-03-30 11:29:58 -07:00
352a6eee69
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.
15 lines
580 B
Diff
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():
|