aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sip.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/sip.rb')
-rw-r--r--Library/Formula/sip.rb23
1 files changed, 19 insertions, 4 deletions
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb
index becfbf2ce..76fb3e762 100644
--- a/Library/Formula/sip.rb
+++ b/Library/Formula/sip.rb
@@ -13,10 +13,8 @@ class Sip <Formula
end
def install
- # Force building against System python, because we need a Framework build.
- # See: http://github.com/mxcl/homebrew/issues/issue/930
- system "/usr/bin/python", "build.py", "prepare"
- system "/usr/bin/python", "configure.py",
+ system "python", "build.py", "prepare"
+ system "python", "configure.py",
"--destdir=#{lib}/python",
"--bindir=#{bin}",
"--incdir=#{include}"
@@ -55,3 +53,20 @@ index 927d7f1..fdf13a3 100755
major, minor, micro = version
+
+Another patch to remove the seemingly unnecessary framework build requirement
+diff --git a/siputils.py b/siputils.py
+index 57e8911..1af6152 100644
+--- a/siputils.py
++++ b/siputils.py
+@@ -1423,8 +1423,8 @@ class ModuleMakefile(Makefile):
+ # 'real_prefix' exists if virtualenv is being used.
+ dl = getattr(sys, 'real_prefix', sys.exec_prefix).split(os.sep)
+
+- if "Python.framework" not in dl:
+- error("SIP requires Python to be built as a framework")
++ # if "Python.framework" not in dl:
++ # error("SIP requires Python to be built as a framework")
+
+ self.LFLAGS.append("-undefined dynamic_lookup")
+