[Numpy-svn] r3917 - trunk/numpy/core

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 05:28:47 CDT 2007


Author: pearu
Date: 2007-07-28 05:28:44 -0500 (Sat, 28 Jul 2007)
New Revision: 3917

Modified:
   trunk/numpy/core/setup.py
Log:
Trying to fix inconsisted dll linkage warning, 5.

Modified: trunk/numpy/core/setup.py
===================================================================
--- trunk/numpy/core/setup.py	2007-07-28 10:24:20 UTC (rev 3916)
+++ trunk/numpy/core/setup.py	2007-07-28 10:28:44 UTC (rev 3917)
@@ -105,8 +105,10 @@
             if sys.platform == 'win32':
                 moredefs.append('NPY_NO_SIGNAL')
 
-            if os.environ.get('DISTUTILS_USE_SDK'):
-                moredefs.append('DISTUTILS_USE_SDK')
+            if sys.platform=='win32' or os.name=='nt':
+                from distutils.msvccompiler import get_build_architecture
+                if get_build_architecture() == 'AMD64':
+                    moredefs.append('DISTUTILS_USE_SDK')
 
             if sys.version[:3] < '2.4':
                 if config_cmd.check_func('strtod', decl=False,



More information about the Numpy-svn mailing list