aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorSamuel John2012-12-03 14:37:46 +0100
committerAdam Vandenberg2012-12-03 10:11:11 -0800
commit31ba693f2344d75bd120845077a9caf26c427dd9 (patch)
tree98a29aeeb1b2717119b38bb90598f769447c7481 /Library/Formula/python3.rb
parentdf6892da7f56eedae6e429bb4710011969561062 (diff)
downloadhomebrew-31ba693f2344d75bd120845077a9caf26c427dd9.tar.bz2
python3: Quickfix for #15943 & #16320.
- This is a temporary fix which removes the "Headers", "Python" and "Resources" symlinks from the `Python.framework`, such that both, python and python3 can be linked at the same time. Closes #16367. Fixes #16320. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index d903722a7..08e39ccee 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -144,6 +144,13 @@ class Python3 < Formula
end
end
+ # A temporary fix, until a homebrew
+ # [issue on handling Frameworks](https://github.com/mxcl/homebrew/issues/15943)
+ # is resolved. `brew install python python3` failed to link because both
+ # provide `Python.Framework`. Homebrew will need to be smarter about this,
+ # since Frameworks are built to support multiple versions.
+ ["Headers", "Python", "Resources"].each{ |f| rm(prefix/"Frameworks/Python.Framework/#{f}") }
+
end
def distutils_fix_superenv(args)