From aaba782713ef34736f15d016e9b080c2cc46bf47 Mon Sep 17 00:00:00 2001 From: cookedm Date: Thu, 31 May 2007 00:51:48 +0000 Subject: do an appropiate behaviour in the distutils commands when new_fcompiler returns None --- numpy/distutils/command/build_ext.py | 4 ++-- 1 file changed, 2 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 6febe9124..83779fe49 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -175,7 +175,7 @@ class build_ext (old_build_ext): force=self.force, requiref90=False) fcompiler = self._f77_compiler - if fcompiler.get_version(): + if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) fcompiler.customize_cmd(self) fcompiler.show_customization() @@ -194,7 +194,7 @@ class build_ext (old_build_ext): force=self.force, requiref90=True) fcompiler = self._f90_compiler - if fcompiler.get_version(): + if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) fcompiler.customize_cmd(self) fcompiler.show_customization() -- cgit v1.2.1