diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/npy_pkg_config.py | 3 |
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 |