From 635a9fbf1cc87531888eaf50d09bb559e4ad2dfa Mon Sep 17 00:00:00 2001 From: cookedm Date: Fri, 15 Jun 2007 21:24:46 +0000 Subject: Better version handling in fcompiler * Remove FCompiler.get_version_cmd, FCompiler.get_flags_version, FCompiler.get_linker_so_cmd, and FCompiler.get_linker_exe_cmd; subclasses should do this in FCompiler.update_executables() * FCompiler attributes .compiler_f77, .version_cmd, etc., are now properties that read from the .executables dictionary. * Update intel.py and absoft.py for above * Add extra asserts for defensive programming. Most of our problems here seem to come from bad values being generated, and the error not being caught until later. * must call FCompiler.customize() before FCompiler.get_version(); command/build_ext.py and command/config.py updated * verify that commands make sense earlier -- must be None or lists of strings Also, * add IA-32 as another pattern to search for in 32-bit Intel compiler version. * minor formatting * add debugging helpers to environment.py:EnvironmentConfig class --- 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 aac164795..63cfec4c4 100644 --- a/numpy/distutils/command/build_ext.py +++ b/numpy/distutils/command/build_ext.py @@ -178,8 +178,8 @@ class build_ext (old_build_ext): fcompiler = self._f77_compiler if fcompiler: ctype = fcompiler.compiler_type - if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) + if fcompiler and fcompiler.get_version(): fcompiler.customize_cmd(self) fcompiler.show_customization() else: @@ -200,8 +200,8 @@ class build_ext (old_build_ext): fcompiler = self._f90_compiler if fcompiler: ctype = fcompiler.compiler_type - if fcompiler and fcompiler.get_version(): fcompiler.customize(self.distribution) + if fcompiler and fcompiler.get_version(): fcompiler.customize_cmd(self) fcompiler.show_customization() else: -- cgit v1.2.1