summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2013-10-19 04:32:00 (GMT)
committerNed Deily <nad@acm.org>2013-10-19 04:32:00 (GMT)
commit507c591e5bb9b850c9d996d8148cb669f1b5d62b (patch)
tree92df9ed825397deebd2b08c53dcd545034362aff /setup.py
parentac25ca10ed5ce8fabc6112cc00fe9e911344d095 (diff)
downloadcpython-507c591e5bb9b850c9d996d8148cb669f1b5d62b.zip
cpython-507c591e5bb9b850c9d996d8148cb669f1b5d62b.tar.gz
cpython-507c591e5bb9b850c9d996d8148cb669f1b5d62b.tar.bz2
Ensure setup.py looks for zlib.h in an OS X SDK.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 461d379..fe2dd6e 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()