Commit d651f7ec authored by Ned Deily's avatar Ned Deily

Ensure setup.py looks for zlib.h in an OS X SDK.

parent 2cac3b6e
...@@ -1389,6 +1389,8 @@ class PyBuildExt(build_ext): ...@@ -1389,6 +1389,8 @@ class PyBuildExt(build_ext):
zlib_h = zlib_inc[0] + '/zlib.h' zlib_h = zlib_inc[0] + '/zlib.h'
version = '"0.0.0"' version = '"0.0.0"'
version_req = '"1.1.3"' 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) fp = open(zlib_h)
while 1: while 1:
line = fp.readline() line = fp.readline()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment