diff options
| author | Ned Deily <nad@acm.org> | 2013-10-19 04:34:58 (GMT) |
|---|---|---|
| committer | Ned Deily <nad@acm.org> | 2013-10-19 04:34:58 (GMT) |
| commit | 5ceae41083f3bec479fe8f135f442e6576c6e273 (patch) | |
| tree | 6eca777000b39e5d041396e2e5f7766431cd93f7 /setup.py | |
| parent | 29eec66711d82c04a5ba2cde478b9da995dcbbdb (diff) | |
| parent | 507c591e5bb9b850c9d996d8148cb669f1b5d62b (diff) | |
| download | cpython-5ceae41083f3bec479fe8f135f442e6576c6e273.zip cpython-5ceae41083f3bec479fe8f135f442e6576c6e273.tar.gz cpython-5ceae41083f3bec479fe8f135f442e6576c6e273.tar.bz2 | |
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() |
