diff options
| author | Adam Vandenberg | 2010-10-30 21:13:46 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-30 21:13:46 -0700 |
| commit | 1bf35529f228c19b98fb494953c6002a800e4ed6 (patch) | |
| tree | 494155130a4091d7c1415f69c663970ea3e62bef /Library/Formula/python.rb | |
| parent | 882d15c35ce4c66bb1c625d3c2a265f3e231215a (diff) | |
| download | homebrew-1bf35529f228c19b98fb494953c6002a800e4ed6.tar.bz2 | |
Python - update bin folder in caveats
Be more specific for Framework builds about where the binaries
folder is.
Fixes #2962
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 4d55a791f..8d0f5bc44 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -73,11 +73,21 @@ class Python <Formula # If we're installed or installing as a Framework, then use that location. return prefix+"Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages" else - # Otherwise, use just the lib path. + # Otherwise use just 'lib' return lib+"python2.7/site-packages" end end + def exec_prefix + if as_framework? + # If we're installed or installing as a Framework, then use that location. + return prefix+"Frameworks/Python.framework/Versions/2.7/bin" + else + # Otherwise just use 'bin' + return bin + end + end + def prefix_site_packages # The HOMEBREW_PREFIX location of site-packages HOMEBREW_PREFIX+"lib/python2.7/site-packages" @@ -149,7 +159,7 @@ class Python <Formula If you install Python packages via pip, binaries will be installed under Python's cellar but not automatically linked into the Homebrew prefix. You may want to add Python's bin folder to your PATH as well: - #{bin} + #{exec_prefix} EOS s = site_caveats+general_caveats |
