[Numpy-svn] r4413 - tags/1.0.4/numpy/core

numpy-svn@scip... numpy-svn@scip...
Wed Nov 7 16:41:46 CST 2007


Author: oliphant
Date: 2007-11-07 16:41:44 -0600 (Wed, 07 Nov 2007)
New Revision: 4413

Modified:
   tags/1.0.4/numpy/core/setup.py
Log:
Fix a python2.3 compatibility problem.

Modified: tags/1.0.4/numpy/core/setup.py
===================================================================
--- tags/1.0.4/numpy/core/setup.py	2007-11-07 21:46:06 UTC (rev 4412)
+++ tags/1.0.4/numpy/core/setup.py	2007-11-07 22:41:44 UTC (rev 4413)
@@ -105,7 +105,7 @@
             if sys.platform == 'win32':
                 moredefs.append('NPY_NO_SIGNAL')
 
-            if sys.platform=='win32' or os.name=='nt':
+            if sys.version[:3] > '2.4' and (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)



More information about the Numpy-svn mailing list