blob: fb8dba7d4dd25621e6b560aa3553d895bfd0bd0c [file] [log] [blame]
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index 6ce590c..5b4262d 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -7,7 +7,7 @@ from numpy.distutils.fcompiler import FCompiler
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 @@ class CompaqVisualFCompiler(FCompiler):
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: