mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Add environment variables for settings component prefixes
This commit is contained in:
parent
9bdb9d8bef
commit
ddb01ac67e
5
setup.py
5
setup.py
|
@ -245,6 +245,11 @@ class pil_build_ext(build_ext):
|
|||
IMAGEQUANT_ROOT="libimagequant"
|
||||
).items():
|
||||
root = globals()[root_name]
|
||||
|
||||
if root is None and root_name in os.environ:
|
||||
prefix = os.environ[root_name]
|
||||
root = (os.path.join(prefix, 'lib'), os.path.join(prefix, 'include'))
|
||||
|
||||
if root is None and pkg_config:
|
||||
if isinstance(lib_name, tuple):
|
||||
for lib_name2 in lib_name:
|
||||
|
|
Loading…
Reference in New Issue
Block a user