[Numpy-svn] r3828 - trunk/numpy/distutils/fcompiler
numpy-svn at scipy.org
numpy-svn at scipy.org
Fri May 25 11:17:21 EDT 2007
Author: cookedm
Date: 2007-05-25 10:17:20 -0500 (Fri, 25 May 2007)
New Revision: 3828
Modified:
trunk/numpy/distutils/fcompiler/__init__.py
Log:
Fix at least one bug in fcompiler introduced by me
Modified: trunk/numpy/distutils/fcompiler/__init__.py
===================================================================
--- trunk/numpy/distutils/fcompiler/__init__.py 2007-05-25 15:05:55 UTC (rev 3827)
+++ trunk/numpy/distutils/fcompiler/__init__.py 2007-05-25 15:17:20 UTC (rev 3828)
@@ -245,11 +245,11 @@
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 @@
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 @@
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 @@
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 @@
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:
More information about the Numpy-svn
mailing list