mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-24 20:14:13 +03:00
Merge 2b8225615b
into 16210705f0
This commit is contained in:
commit
d92a55ad87
13
setup.py
13
setup.py
|
@ -203,10 +203,15 @@ class pil_build_ext(build_ext):
|
||||||
# FIXME: check /opt/stuff directories here?
|
# FIXME: check /opt/stuff directories here?
|
||||||
|
|
||||||
# include, rpath, if set as environment variables:
|
# include, rpath, if set as environment variables:
|
||||||
if os.environ.get('C_INCLUDE_PATH'):
|
for k in 'C_INCLUDE_PATH INCLUDE'.split():
|
||||||
_add_directory(include_dirs, os.environ.get('C_INCLUDE_PATH'))
|
if k in os.environ:
|
||||||
if os.environ.get('LD_RUN_PATH'):
|
for d in os.environ[k].split(os.path.pathsep):
|
||||||
_add_directory(library_dirs, os.environ.get('LD_RUN_PATH'))
|
_add_directory(include_dirs, d)
|
||||||
|
|
||||||
|
for k in 'LD_RUN_PATH LIBRARY_PATH LIB'.split():
|
||||||
|
if k in os.environ:
|
||||||
|
for d in os.environ[k].split(os.path.pathsep):
|
||||||
|
_add_directory(library_dirs, d)
|
||||||
|
|
||||||
prefix = sysconfig.get_config_var("prefix")
|
prefix = sysconfig.get_config_var("prefix")
|
||||||
if prefix:
|
if prefix:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user