1 parent 3fe4cee commit 7d69c7bCopy full SHA for 7d69c7b
1 file changed
setup.py
@@ -1313,6 +1313,8 @@ class db_found(Exception): pass
1313
zlib_h = zlib_inc[0] + '/zlib.h'
1314
version = '"0.0.0"'
1315
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:])
1318
with open(zlib_h) as fp:
1319
while 1:
1320
line = fp.readline()
0 commit comments