[Numpy-svn] r3291 - trunk/numpy/distutils/fcompiler

numpy-svn at scipy.org numpy-svn at scipy.org
Sun Oct 8 05:38:15 EDT 2006


Author: pearu
Date: 2006-10-08 04:38:12 -0500 (Sun, 08 Oct 2006)
New Revision: 3291

Modified:
   trunk/numpy/distutils/fcompiler/__init__.py
Log:
numpy.distutils: fixed bug.

Modified: trunk/numpy/distutils/fcompiler/__init__.py
===================================================================
--- trunk/numpy/distutils/fcompiler/__init__.py	2006-10-08 09:30:17 UTC (rev 3290)
+++ trunk/numpy/distutils/fcompiler/__init__.py	2006-10-08 09:38:12 UTC (rev 3291)
@@ -605,9 +605,12 @@
                 v = None
                 new_compiler = c.suggested_f90_compiler
                 if new_compiler:
+                    log.warn('Trying %r compiler as suggested by %r compiler for f90 support.' % (compiler, new_compiler))
                     c = new_fcompiler(plat=platform, compiler=new_compiler)
                     c.customize()
                     v = c.get_version()
+                    if v is not None:
+                        compiler = new_compiler
             if requiref90 and c.compiler_f90 is None:
                 raise ValueError,'%s does not support compiling f90 codes, skipping.' \
                       % (c.__class__.__name__)




More information about the Numpy-svn mailing list