- 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:
Samuel John 2012-12-03 14:37:46 +01:00 committed by Adam Vandenberg
parent 7a128ec452
commit 9238abfe63

View file

@ -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)