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

numpy-svn@scip... numpy-svn@scip...
Sun Sep 5 08:54:07 CDT 2010


Author: cdavid
Date: 2010-09-05 08:54:07 -0500 (Sun, 05 Sep 2010)
New Revision: 8695

Modified:
   trunk/numpy/distutils/npy_pkg_config.py
Log:
BUG: do not add empty string when interpolating values in LibraryInfo.

This adds superflous space in strings, which cause issues when executing
commands outside shell control (e.g. '-I/usr/include ' will not add
'/usr/include' but '/usr/include ' into the search path of compilers)

Modified: trunk/numpy/distutils/npy_pkg_config.py
===================================================================
--- trunk/numpy/distutils/npy_pkg_config.py	2010-09-05 13:36:35 UTC (rev 8694)
+++ trunk/numpy/distutils/npy_pkg_config.py	2010-09-05 13:54:07 UTC (rev 8695)
@@ -313,7 +313,8 @@
 
             # Update sec dict
             for oname, ovalue in nsections[rname].items():
-                sections[rname][oname] += ' %s' % ovalue
+                if ovalue:
+                    sections[rname][oname] += ' %s' % ovalue
 
         return meta, vars, sections, reqs
 



More information about the Numpy-svn mailing list