Files
MINGW-packages/mingw-w64-python-numpy/0006-disable-visualcompaq-for-mingw.patch
2020-06-22 10:33:24 +03:00

21 lines
931 B
Diff

diff -urN numpy-1.10.2.orig/numpy/distutils/fcompiler/compaq.py numpy-1.10.2/numpy/distutils/fcompiler/compaq.py
--- numpy-1.10.2.orig/numpy/distutils/fcompiler/compaq.py 2016-01-04 00:44:11.333672900 +0000
+++ numpy-1.10.2/numpy/distutils/fcompiler/compaq.py 2016-01-04 00:46:47.573905500 +0000
@@ -10,7 +10,7 @@
from distutils.errors import DistutilsPlatformError
compilers = ['CompaqFCompiler']
-if os.name != 'posix' or sys.platform[:6] == 'cygwin' :
+if (os.name != 'posix' or sys.platform[:6] == 'cygwin') and not 'GCC' in sys.version:
# Otherwise we'd get a false positive on posix systems with
# case-insensitive filesystems (like darwin), because we'll pick
# up /bin/df
@@ -70,7 +70,7 @@
ar_exe = 'lib.exe'
fc_exe = 'DF'
- if sys.platform=='win32':
+ if sys.platform=='win32' and not 'GCC' in sys.version:
from numpy.distutils.msvccompiler import MSVCCompiler
try: