Merge pull request #4842 from radarhere/zlib

Added homebrew zlib include directory
This commit is contained in:
Hugo van Kemenade 2020-08-23 14:57:01 +03:00 committed by GitHub
commit b9081d2238
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -479,6 +479,9 @@ class pil_build_ext(build_ext):
# add Homebrew's include and lib directories # add Homebrew's include and lib directories
_add_directory(library_dirs, os.path.join(prefix, "lib")) _add_directory(library_dirs, os.path.join(prefix, "lib"))
_add_directory(include_dirs, os.path.join(prefix, "include")) _add_directory(include_dirs, os.path.join(prefix, "include"))
_add_directory(
include_dirs, os.path.join(prefix, "opt", "zlib", "include")
)
ft_prefix = os.path.join(prefix, "opt", "freetype") ft_prefix = os.path.join(prefix, "opt", "freetype")
if ft_prefix and os.path.isdir(ft_prefix): if ft_prefix and os.path.isdir(ft_prefix):