mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 09:15:46 +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?
|
||||
|
||||
# include, rpath, if set as environment variables:
|
||||
if os.environ.get('C_INCLUDE_PATH'):
|
||||
_add_directory(include_dirs, os.environ.get('C_INCLUDE_PATH'))
|
||||
if os.environ.get('LD_RUN_PATH'):
|
||||
_add_directory(library_dirs, os.environ.get('LD_RUN_PATH'))
|
||||
for k in 'C_INCLUDE_PATH INCLUDE'.split():
|
||||
if k in os.environ:
|
||||
for d in os.environ[k].split(os.path.pathsep):
|
||||
_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")
|
||||
if prefix:
|
||||
|
|
Loading…
Reference in New Issue
Block a user