From 807ed361295bd043241248421a45c5baa3e76006 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 18 Dec 2011 08:36:44 -0800 Subject: [PATCH] doctor: check for Enthought Python --- Library/Homebrew/cmd/doctor.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index b702888e89..eb9ec885f9 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -799,6 +799,18 @@ def check_git_version end end +def check_for_enthought_python + return unless system "/usr/bin/which -s enpkg" + puts <<-EOS.undent + Enthought Python was found in your PATH. + + This can cause build problems, as this software installs its own + copies of iconv and libxml2 into folders that are picked up by + other build systems. + + EOS +end + module Homebrew extend self def doctor old_stdout = $stdout @@ -844,6 +856,7 @@ module Homebrew extend self check_git_status check_for_leopard_ssl check_git_version + check_for_enthought_python ensure $stdout = old_stdout end