commit | 5ceae41083f3bec479fe8f135f442e6576c6e273 | [log] [tgz] |
---|---|---|
author | Ned Deily <nad@acm.org> | Fri Oct 18 21:34:58 2013 -0700 |
committer | Ned Deily <nad@acm.org> | Fri Oct 18 21:34:58 2013 -0700 |
tree | 6eca777000b39e5d041396e2e5f7766431cd93f7 | |
parent | 29eec66711d82c04a5ba2cde478b9da995dcbbdb [diff] | |
parent | 507c591e5bb9b850c9d996d8148cb669f1b5d62b [diff] |
Ensure setup.py looks for zlib.h in an OS X SDK.
diff --git a/setup.py b/setup.py index ad7e320..c6ae1b2 100644 --- a/setup.py +++ b/setup.py
@@ -1326,6 +1326,8 @@ 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()