mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-04 20:40:11 +03:00
Merge a8c1db8eda
into 6395103f46
This commit is contained in:
commit
61cbeda09b
12
setup.py
12
setup.py
|
@ -201,9 +201,6 @@ class pil_build_ext(build_ext):
|
||||||
# darwin ports installation directories
|
# darwin ports installation directories
|
||||||
_add_directory(library_dirs, "/opt/local/lib")
|
_add_directory(library_dirs, "/opt/local/lib")
|
||||||
_add_directory(include_dirs, "/opt/local/include")
|
_add_directory(include_dirs, "/opt/local/include")
|
||||||
# freetype2 ships with X11
|
|
||||||
_add_directory(library_dirs, "/usr/X11/lib")
|
|
||||||
_add_directory(include_dirs, "/usr/X11/include")
|
|
||||||
# if homebrew is installed, use its lib and include directories
|
# if homebrew is installed, use its lib and include directories
|
||||||
import subprocess
|
import subprocess
|
||||||
try:
|
try:
|
||||||
|
@ -212,9 +209,16 @@ class pil_build_ext(build_ext):
|
||||||
prefix = prefix.strip()
|
prefix = prefix.strip()
|
||||||
_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'))
|
||||||
|
# freetype2 is a keg-only brew under opt/
|
||||||
|
_add_directory(library_dirs, os.path.join(prefix, 'opt', 'freetype', 'lib'))
|
||||||
|
_add_directory(include_dirs, os.path.join(prefix, 'opt', 'freetype', 'include'))
|
||||||
except:
|
except:
|
||||||
pass # homebrew not installed
|
pass # homebrew not installed
|
||||||
|
|
||||||
|
# freetype2 ships with X11 (after homebrew, so that homebrew freetype is prefered)
|
||||||
|
_add_directory(library_dirs, "/usr/X11/lib")
|
||||||
|
_add_directory(include_dirs, "/usr/X11/include")
|
||||||
|
|
||||||
elif sys.platform.startswith("linux"):
|
elif sys.platform.startswith("linux"):
|
||||||
for platform_ in (plat.processor(), plat.architecture()[0]):
|
for platform_ in (plat.processor(), plat.architecture()[0]):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user