Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ceae41

Browse files
committed
Ensure setup.py looks for zlib.h in an OS X SDK.
2 parents 29eec66 + 507c591 commit 5ceae41

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1326,6 +1326,8 @@ class db_found(Exception): pass
13261326
zlib_h = zlib_inc[0] + '/zlib.h'
13271327
version = '"0.0.0"'
13281328
version_req = '"1.1.3"'
1329+
if host_platform == 'darwin' and is_macosx_sdk_path(zlib_h):
1330+
zlib_h = os.path.join(macosx_sdk_root(), zlib_h[1:])
13291331
with open(zlib_h) as fp:
13301332
while 1:
13311333
line = fp.readline()

0 commit comments

Comments
 (0)