[Numpy-svn] r3910 - trunk/numpy/distutils

numpy-svn@scip... numpy-svn@scip...
Fri Jul 27 17:09:28 CDT 2007


Author: pearu
Date: 2007-07-27 17:09:23 -0500 (Fri, 27 Jul 2007)
New Revision: 3910

Modified:
   trunk/numpy/distutils/ccompiler.py
   trunk/numpy/distutils/misc_util.py
Log:
Added debug messages to see if quote_args are applied properly.

Modified: trunk/numpy/distutils/ccompiler.py
===================================================================
--- trunk/numpy/distutils/ccompiler.py	2007-07-27 21:12:35 UTC (rev 3909)
+++ trunk/numpy/distutils/ccompiler.py	2007-07-27 22:09:23 UTC (rev 3910)
@@ -371,6 +371,7 @@
 def gen_lib_options(compiler, library_dirs, runtime_library_dirs, libraries):
     library_dirs = quote_args(library_dirs)
     runtime_library_dirs = quote_args(runtime_library_dirs)
+    print 'gen_lib_options:',library_dirs, runtime_library_dirs
     r = _distutils_gen_lib_options(compiler, library_dirs,
                                    runtime_library_dirs, libraries)
     lib_opts = []

Modified: trunk/numpy/distutils/misc_util.py
===================================================================
--- trunk/numpy/distutils/misc_util.py	2007-07-27 21:12:35 UTC (rev 3909)
+++ trunk/numpy/distutils/misc_util.py	2007-07-27 22:09:23 UTC (rev 3910)
@@ -30,7 +30,9 @@
     args = list(args)
     for i in range(len(args)):
         a = args[i]
-        if ' ' in a and a[0] not in '"\'':
+        if is_sequence(a):
+            args[i] = quote_args(a)
+        elif ' ' in a and a[0] not in '"\'':
             args[i] = '"%s"' % (a)
     return args
 
@@ -327,6 +329,7 @@
     if os.environ.has_key('DISTUTILS_USE_SDK'):
         return
     # try to avoid _MSVCCompiler__root attribute error
+    print 'Forcing DISTUTILS_USE_SDK=1'
     os.environ['DISTUTILS_USE_SDK']='1'
     return
 



More information about the Numpy-svn mailing list