summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2010-09-05 13:54:07 +0000
committerDavid Cournapeau <cournape@gmail.com>2010-09-05 13:54:07 +0000
commit59a95e87f7225adcbad28bf40b0e1f4f6071f59f (patch)
tree758c11758af8b8c119ad8db62542aeb3d08c2a26 /numpy
parent32a04c4586075ce4771b86cea1013b331afa02cd (diff)
downloadnumpy-59a95e87f7225adcbad28bf40b0e1f4f6071f59f.tar.gz
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)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/npy_pkg_config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/distutils/npy_pkg_config.py b/numpy/distutils/npy_pkg_config.py
index e559e8588..fed95b921 100644
--- a/numpy/distutils/npy_pkg_config.py
+++ b/numpy/distutils/npy_pkg_config.py
@@ -313,7 +313,8 @@ def _read_config_imp(filenames, dirs=None):
# 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