aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-14 15:02:23 -0500
committerJack Nagel2012-08-14 15:02:54 -0500
commit3fb1ea753114f00946cbe3d346d645feac16a939 (patch)
treeed103a5c369c5ba1e9ae75ded5dbc73bc28c6786 /Library/Formula/python.rb
parentc6dee782206c77700ea10224e516b9f0cc935a78 (diff)
downloadhomebrew-3fb1ea753114f00946cbe3d346d645feac16a939.tar.bz2
python: update comments
We only offer framework builds, so remove comments that suggest otherwise. Use HOMEBREW_PREFIX instead of `brew --prefix`, as that is what is available inside of the formula, and how it is referenced elsewhere in Homebrew. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 4a69dcb8a..804a6f6fd 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -43,25 +43,22 @@ class Python < Formula
# Skip binaries so modules will load; skip lib because it is mostly Python files
skip_clean ['bin', 'lib']
- # The Cellar location of site-packages (different for Framework builds)
def site_packages_cellar
- # We're installed or installing as a Framework, then use that location.
- prefix+"Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"
+ prefix/"Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"
end
# The HOMEBREW_PREFIX location of site-packages.
def site_packages
- HOMEBREW_PREFIX+"lib/python2.7/site-packages"
+ HOMEBREW_PREFIX/"lib/python2.7/site-packages"
end
# Where distribute/pip will install executable scripts.
def scripts_folder
- HOMEBREW_PREFIX+"share/python"
+ HOMEBREW_PREFIX/"share/python"
end
- # lib folder,taking into account whether we are a Framework build or not
def effective_lib
- prefix+"Frameworks/Python.framework/Versions/2.7/lib"
+ prefix/"Frameworks/Python.framework/Versions/2.7/lib"
end
def install
@@ -112,7 +109,7 @@ class Python < Formula
# Remove the site-packages that Python created in its Cellar.
site_packages_cellar.rmtree
- # Create a site-packages in `brew --prefix`/lib/python/site-packages
+ # Create a site-packages in HOMEBREW_PREFIX/lib/python/site-packages
site_packages.mkpath
# Symlink the prefix site-packages into the cellar.
ln_s site_packages, site_packages_cellar