diff options
author | cookedm <cookedm@localhost> | 2007-05-31 00:51:48 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-05-31 00:51:48 +0000 |
commit | aaba782713ef34736f15d016e9b080c2cc46bf47 (patch) | |
tree | b3f3c6b57a0edbed3923af739375e76bfa30849d /numpy/distutils/command/build_ext.py | |
parent | 1228e04dab49b8709662df3c2466c5f0bad9532a (diff) | |
download | numpy-aaba782713ef34736f15d016e9b080c2cc46bf47.tar.gz |
do an appropiate behaviour in the distutils commands when new_fcompiler returns None
Diffstat (limited to 'numpy/distutils/command/build_ext.py')
-rw-r--r-- | numpy/distutils/command/build_ext.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |