summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler/intel.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/intel.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/intel.py')
-rw-r--r--numpy/distutils/fcompiler/intel.py23
1 files changed, 13 insertions, 10 deletions
diff --git a/numpy/distutils/fcompiler/intel.py b/numpy/distutils/fcompiler/intel.py
index 4244c5505..52e968e09 100644
--- a/numpy/distutils/fcompiler/intel.py
+++ b/numpy/distutils/fcompiler/intel.py
@@ -24,8 +24,7 @@ class IntelFCompiler(FCompiler):
possible_executables = ['ifort', 'ifc']
executables = {
- 'version_cmd' : ["<F77>", "-FI -V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':dummy_fortran_file()}],
+ 'version_cmd' : None,
'compiler_f77' : [None,"-72","-w90","-w95"],
'compiler_f90' : [None],
'compiler_fix' : [None,"-FI"],
@@ -38,6 +37,10 @@ class IntelFCompiler(FCompiler):
module_dir_switch = '-module ' # Don't remove ending space!
module_include_switch = '-I'
+ def get_version_cmd(self):
+ f = dummy_fortran_file()
+ return ['<F77>', '-FI', '-V', '-c', f + '.f', '-o', f + '.o']
+
def get_flags(self):
opt = self.pic_flags + ["-cm"]
return opt
@@ -91,8 +94,7 @@ class IntelItaniumFCompiler(IntelFCompiler):
possible_executables = ['ifort', 'efort', 'efc']
executables = {
- 'version_cmd' : ['<F77>', "-FI -V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':dummy_fortran_file()}],
+ 'version_cmd' : None,
'compiler_f77' : [None,"-FI","-w90","-w95"],
'compiler_fix' : [None,"-FI"],
'compiler_f90' : [None],
@@ -110,8 +112,7 @@ class IntelEM64TFCompiler(IntelFCompiler):
possible_executables = ['ifort', 'efort', 'efc']
executables = {
- 'version_cmd' : ['<F77>', "-FI -V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':dummy_fortran_file()}],
+ 'version_cmd' : None,
'compiler_f77' : [None, "-FI", "-w90", "-w95"],
'compiler_fix' : [None, "-FI"],
'compiler_f90' : [None],
@@ -138,8 +139,7 @@ class IntelVisualFCompiler(FCompiler):
possible_executables = ['ifl']
executables = {
- 'version_cmd' : ['<F77>', "-FI -V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':dummy_fortran_file()}],
+ 'version_cmd' : None,
'compiler_f77' : [None,"-FI","-w90","-w95"],
'compiler_fix' : [None,"-FI","-4L72","-w"],
'compiler_f90' : [None],
@@ -154,6 +154,10 @@ class IntelVisualFCompiler(FCompiler):
module_dir_switch = '/module:' #No space after /module:
module_include_switch = '/I'
+ def get_version_cmd(self):
+ f = dummy_fortran_file()
+ return ['<F77>', '-FI', '-V', '-c', f + '.f', '-o', f + '.o']
+
def get_flags(self):
opt = ['/nologo','/MD','/nbs','/Qlowercase','/us']
return opt
@@ -191,8 +195,7 @@ class IntelItaniumVisualFCompiler(IntelVisualFCompiler):
ar_exe = IntelVisualFCompiler.ar_exe
executables = {
- 'version_cmd' : ['<F77>', "-FI -V -c %(fname)s.f -o %(fname)s.o" \
- % {'fname':dummy_fortran_file()}],
+ 'version_cmd' : None,
'compiler_f77' : [None,"-FI","-w90","-w95"],
'compiler_fix' : [None,"-FI","-4L72","-w"],
'compiler_f90' : [None],