mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
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:
parent
853453b934
commit
e09ee7a5df
2
setup.py
2
setup.py
|
@ -111,7 +111,7 @@ def _find_library_dirs_ldconfig():
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
env=env)
|
env=env)
|
||||||
except OSError: # E.g. command not found
|
except OSError: # E.g. command not found
|
||||||
return None
|
return []
|
||||||
[data, _] = p.communicate()
|
[data, _] = p.communicate()
|
||||||
if isinstance(data, bytes):
|
if isinstance(data, bytes):
|
||||||
data = data.decode()
|
data = data.decode()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user