summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/absoft.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-06-15 21:24:46 +0000
committercookedm <cookedm@localhost>2007-06-15 21:24:46 +0000
commit635a9fbf1cc87531888eaf50d09bb559e4ad2dfa (patch)
tree1001c24b4b5ab6aec138f37bd6e6bad5080e8ad8 /numpy/distutils/fcompiler/absoft.py
parent46f195b0637b929643906c8ba7b1392849abe9ac (diff)
downloadnumpy-635a9fbf1cc87531888eaf50d09bb559e4ad2dfa.tar.gz
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
Diffstat (limited to 'numpy/distutils/fcompiler/absoft.py')
-rw-r--r--numpy/distutils/fcompiler/absoft.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/distutils/fcompiler/absoft.py b/numpy/distutils/fcompiler/absoft.py
index b14a59b26..96fc49e80 100644
--- a/numpy/distutils/fcompiler/absoft.py
+++ b/numpy/distutils/fcompiler/absoft.py
@@ -30,7 +30,7 @@ class AbsoftFCompiler(FCompiler):
# Note that fink installs g77 as f77, so need to use f90 for detection.
executables = {
- 'version_cmd' : ['<F90>', None],
+ 'version_cmd' : None, # set by update_executables
'compiler_f77' : ["f77"],
'compiler_fix' : ["f90"],
'compiler_f90' : ["f90"],
@@ -45,9 +45,10 @@ class AbsoftFCompiler(FCompiler):
module_dir_switch = None
module_include_switch = '-p'
- def get_flags_version(self):
+ def update_executables(self):
f = cyg2win32(dummy_fortran_file())
- return ['-V', '-c', f+'.f', '-o', f+'.o']
+ self.executables['version_cmd'] = ['<F90>', '-V', '-c',
+ f+'.f', '-o', f+'.o']
def get_flags_linker_so(self):
if os.name=='nt':