From 47478cba842b48c43846d7f343261154b7f16b66 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Thu, 31 May 2007 08:45:30 +0000 Subject: Fix issues with undetected Fortran compilers. --- numpy/distutils/command/build_ext.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'numpy/distutils/command/build_ext.py') 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 -- cgit v1.2.1