diff options
Diffstat (limited to 'numpy/distutils/fcompiler/absoft.py')
-rw-r--r-- | numpy/distutils/fcompiler/absoft.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/absoft.py b/numpy/distutils/fcompiler/absoft.py index a00ca78b8..3360c7309 100644 --- a/numpy/distutils/fcompiler/absoft.py +++ b/numpy/distutils/fcompiler/absoft.py @@ -13,9 +13,12 @@ from numpy.distutils.cpuinfo import cpu from numpy.distutils.fcompiler import FCompiler, dummy_fortran_file from numpy.distutils.misc_util import cyg2win32 +compilers = ['AbsoftFCompiler'] + class AbsoftFCompiler(FCompiler): compiler_type = 'absoft' + description = 'Absoft Corp Fortran Compiler' #version_pattern = r'FORTRAN 77 Compiler (?P<version>[^\s*,]*).*?Absoft Corp' version_pattern = r'(f90:.*?(Absoft Pro FORTRAN Version|FORTRAN 77 Compiler|Absoft Fortran Compiler Version|Copyright Absoft Corporation.*?Version))'+\ r' (?P<version>[^\s*,]*)(.*?Absoft Corp|)' @@ -28,12 +31,12 @@ class AbsoftFCompiler(FCompiler): # Note that fink installs g77 as f77, so need to use f90 for detection. executables = { - 'version_cmd' : ["f90", "-V -c %(fname)s.f -o %(fname)s.o" \ + 'version_cmd' : ["<F90>", "-V -c %(fname)s.f -o %(fname)s.o" \ % {'fname':cyg2win32(dummy_fortran_file())}], 'compiler_f77' : ["f77"], 'compiler_fix' : ["f90"], 'compiler_f90' : ["f90"], - 'linker_so' : ["f90"], + 'linker_so' : ["<F90>"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranlib"] } |