aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pip.rb
diff options
context:
space:
mode:
authorMax Howell2010-02-13 11:41:21 +0000
committerMax Howell2010-02-13 11:41:21 +0000
commit67a983b16311b42af3eea7d9f670b951147ffeb1 (patch)
tree1bbe3a68fd989523162a7a60dc64e0b2b203af82 /Library/Formula/pip.rb
parent63ffbe90c83fb06b22be4efb86b0ed1289f3f253 (diff)
downloadhomebrew-67a983b16311b42af3eea7d9f670b951147ffeb1.tar.bz2
Closes #711
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).
Diffstat (limited to 'Library/Formula/pip.rb')
-rw-r--r--Library/Formula/pip.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/pip.rb b/Library/Formula/pip.rb
index 55657dd5d..37d6d5b86 100644
--- a/Library/Formula/pip.rb
+++ b/Library/Formula/pip.rb
@@ -19,10 +19,16 @@ class Pip <Formula
(bin+'pip').write script
end
- def caveats
+ def two_line_instructions
"pip installs packages. Python packages.\n"+
"Run 'pip help' to see a list of commands."
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__