Skip to content

Commit 507c591

Browse files
committed
Ensure setup.py looks for zlib.h in an OS X SDK.
1 parent ac25ca1 commit 507c591

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,8 @@ class db_found(Exception): pass
13131313
zlib_h = zlib_inc[0] + '/zlib.h'
13141314
version = '"0.0.0"'
13151315
version_req = '"1.1.3"'
1316+
if host_platform == 'darwin' and is_macosx_sdk_path(zlib_h):
1317+
zlib_h = os.path.join(macosx_sdk_root(), zlib_h[1:])
13161318
with open(zlib_h) as fp:
13171319
while 1:
13181320
line = fp.readline()

0 commit comments

Comments
 (0)