[Numpy-svn] r4383 - in branches/numpy.scons/numpy/distutils: command scons/checkers

numpy-svn@scip... numpy-svn@scip...
Mon Nov 5 02:24:16 CST 2007


Author: cdavid
Date: 2007-11-05 02:24:11 -0600 (Mon, 05 Nov 2007)
New Revision: 4383

Modified:
   branches/numpy.scons/numpy/distutils/command/scons.py
   branches/numpy.scons/numpy/distutils/scons/checkers/support.py
Log:

- Fix trivial typo which prevents scons working on python 2.4
- For fortran compiler not supported yet, just returns 'fortran' as a type
  instead of compiler_type



Modified: branches/numpy.scons/numpy/distutils/command/scons.py
===================================================================
--- branches/numpy.scons/numpy/distutils/command/scons.py	2007-11-05 07:23:15 UTC (rev 4382)
+++ branches/numpy.scons/numpy/distutils/command/scons.py	2007-11-05 08:24:11 UTC (rev 4383)
@@ -62,10 +62,10 @@
     elif compiler.compiler_type == 'gnu':
         return 'g77'
     elif compiler.compiler_type == 'gnu95':
-        # XXX ?
         return 'gfortran'
     else:
-        return compiler.compiler_type
+        # XXX: Just give up for now, and use generic fortran compiler
+        return 'fortran'
 
 def get_compiler_executable(compiler):
     """For any give CCompiler instance, this gives us the name of C compiler

Modified: branches/numpy.scons/numpy/distutils/scons/checkers/support.py
===================================================================
--- branches/numpy.scons/numpy/distutils/scons/checkers/support.py	2007-11-05 07:23:15 UTC (rev 4382)
+++ branches/numpy.scons/numpy/distutils/scons/checkers/support.py	2007-11-05 08:24:11 UTC (rev 4383)
@@ -1,5 +1,5 @@
 #! /usr/bin/env python
-# Last Change: Wed Oct 31 08:00 PM 2007 J
+# Last Change: Mon Nov 05 05:00 PM 2007 J
 
 # This module defines some helper functions, to be used by high level checkers
 
@@ -108,7 +108,7 @@
         msg = [r'%s : %s' % (k, i) for k, i in self.data.items()]
         return '\n'.join(msg)
 
-class ConfigRes():
+class ConfigRes:
     def __init__(self, name, cfgopts, origin, version = None):
         self.name = name
         self.data = cfgopts.data



More information about the Numpy-svn mailing list