aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSamuel John2013-08-08 11:55:45 +0200
committerSamuel John2013-08-08 11:55:45 +0200
commit5bb82e30713683a81955435f02724dad6c20663a (patch)
tree1493bcc6c10b84d74288a5ba28a1665a68a45c29 /Library
parenta73012def4fb97348cf89dd27866097872bafb5d (diff)
downloadbrew-5bb82e30713683a81955435f02724dad6c20663a.tar.bz2
Improve docs for Formula#python (python_helper)
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 09191fed1..ed0565456 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -307,6 +307,10 @@ class Formula
]
end
+ # Install python bindings inside of a block given to this method and/or
+ # call python so: `system python, "setup.py", "install", "--prefix=#{prefix}"
+ # Note that there are no quotation marks around python!
+ # <https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python>
def python(options={:allowed_major_versions => [2, 3]}, &block)
require 'python_helper'
python_helper(options, &block)