aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorsamueljohn2012-06-04 11:36:11 +0200
committerJack Nagel2012-06-26 19:41:22 -0500
commit8b5c5910e2fc697a1572d35f7c3f924f5e47307d (patch)
tree813c4407c9af05dec03cd12a80699d61dfe1fa34 /Library
parent6ba6dc0c7da9f5f5f1ba3d2619fa27efd27aa738 (diff)
downloadhomebrew-8b5c5910e2fc697a1572d35f7c3f924f5e47307d.tar.bz2
doctor: check for ~/.pydistutils.cfg
Closes #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