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_clib.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_clib.py')
-rw-r--r-- | numpy/distutils/command/build_clib.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py index 973f21d1a..ae6004db3 100644 --- a/numpy/distutils/command/build_clib.py +++ b/numpy/distutils/command/build_clib.py @@ -78,14 +78,15 @@ class build_clib(old_build_clib): dry_run=self.dry_run, force=self.force, requiref90='f90' in languages) - self.fcompiler.customize(self.distribution) + if self.compiler is not None: + self.fcompiler.customize(self.distribution) - libraries = self.libraries - self.libraries = None - self.fcompiler.customize_cmd(self) - self.libraries = libraries + libraries = self.libraries + self.libraries = None + self.fcompiler.customize_cmd(self) + self.libraries = libraries - self.fcompiler.show_customization() + self.fcompiler.show_customization() self.build_libraries(self.libraries) @@ -143,10 +144,11 @@ class build_clib(old_build_clib): dry_run=self.dry_run, force=self.force, requiref90=requiref90) - dist = self.distribution - base_config_fc = dist.get_option_dict('config_fc').copy() - base_config_fc.update(config_fc) - fcompiler.customize(base_config_fc) + if fcompiler is not None: + dist = self.distribution + base_config_fc = dist.get_option_dict('config_fc').copy() + base_config_fc.update(config_fc) + fcompiler.customize(base_config_fc) # check availability of Fortran compilers if (f_sources or fmodule_sources) and fcompiler is None: |