aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-06-16 14:06:54 -0700
committerAdam Vandenberg2010-06-16 14:06:54 -0700
commitfee76dece4e2ef5845e36b41737de7f5b96e7ebb (patch)
tree149f4bbec738f5be98078f067205fb5800a19f8f
parent1f90682753c644bc2853a8b8650af8d0466791e3 (diff)
downloadhomebrew-fee76dece4e2ef5845e36b41737de7f5b96e7ebb.tar.bz2
Force sip to build against the system (Framework) Python.
Fixes #930
-rw-r--r--Library/Formula/sip.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb
index cad9d617e..815ff5793 100644
--- a/Library/Formula/sip.rb
+++ b/Library/Formula/sip.rb
@@ -9,19 +9,19 @@ class Sip <Formula
md5 '52d11ca9c1a0d0cddc9b89268bff5929'
def install
- system "python", "configure.py", "--destdir=#{lib}/python",
- "--bindir=#{bin}",
- "--incdir=#{include}"
+ # Force building against System python, because we need a Framework build.
+ # See: http://github.com/mxcl/homebrew/issues/issue/930
+ system "/usr/bin/python", "configure.py",
+ "--destdir=#{lib}/python",
+ "--bindir=#{bin}",
+ "--incdir=#{include}"
system "make install"
end
- def caveats; <<-EOS.undent
+ def caveats; <<-EOS
This formula won't function until you amend your PYTHONPATH like so:
export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH
-
- This is why you would ideally install sip using pip or easy_install. But this
- can't work because this package doesn't support Python's disttools.
EOS
end
end