Mercurial > cpython-lru_cache-weakref
diff setup.py @ 86463:2d8d5fea6194 3.3
Ensure setup.py looks for zlib.h in an OS X SDK.
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Fri, 18 Oct 2013 21:32:00 -0700 |
| parents | e5607874e8ff |
| children | d7662958b27a f3a2dab1623b |
line wrap: on
line diff
--- a/setup.py Fri Oct 18 20:41:16 2013 -0700 +++ b/setup.py Fri Oct 18 21:32:00 2013 -0700 @@ -1313,6 +1313,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()
