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

numpy-svn@scip... numpy-svn@scip...
Fri Nov 30 23:07:17 CST 2007


Author: cdavid
Date: 2007-11-30 23:06:52 -0600 (Fri, 30 Nov 2007)
New Revision: 4515

Modified:
   branches/numpy.scons/numpy/distutils/command/scons.py
Log:
Start working on getting C++ compiler from distutils for scons

Modified: branches/numpy.scons/numpy/distutils/command/scons.py
===================================================================
--- branches/numpy.scons/numpy/distutils/command/scons.py	2007-11-30 03:58:34 UTC (rev 4514)
+++ branches/numpy.scons/numpy/distutils/command/scons.py	2007-12-01 05:06:52 UTC (rev 4515)
@@ -197,6 +197,17 @@
         if self.fcompiler is not None:
             self.fcompiler.customize(self.distribution)
 
+	# C++ compiler
+        cxxcompiler = new_compiler(compiler = compiler_type,
+                                   verbose = self.verbose,
+                                   dry_run = self.dry_run,
+                                   force = self.force)
+	if cxxcompiler is not None:
+	    cxxcompiler.customize(self.distribution, need_cxx = 1)
+	    cxxcompiler.customize_cmd(self)
+	    self.cxxcompiler = cxxcompiler.cxx_compiler()
+	    #print self.cxxcompiler.compiler_cxx[0]
+
     def run(self):
         # XXX: when a scons script is missing, scons only prints warnings, and
         # does not return a failure (status is 0). We have to detect this from



More information about the Numpy-svn mailing list