Skip to content

Commit

Permalink
Added homebrew zlib include directory
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 6, 2020
1 parent d1daff8 commit be88172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,9 @@ def build_extensions(self):
_add_directory(library_dirs, os.path.join(prefix, "lib"))
_add_directory(include_dirs, os.path.join(prefix, "include"))
ft_prefix = os.path.join(prefix, "opt", "freetype")
zlib_prefix = os.path.join(prefix, "opt", "zlib")
if zlib_prefix and os.path.isdir(zlib_prefix):
_add_directory(include_dirs, os.path.join(zlib_prefix, "include"))

if ft_prefix and os.path.isdir(ft_prefix):
# freetype might not be linked into Homebrew's prefix
Expand Down

0 comments on commit be88172

Please sign in to comment.