python3: Quickfix for Homebrew/homebrew#15943 & Homebrew/homebrew#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 Homebrew/homebrew#16367. Fixes Homebrew/homebrew#16320. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
7a128ec452
commit
9238abfe63
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue