commit | 6ea3c9b22a3e81e6484a30c1d64c6a859a40da6a | [log] [tgz] |
---|---|---|
author | Ned Deily <nad@acm.org> | Fri Oct 18 21:33:57 2013 -0700 |
committer | Ned Deily <nad@acm.org> | Fri Oct 18 21:33:57 2013 -0700 |
tree | 5becc6c60c003ab8b87f7953e5cc50836b241be8 | |
parent | 11f880a73b71e6843b5d697a2a181fda37c4983f [diff] |
Ensure setup.py looks for zlib.h in an OS X SDK.
diff --git a/setup.py b/setup.py index bb7f295..de4392f 100644 --- a/setup.py +++ b/setup.py
@@ -1389,6 +1389,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:]) fp = open(zlib_h) while 1: line = fp.readline()