Force sip to build against the system (Framework) Python.

Fixes Homebrew/homebrew#930
master
Adam Vandenberg 2010-06-16 14:06:54 -07:00
parent 91dc741d95
commit 5db2cefb7e
1 changed files with 7 additions and 7 deletions

View File

@ -9,19 +9,19 @@ class Sip <Formula
md5 '52d11ca9c1a0d0cddc9b89268bff5929' md5 '52d11ca9c1a0d0cddc9b89268bff5929'
def install def install
system "python", "configure.py", "--destdir=#{lib}/python", # Force building against System python, because we need a Framework build.
"--bindir=#{bin}", # See: http://github.com/mxcl/homebrew/issues/issue/930
"--incdir=#{include}" system "/usr/bin/python", "configure.py",
"--destdir=#{lib}/python",
"--bindir=#{bin}",
"--incdir=#{include}"
system "make install" system "make install"
end end
def caveats; <<-EOS.undent def caveats; <<-EOS
This formula won't function until you amend your PYTHONPATH like so: This formula won't function until you amend your PYTHONPATH like so:
export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH 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 EOS
end end
end end