[Python-checkins] cpython (2.7): Ensure setup.py looks for zlib.h in an OS X SDK.
ned.deily
python-checkins at python.org
Sat Oct 19 06:36:34 CEST 2013
http://hg.python.org/cpython/rev/c207ac413457
changeset: 86462:c207ac413457
branch: 2.7
parent: 86456:dbecb1f60965
user: Ned Deily <nad at acm.org>
date: Fri Oct 18 21:33:57 2013 -0700
summary:
Ensure setup.py looks for zlib.h in an OS X SDK.
files:
setup.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -1389,6 +1389,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:])
fp = open(zlib_h)
while 1:
line = fp.readline()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list