From: Ned Deily Date: Sat, 19 Oct 2013 04:33:57 +0000 (-0700) Subject: Ensure setup.py looks for zlib.h in an OS X SDK. X-Git-Tag: v2.7.6rc1~19^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ea3c9b22a3e81e6484a30c1d64c6a859a40da6a;p=python Ensure setup.py looks for zlib.h in an OS X SDK. --- diff --git a/setup.py b/setup.py index bb7f29595d..de4392ff39 100644 --- a/setup.py +++ b/setup.py @@ -1389,6 +1389,8 @@ class PyBuildExt(build_ext): zlib_h = zlib_inc[0] + '/zlib.h' version = '"0.0.0"' version_req = '"1.1.3"' + if host_platform == 'darwin' and is_macosx_sdk_path(zlib_h): + zlib_h = os.path.join(macosx_sdk_root(), zlib_h[1:]) fp = open(zlib_h) while 1: line = fp.readline()