aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-03-01 23:19:36 -0800
committerAdam Vandenberg2014-03-01 23:19:36 -0800
commit6d8d6f1c454f9117c0ecf39c7d809df6b542300e (patch)
treee3fe71dfc198d3fcb9e9029d94b12bc30eee1472 /Library
parentbc508c36740981eeff58a80b5fdee712e7025ad5 (diff)
downloadhomebrew-6d8d6f1c454f9117c0ecf39c7d809df6b542300e.tar.bz2
add check for /Library Python
Closes #24788.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index ac2809cfc..2cd0cc4b9 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|