This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mathieu.Virbel
Recipients Mathieu.Virbel
Date 2013-10-25.15:49:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1382716186.29.0.0404891043563.issue19389@psf.upfronthosting.co.za>
In-reply-to
Content
With Maverick OSX (latest version), there is no /usr/include/zlib.h anymore. If you try to compile Python with -sysroot, it trigger a error message:

error: /usr/include/zlib.h: No such file or directory

The issue is in setup.py, where find_file is checking the existence of a filename, but if the filename has been found in a sysroot, it will return the path _without_ the sysroot.

In this case (zlib), find_file correctly find the zlib.h in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include/zlib.h, but return "/usr/include",  and then the setup.py open '/usr/include/zlib.h', which fail.
History
Date User Action Args
2013-10-25 15:49:46Mathieu.Virbelsetrecipients: + Mathieu.Virbel
2013-10-25 15:49:46Mathieu.Virbelsetmessageid: <1382716186.29.0.0404891043563.issue19389@psf.upfronthosting.co.za>
2013-10-25 15:49:46Mathieu.Virbellinkissue19389 messages
2013-10-25 15:49:45Mathieu.Virbelcreate