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/config.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/config.py')
-rw-r--r-- | numpy/distutils/command/config.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/distutils/command/config.py b/numpy/distutils/command/config.py index f4e96664c..86f4bf593 100644 --- a/numpy/distutils/command/config.py +++ b/numpy/distutils/command/config.py @@ -28,9 +28,10 @@ class config(old_config): if not isinstance(self.fcompiler, FCompiler): self.fcompiler = new_fcompiler(compiler=self.fcompiler, dry_run=self.dry_run, force=1) - self.fcompiler.customize(self.distribution) - self.fcompiler.customize_cmd(self) - self.fcompiler.show_customization() + if self.fcompiler is not None: + self.fcompiler.customize(self.distribution) + self.fcompiler.customize_cmd(self) + self.fcompiler.show_customization() def _wrap_method(self,mth,lang,args): from distutils.ccompiler import CompileError |