diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2004-02-26 10:22:51 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2004-02-26 10:22:51 +0000 |
commit | 91cff85dbd02c76e6f99457691cb7d1b12c3483e (patch) | |
tree | 8eadd1730b7aa37af74db75a7b1e0f55bbd29abf /scipy_distutils/fcompiler.py | |
parent | 45c0b1e7f0cf7a08758d037d572b2330303f3f05 (diff) | |
download | numpy-91cff85dbd02c76e6f99457691cb7d1b12c3483e.tar.gz |
Added flavor info to fortran compilation message.
Diffstat (limited to 'scipy_distutils/fcompiler.py')
-rw-r--r-- | scipy_distutils/fcompiler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scipy_distutils/fcompiler.py b/scipy_distutils/fcompiler.py index e922072a4..6d85dab77 100644 --- a/scipy_distutils/fcompiler.py +++ b/scipy_distutils/fcompiler.py @@ -416,13 +416,16 @@ class FCompiler(CCompiler): def _compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts): """Compile 'src' to product 'obj'.""" if is_f_file(src): + flavor = ':f77' compiler = self.compiler_f77 elif is_free_format(src): + flavor = ':f90' compiler = self.compiler_f90 if compiler is None: raise DistutilsExecError, 'f90 not supported by '\ +self.__class__.__name__ else: + flavor = ':fix' compiler = self.compiler_fix if compiler is None: raise DistutilsExecError, 'f90 (fixed) not supported by '\ @@ -437,8 +440,7 @@ class FCompiler(CCompiler): command = compiler + cc_args + s_args + o_args + extra_postargs - display = '%s: %s' % (os.path.basename(compiler[0]) \ - + (compiler is self.compiler_fix and ':fix' or ''), + display = '%s: %s' % (os.path.basename(compiler[0]) + flavor, src) try: self.spawn(command,display=display) |