aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamueljohn2012-10-08 12:26:48 +0200
committerAdam Vandenberg2012-10-08 08:47:55 -0700
commit2eb4f5b12d65e06512191df8a72f2587cbf643c8 (patch)
tree39a76d133ffc8164bf176175edfc1ec5ee0c3dc4
parenta60a55667a6296932bbb0ec79c860698be2ddfe7 (diff)
downloadhomebrew-2eb4f5b12d65e06512191df8a72f2587cbf643c8.tar.bz2
python: For Xcode-only, add the the Tk header dir
Closes #15351. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/python.rb2
1 files changed, 2 insertions, 0 deletions
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"