diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index ac2809cfc68cc5766e5d7d04e45393f383d308f2..2cd0cc4b9ab2bff2741909398b1b685dce466449 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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|