Python - update bin folder in caveats

Be more specific for Framework builds about where the binaries
folder is.

Fixes #2962
This commit is contained in:
Adam Vandenberg committed 2010-10-30 21:13:46 -07:00
1 parent 882d15c35c
commit 1bf35529f2
1 file changed
+12 -2
+12 -2
View File
@@ -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