From e09ee7a5df7a0355ebae33f05ec027732d75e078 Mon Sep 17 00:00:00 2001 From: Pedro Lacerda Date: Wed, 2 Jan 2019 13:38:33 -0300 Subject: [PATCH] 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 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 08184467a..46114f788 100755 --- a/setup.py +++ b/setup.py @@ -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()