From 212dc98003011687be2178b88d724448417cae37 Mon Sep 17 00:00:00 2001 From: samueljohn Date: Mon, 4 Jun 2012 11:36:11 +0200 Subject: [PATCH] doctor: check for ~/.pydistutils.cfg Closes Homebrew/homebrew#12363. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/doctor.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index a19a2d17e0..619ceaa4ee 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -876,6 +876,16 @@ def check_for_bad_python_symlink end end +def check_for_pydistutils_cfg_in_home + if File.exist? ENV['HOME']+'/.pydistutils.cfg' then <<-EOS.undent + A .pydistutils.cfg file was found in $HOME, which may cause Python + builds to fail. See: + http://bugs.python.org/issue6138 + http://bugs.python.org/issue4655 + EOS + end +end + def check_for_outdated_homebrew return unless which 'git' HOMEBREW_REPOSITORY.cd do