Fix build for Termux

`_find_library_dirs_ldconfig` can return an empty list when `ldconfig` is missing, then `setup.py` can continue guessing library directories.

fixes #3526
This commit is contained in:
Pedro Lacerda 2019-01-02 13:38:33 -03:00 committed by GitHub
parent 853453b934
commit e09ee7a5df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ def _find_library_dirs_ldconfig():
stdout=subprocess.PIPE,
env=env)
except OSError: # E.g. command not found
return None
return []
[data, _] = p.communicate()
if isinstance(data, bytes):
data = data.decode()