diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-01-19 13:59:23 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-01-19 13:59:23 +0000 |
commit | 23f3f744067d5c88d4c6161e00617b73ed7c5086 (patch) | |
tree | 2f4eeb3bd68fa9432fc9b574f94936985da16bc8 /scipy_distutils/gnufcompiler.py | |
parent | a2ebf21e64283d808bdeaa206738700d8a4a65c5 (diff) | |
download | numpy-23f3f744067d5c88d4c6161e00617b73ed7c5086.tar.gz |
Fixed gnu version_pattern (2nd try)
Diffstat (limited to 'scipy_distutils/gnufcompiler.py')
-rw-r--r-- | scipy_distutils/gnufcompiler.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scipy_distutils/gnufcompiler.py b/scipy_distutils/gnufcompiler.py index 64796fedd..53b62954f 100644 --- a/scipy_distutils/gnufcompiler.py +++ b/scipy_distutils/gnufcompiler.py @@ -10,9 +10,15 @@ from exec_command import find_executable class GnuFCompiler(FCompiler): compiler_type = 'gnu' - version_pattern = r'GNU Fortran (\(GCC\)|\(GCC.*\)|)\s*'\ + version_pattern = r'GNU Fortran ((\(GCC\)|\(GCC .*(\)\)|\)))|)\s*'\ '(?P<version>[^\s*\)]+)' + # 'g77 --version' results + # SunOS: GNU Fortran (GCC 3.2) 3.2 20020814 (release) + # Debian: GNU Fortran (GCC) 3.3.3 20040110 (prerelease) (Debian) + # GNU Fortran 0.5.25 20010319 (prerelease) + # Redhat: GNU Fortran (GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) + for fc_exe in map(find_executable,['g77','f77']): if os.path.isfile(fc_exe): break |