[Numpy-svn] r5261 - trunk/numpy/distutils/command
numpy-svn at scipy.org
numpy-svn at scipy.org
Sun Jun 8 05:20:06 EDT 2008
Author: cdavid
Date: 2008-06-08 04:20:03 -0500 (Sun, 08 Jun 2008)
New Revision: 5261
Modified:
trunk/numpy/distutils/command/scons.py
Log:
MSVC compiler does not have compiler_cxx member.
Modified: trunk/numpy/distutils/command/scons.py
===================================================================
--- trunk/numpy/distutils/command/scons.py 2008-06-08 03:57:56 UTC (rev 5260)
+++ trunk/numpy/distutils/command/scons.py 2008-06-08 09:20:03 UTC (rev 5261)
@@ -94,6 +94,9 @@
def dist2sconscxx(compiler):
"""This converts the name passed to distutils to scons name convention
(C++ compiler). The argument should be a Compiler instance."""
+ if compiler.compiler_type == 'msvc':
+ return compiler.compiler_type
+
return compiler.compiler_cxx[0]
def get_compiler_executable(compiler):
More information about the Numpy-svn
mailing list