[Numpy-svn] r4266 - branches/numpy.scons/numpy/core

numpy-svn@scip... numpy-svn@scip...
Sat Oct 20 11:49:17 CDT 2007


Author: cdavid
Date: 2007-10-20 11:49:13 -0500 (Sat, 20 Oct 2007)
New Revision: 4266

Modified:
   branches/numpy.scons/numpy/core/SConstruct
Log:
Add USE_DISTUTILS_SDK config for AMD64 under windows

Modified: branches/numpy.scons/numpy/core/SConstruct
===================================================================
--- branches/numpy.scons/numpy/core/SConstruct	2007-10-20 16:45:59 UTC (rev 4265)
+++ branches/numpy.scons/numpy/core/SConstruct	2007-10-20 16:49:13 UTC (rev 4266)
@@ -120,6 +120,13 @@
 else:
     config_sym.append(('NPY_NOSMP', '0'))
 
+# XXX: this is ugly
+if sys.platform=='win32' or os.name=='nt':
+    from distutils.msvccompiler import get_build_architecture
+    a = get_build_architecture()
+    print 'BUILD_ARCHITECTURE: %r, os.name=%r, sys.platform=%r' % (a, os.name, sys.platform)
+    if a == 'AMD64':
+        moredefs.append(('DISTUTILS_USE_SDK', 1))
 #--------------
 # Checking Blas
 #--------------



More information about the Numpy-svn mailing list