summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/compaq.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/distutils/fcompiler/compaq.py')
-rw-r--r--numpy/distutils/fcompiler/compaq.py23
1 files changed, 16 insertions, 7 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py
index c2897f5ca..03c8c88ac 100644
--- a/numpy/distutils/fcompiler/compaq.py
+++ b/numpy/distutils/fcompiler/compaq.py
@@ -7,9 +7,17 @@ import sys
from numpy.distutils.cpuinfo import cpu
from numpy.distutils.fcompiler import FCompiler
+compilers = ['CompaqFCompiler']
+if os.name != 'posix':
+ # Otherwise we'd get a false positive on posix systems with
+ # case-insensitive filesystems (like darwin), because we'll pick
+ # up /bin/df
+ compilers.append('CompaqVisualFCompiler')
+
class CompaqFCompiler(FCompiler):
compiler_type = 'compaq'
+ description = 'Compaq Fortran Compiler'
version_pattern = r'Compaq Fortran (?P<version>[^\s]*).*'
if sys.platform[:5]=='linux':
@@ -18,11 +26,11 @@ class CompaqFCompiler(FCompiler):
fc_exe = 'f90'
executables = {
- 'version_cmd' : [fc_exe, "-version"],
+ 'version_cmd' : ['<F90>', "-version"],
'compiler_f77' : [fc_exe, "-f77rtl","-fixed"],
'compiler_fix' : [fc_exe, "-fixed"],
'compiler_f90' : [fc_exe],
- 'linker_so' : [fc_exe],
+ 'linker_so' : ['<F90>'],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"]
}
@@ -47,6 +55,7 @@ class CompaqFCompiler(FCompiler):
class CompaqVisualFCompiler(FCompiler):
compiler_type = 'compaqv'
+ description = 'DIGITAL or Compaq Visual Fortran Compiler'
version_pattern = r'(DIGITAL|Compaq) Visual Fortran Optimizing Compiler'\
' Version (?P<version>[^\s]*).*'
@@ -68,11 +77,11 @@ class CompaqVisualFCompiler(FCompiler):
ar_exe = m.lib
executables = {
- 'version_cmd' : ['DF', "/what"],
- 'compiler_f77' : ['DF', "/f77rtl","/fixed"],
- 'compiler_fix' : ['DF', "/fixed"],
- 'compiler_f90' : ['DF'],
- 'linker_so' : ['DF'],
+ 'version_cmd' : ['<F90>', "/what"],
+ 'compiler_f77' : [fc_exe, "/f77rtl","/fixed"],
+ 'compiler_fix' : [fc_exe, "/fixed"],
+ 'compiler_f90' : [fc_exe],
+ 'linker_so' : ['<F90>'],
'archiver' : [ar_exe, "/OUT:"],
'ranlib' : None
}