mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-14 10:03:30 +03:00
Prefer command line tools SDK on macOS
This commit is contained in:
parent
426b730d3b
commit
e7270eb5a1
2
setup.py
2
setup.py
|
@ -533,6 +533,8 @@ class pil_build_ext(build_ext):
|
||||||
_add_directory(include_dirs, "/usr/X11/include")
|
_add_directory(include_dirs, "/usr/X11/include")
|
||||||
|
|
||||||
# SDK install path
|
# SDK install path
|
||||||
|
sdk_path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
|
||||||
|
if not os.path.exists(sdk_path):
|
||||||
try:
|
try:
|
||||||
sdk_path = (
|
sdk_path = (
|
||||||
subprocess.check_output(["xcrun", "--show-sdk-path"])
|
subprocess.check_output(["xcrun", "--show-sdk-path"])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user