Merge pull request #32 from lynx-r/master

Move custom path of JPEG_ROOT, TIFF_ROOT, etc. before system.
This commit is contained in:
Alex Clark ☺ 2013-01-09 04:17:44 -08:00
commit a8304648af

View File

@ -91,6 +91,18 @@ class pil_build_ext(build_ext):
_add_directory(include_dirs, "libImaging")
#
# add configured kits
for root in (TCL_ROOT, JPEG_ROOT, TCL_ROOT, TIFF_ROOT, ZLIB_ROOT,
FREETYPE_ROOT, LCMS_ROOT):
if isinstance(root, type(())):
lib_root, include_root = root
else:
lib_root = include_root = root
_add_directory(library_dirs, lib_root)
_add_directory(include_dirs, include_root)
#
# add platform directories
@ -165,18 +177,6 @@ class pil_build_ext(build_ext):
else:
TCL_ROOT = None
#
# add configured kits
for root in (TCL_ROOT, JPEG_ROOT, TCL_ROOT, TIFF_ROOT, ZLIB_ROOT,
FREETYPE_ROOT, LCMS_ROOT):
if isinstance(root, type(())):
lib_root, include_root = root
else:
lib_root = include_root = root
_add_directory(library_dirs, lib_root)
_add_directory(include_dirs, include_root)
#
# add standard directories