summaryrefslogtreecommitdiff
path: root/numpy/distutils/fcompiler
diff options
context:
space:
mode:
authorcookedm <cookedm@localhost>2007-05-25 15:17:20 +0000
committercookedm <cookedm@localhost>2007-05-25 15:17:20 +0000
commit888d6eddcb686d7b4b502b34be35be9acec84f6b (patch)
treeeab6d2fb03c5984b9d1f5cb55cb92ca3d8c6b705 /numpy/distutils/fcompiler
parent4b9536cc6028da5d22e261d8c669af0c7cec14d5 (diff)
downloadnumpy-888d6eddcb686d7b4b502b34be35be9acec84f6b.tar.gz
Fix at least one bug in fcompiler introduced by me
Diffstat (limited to 'numpy/distutils/fcompiler')
-rw-r--r--numpy/distutils/fcompiler/__init__.py25
1 files changed, 13 insertions, 12 deletions
diff --git a/numpy/distutils/fcompiler/__init__.py b/numpy/distutils/fcompiler/__init__.py
index aed440d3b..579cbc08f 100644
--- a/numpy/distutils/fcompiler/__init__.py
+++ b/numpy/distutils/fcompiler/__init__.py
@@ -245,11 +245,11 @@ class FCompiler(CCompiler):
return None
f90 = set_exe('compiler_f90')
- if not f90:
- raise CompilerNotFound('f90')
+# if not f90:
+# raise CompilerNotFound('f90')
f77 = set_exe('compiler_f77', f90=f90)
if not f77:
- raise CompilerNotFound('f90')
+ raise CompilerNotFound('f77')
set_exe('compiler_fix', f90=f90)
set_exe('linker_so', f77=f77, f90=f90)
@@ -273,8 +273,8 @@ class FCompiler(CCompiler):
f90 = self.executables.get('compiler_f90')
if f90 is not None:
f90 = f90[0]
- if cmd==f90:
- cmd = self.compiler_f90[0]
+ if cmd == f90:
+ cmd = self.compiler_f90[0]
return cmd
def get_linker_so(self):
@@ -285,14 +285,14 @@ class FCompiler(CCompiler):
ln = self.executables.get('linker_so')
if ln is not None:
ln = ln[0]
- if ln==f77:
+ if ln == f77:
ln = self.compiler_f77[0]
else:
f90 = self.executables.get('compiler_f90')
if f90 is not None:
f90 = f90[0]
- if ln==f90:
- ln = self.compiler_f90[0]
+ if ln == f90:
+ ln = self.compiler_f90[0]
return ln
def get_linker_exe(self):
@@ -303,14 +303,14 @@ class FCompiler(CCompiler):
ln = self.executables.get('linker_exe')
if ln is not None:
ln = ln[0]
- if ln==f77:
+ if ln == f77:
ln = self.compiler_f77[0]
else:
f90 = self.executables.get('compiler_f90')
if f90 is not None:
f90 = f90[0]
- if ln==f90:
- ln = self.compiler_f90[0]
+ if ln == f90:
+ ln = self.compiler_f90[0]
return ln
def get_flags(self):
@@ -807,8 +807,9 @@ def show_fcompilers(dist=None):
c = new_fcompiler(compiler=compiler, verbose=dist.verbose)
c.customize(dist)
v = c.get_version()
- except (DistutilsModuleError, CompilerNotFound):
+ except (DistutilsModuleError, CompilerNotFound), e:
log.debug("show_fcompilers: %s not found" % (compiler,))
+ log.debug(repr(e))
if v is None: