add check for /Library Python

Closes Homebrew/homebrew#24788.
This commit is contained in:
Adam Vandenberg 2014-03-01 23:19:36 -08:00
parent 47f22d20af
commit 95d7776a90

View File

@ -948,6 +948,17 @@ def check_for_enthought_python
end
end
def check_for_library_python
if File.exist?("/Library/Frameworks/Python.framework") then <<-EOS.undent
A Python is installed in /Library/Frameworks
Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.
EOS
end
end
def check_for_old_homebrew_share_python_in_path
s = ''
['', '3'].map do |suffix|