Warn user that pip breaks if the .pydistutils.cfg file exists (or at least if it has certain keys in it, but exists is easier to explain).
This commit is contained in:
Max Howell 2010-02-13 11:41:21 +00:00
parent 7ea6a8b9f0
commit 28847c12d5

View file

@ -19,10 +19,16 @@ class Pip <Formula
(bin+'pip').write script (bin+'pip').write script
end end
def caveats def two_line_instructions
"pip installs packages. Python packages.\n"+ "pip installs packages. Python packages.\n"+
"Run 'pip help' to see a list of commands." "Run 'pip help' to see a list of commands."
end end
# http://github.com/mxcl/homebrew/issues/issue/711
def caveats
cfg = '~/.pydistutils.cfg'
"pip will break unless you delete your #{cfg} file!" if File.exist?(File.expand_path(cfg))
end
end end
__END__ __END__