aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-12-18 08:36:44 -0800
committerAdam Vandenberg2011-12-18 08:36:44 -0800
commit807ed361295bd043241248421a45c5baa3e76006 (patch)
treeae69095360702b41b17be56989fa70456fff3794 /Library
parent0a5592d2032b690b838dd7021b7f9844da660363 (diff)
downloadbrew-807ed361295bd043241248421a45c5baa3e76006.tar.bz2
doctor: check for Enthought Python
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index b702888e8..eb9ec885f 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