mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Add respective paths for C_INCLUDE_PATH, LD_RUN_PATH (rpath) to build if specified as environment variables.
This commit is contained in:
parent
588e6f88b7
commit
1869ed5272
|
@ -4,6 +4,10 @@ Changelog (Pillow)
|
|||
2.2.0 (2013-10-01)
|
||||
------------------
|
||||
|
||||
- Add respective paths for C_INCLUDE_PATH, LD_RUN_PATH (rpath) to build
|
||||
if specified as environment variables.
|
||||
[seanupton]
|
||||
|
||||
- Fix Issue #312 + gif optimize improvement
|
||||
[d-schmidt]
|
||||
|
||||
|
|
6
setup.py
6
setup.py
|
@ -196,6 +196,12 @@ class pil_build_ext(build_ext):
|
|||
_add_directory(library_dirs, "/usr/local/lib")
|
||||
# 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'))
|
||||
|
||||
prefix = sysconfig.get_config_var("prefix")
|
||||
if prefix:
|
||||
_add_directory(library_dirs, os.path.join(prefix, "lib"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user