diff options
author | Ned Deily <nad@acm.org> | 2013-10-18 21:34:58 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2013-10-18 21:34:58 -0700 |
commit | e154811d2c76594df3747742eed90631576e18bc (patch) | |
tree | f2c3a457f71ae0283c5c45b0fe69826ae8f650f0 /setup.py | |
parent | 438a55b261da79dfaf3b2ecbb39fd746c0e71171 (diff) | |
parent | 22939c1c2911b6c9ec6a74f41badd0bacf97f7a1 (diff) | |
download | cpython-e154811d2c76594df3747742eed90631576e18bc.tar.gz |
Ensure setup.py looks for zlib.h in an OS X SDK.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1326,6 +1326,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() |