aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSamuel John2013-08-08 15:21:58 +0200
committerSamuel John2013-08-08 15:21:58 +0200
commit18fe5beb6160ea9c7da3c31672358cd2a592ecb1 (patch)
treecf2a11c26ffe18b47ab8f4ccbe6fade32dff7f27 /Library/Formula
parent6c035e83bb35c448ee847a36f1dc72f9b8f76639 (diff)
downloadhomebrew-18fe5beb6160ea9c7da3c31672358cd2a592ecb1.tar.bz2
Revert "python: Remove outdated fix"
This reverts commit 59ebdf67cfa5cd8fcc6661e180e3bab2ab2ed6fb.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/python.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 06b14e8cc..809036484 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -166,6 +166,13 @@ class Python < Formula
_sre.MAXREPEAT = 65535 # this monkey-patches all other places of "from _sre import MAXREPEAT"'
EOS
+ # Fixes setting Python build flags for certain software
+ # See: https://github.com/mxcl/homebrew/pull/20182
+ # http://bugs.python.org/issue3588
+ inreplace "#{prefix}/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config/Makefile" do |s|
+ s.change_make_var! "LINKFORSHARED",
+ "-u _PyMac_Error $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)"
+ end
end
def distutils_fix_superenv(args)