Merge pull request #5624 from radarhere/macos_zlib

This commit is contained in:
Hugo van Kemenade 2021-07-29 09:51:33 +03:00 committed by GitHub
commit e276655179
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -533,6 +533,8 @@ class pil_build_ext(build_ext):
_add_directory(include_dirs, "/usr/X11/include")
# SDK install path
sdk_path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
if not os.path.exists(sdk_path):
try:
sdk_path = (
subprocess.check_output(["xcrun", "--show-sdk-path"])