[Python-checkins] cpython (3.3): Ensure setup.py looks for zlib.h in an OS X SDK.

ned.deily python-checkins at python.org
Sat Oct 19 06:36:35 CEST 2013


http://hg.python.org/cpython/rev/2d8d5fea6194
changeset:   86463:2d8d5fea6194
branch:      3.3
parent:      86457:b3501bdfc164
user:        Ned Deily <nad at acm.org>
date:        Fri Oct 18 21:32:00 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
@@ -1313,6 +1313,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:])
             with open(zlib_h) as fp:
                 while 1:
                     line = fp.readline()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list