summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/absoft.py
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-28 17:49:55 +0000
committercookedm <cookedm@localhost>2007-05-28 17:49:55 +0000
commit60eed2d138f5fd08fc8fa016debbac097371a47d (patch)
treea14274bdd33e90ee1fa84c9ccc94fe2d522846ac /numpy/distutils/fcompiler/absoft.py
parentbfb1633766b1e6b1c72de094aa565c6e6ec0db80 (diff)
downloadnumpy-60eed2d138f5fd08fc8fa016debbac097371a47d.tar.gz
Better temporary file handling by using one temporary directory for
numpy.distutils, and removing that at exit. Replaces using tempfile.mktemp.
Diffstat (limited to 'numpy/distutils/fcompiler/absoft.py')
-rw-r--r--numpy/distutils/fcompiler/absoft.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/numpy/distutils/fcompiler/absoft.py b/numpy/distutils/fcompiler/absoft.py
index cd13fd36e..32a58fd31 100644
--- a/numpy/distutils/fcompiler/absoft.py
+++ b/numpy/distutils/fcompiler/absoft.py
@@ -30,8 +30,7 @@ class AbsoftFCompiler(FCompiler):
# Note that fink installs g77 as f77, so need to use f90 for detection.
executables = {
- 'version_cmd' : ["<F90>", "-V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':cyg2win32(dummy_fortran_file())}],
+ 'version_cmd' : None,
'compiler_f77' : ["f77"],
'compiler_fix' : ["f90"],
'compiler_f90' : ["f90"],
@@ -46,6 +45,10 @@ class AbsoftFCompiler(FCompiler):
module_dir_switch = None
module_include_switch = '-p'
+ def get_version_cmd(self):
+ f = cyg2win32(dummy_fortran_file())
+ return ['<F90>', '-V', '-c', f+'.f', '-o', f+'.o']
+
def get_flags_linker_so(self):
if os.name=='nt':
opt = ['/dll']