diff options
author | Julian Taylor <jtaylor.debian@googlemail.com> | 2016-01-13 19:00:11 +0100 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2016-01-13 19:00:11 +0100 |
commit | df70490874e33e1fad18720f5c74fb5e319c9e06 (patch) | |
tree | a8eb50e7768c628ae955dafc05a1cc28e643d969 /numpy | |
parent | bdd4558c2643c93957b7f00f2604da33ee72f83d (diff) | |
download | numpy-df70490874e33e1fad18720f5c74fb5e319c9e06.tar.gz |
BUG: skip invalid path distutils warning for empty strings
empty strings are the default for the new rpath,
extra_compile_args and extra_link_args sections
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/system_info.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py index dde18dfa5..d7b9bfbed 100644 --- a/numpy/distutils/system_info.py +++ b/numpy/distutils/system_info.py @@ -629,7 +629,7 @@ class system_info(object): dirs.extend(default_dirs) ret = [] for d in dirs: - if not os.path.isdir(d): + if len(d) > 0 and not os.path.isdir(d): warnings.warn('Specified path %s is invalid.' % d) continue |