From 507c591e5bb9b850c9d996d8148cb669f1b5d62b Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Fri, 18 Oct 2013 21:32:00 -0700 Subject: [PATCH] Ensure setup.py looks for zlib.h in an OS X SDK. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 461d37901b4..fe2dd6e6d1c 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()