[Numpy-svn] r4136 - branches/numpy.scons/numpy/distutils/command

numpy-svn@scip... numpy-svn@scip...
Tue Sep 25 10:52:49 CDT 2007


Author: cdavid
Date: 2007-09-25 10:52:35 -0500 (Tue, 25 Sep 2007)
New Revision: 4136

Modified:
   branches/numpy.scons/numpy/distutils/command/scons.py
Log:
Only initialize compiler instance in scons command when the function initialize is available

Modified: branches/numpy.scons/numpy/distutils/command/scons.py
===================================================================
--- branches/numpy.scons/numpy/distutils/command/scons.py	2007-09-25 15:47:58 UTC (rev 4135)
+++ branches/numpy.scons/numpy/distutils/command/scons.py	2007-09-25 15:52:35 UTC (rev 4136)
@@ -97,7 +97,8 @@
         self.compiler.customize(self.distribution)
 		
 		# This initialization seems necessary, sometimes, for find_executable to work...
-        self.compiler.initialize()
+        if hasattr(self.compiler, 'initialize'):
+            self.compiler.initialize()
 		
         #print "++++++++++++++++++++++++++++++++++++++++"
         #print "self.compiler is %s, this gives us scons tool %s" % (compiler_type, 



More information about the Numpy-svn mailing list