aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorsamueljohn2012-06-04 11:36:11 +0200
committerJack Nagel2012-06-26 19:41:22 -0500
commit212dc98003011687be2178b88d724448417cae37 (patch)
tree91c0e264d398a873a76d73f37b04d3831db13270 /Library
parent87543a69168f9c6ed0aa7bf0471efac7d449fd85 (diff)
downloadbrew-212dc98003011687be2178b88d724448417cae37.tar.bz2
doctor: check for ~/.pydistutils.cfg
Closes Homebrew/homebrew#12363. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index a19a2d17e..619ceaa4e 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