From 31ba693f2344d75bd120845077a9caf26c427dd9 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Mon, 3 Dec 2012 14:37:46 +0100 Subject: 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 --- Library/Formula/python3.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula/python3.rb') 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) -- cgit v1.2.3