aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-06-03 20:56:25 +0200
committerSamuel John2013-06-03 20:56:25 +0200
commit183ab353064cbc83ef193427cf06add9427ae120 (patch)
tree958848909857df3d51efa3800b3838a0c1f09df3 /Library/Formula
parente41b9d0eb69921649f771633f067142e8e4df066 (diff)
downloadhomebrew-183ab353064cbc83ef193427cf06add9427ae120.tar.bz2
mercurial: XCode-only system py: Find Python.h
Fix #18517
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mercurial.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/mercurial.rb b/Library/Formula/mercurial.rb
index 15bca201f..650c8dfda 100644
--- a/Library/Formula/mercurial.rb
+++ b/Library/Formula/mercurial.rb
@@ -21,6 +21,12 @@ class Mercurial < Formula
bash_completion.install 'contrib/bash_completion' => 'hg-completion.bash'
python do
+ if python.from_osx? && !MacOS::CLT.installed?
+ # Help castrated system python on Xcode find the Python.h:
+ # Setting CFLAGS does not work :-(
+ # ENV['CFLAGS'] = "-I#{python.incdir}"
+ inreplace 'setup.py', 'get_python_inc()', "'#{python.incdir}'"
+ end
system "make doc" if build.head? or build.include? 'doc'
system "make local"