diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-05-31 08:45:30 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-05-31 08:45:30 +0000 |
commit | 47478cba842b48c43846d7f343261154b7f16b66 (patch) | |
tree | f9898266b4388c752d10024f49bce0bcff91e357 /numpy/distutils/command/build_ext.py | |
parent | b8066ba719a066aef7f8e72f170149e0e2f782eb (diff) | |
download | numpy-47478cba842b48c43846d7f343261154b7f16b66.tar.gz |
Fix issues with undetected Fortran compilers.
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r-- | numpy/distutils/command/build_ext.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py index 83779fe49..aac164795 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -169,38 +169,44 @@ class build_ext (old_build_ext): # Initialize Fortran 77 compiler: if need_f77_compiler: + ctype = self.fcompiler self._f77_compiler = new_fcompiler(compiler=self.fcompiler, verbose=self.verbose, dry_run=self.dry_run, force=self.force, requiref90=False) fcompiler = self._f77_compiler + if fcompiler: + ctype = fcompiler.compiler_type if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) fcompiler.customize_cmd(self) fcompiler.show_customization() else: self.warn('f77_compiler=%s is not available.' % - (fcompiler.compiler_type)) + (ctype)) self._f77_compiler = None else: self._f77_compiler = None # Initialize Fortran 90 compiler: if need_f90_compiler: + ctype = self.fcompiler self._f90_compiler = new_fcompiler(compiler=self.fcompiler, verbose=self.verbose, dry_run=self.dry_run, force=self.force, requiref90=True) fcompiler = self._f90_compiler + if fcompiler: + ctype = fcompiler.compiler_type if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) fcompiler.customize_cmd(self) fcompiler.show_customization() else: self.warn('f90_compiler=%s is not available.' % - (fcompiler.compiler_type)) + (ctype)) self._f90_compiler = None else: self._f90_compiler = None |