From 2eb4f5b12d65e06512191df8a72f2587cbf643c8 Mon Sep 17 00:00:00 2001 From: samueljohn Date: Mon, 8 Oct 2012 12:26:48 +0200 Subject: python: For Xcode-only, add the the Tk header dir Closes #15351. Signed-off-by: Adam Vandenberg --- Library/Formula/python.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Library') diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 588825c3f..ec19c610a 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -191,6 +191,8 @@ class Python < Formula # Help Python's build system (distribute/pip) to build things on Xcode-only systems # The setup.py looks at "-isysroot" to get the sysroot (and not at --sysroot) cflags += " -isysroot #{MacOS.sdk_path}" + # For the Xlib.h, Python needs this header dir + cflags += " -I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers" ldflags += " -isysroot #{MacOS.sdk_path}" # Same zlib.h-not-found-bug as in env :std (see below) args << "CPPFLAGS=-I#{MacOS.sdk_path}/usr/include" -- cgit v1.2.3