From: Ned Deily Date: Sat, 19 Oct 2013 04:32:00 +0000 (-0700) Subject: Ensure setup.py looks for zlib.h in an OS X SDK. X-Git-Tag: v3.4.0a4~37^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=507c591e5bb9b850c9d996d8148cb669f1b5d62b;p=python Ensure setup.py looks for zlib.h in an OS X SDK. --- diff --git a/setup.py b/setup.py index 461d37901b..fe2dd6e6d1 100644 --- a/setup.py +++ b/setup.py @@ -1313,6 +1313,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:]) with open(zlib_h) as fp: while 1: line = fp.readline()