aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-14 15:03:36 -0500
committerJack Nagel2012-08-14 15:03:36 -0500
commit6d4452703808d6a80564f1c7c446c03fe05a14f8 (patch)
tree85c0c4cf767b17612926558bd26a44e681566952 /Library/Formula/python3.rb
parent3fb1ea753114f00946cbe3d346d645feac16a939 (diff)
downloadhomebrew-6d4452703808d6a80564f1c7c446c03fe05a14f8.tar.bz2
python3: 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/python3.rb')
-rw-r--r--Library/Formula/python3.rb15
1 files changed, 6 insertions, 9 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 72201806d..f177d0066 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -48,25 +48,22 @@ class Python3 < 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
- # If we're installed or installing as a Framework, then use that location.
- return prefix+"Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages"
+ prefix/"Frameworks/Python.framework/Versions/3.2/lib/python3.2/site-packages"
end
# The HOMEBREW_PREFIX location of site-packages.
def site_packages
- HOMEBREW_PREFIX+"lib/python3.2/site-packages"
+ HOMEBREW_PREFIX/"lib/python3.2/site-packages"
end
# Where distribute/pip will install executable scripts.
def scripts_folder
- HOMEBREW_PREFIX+"share/python3"
+ HOMEBREW_PREFIX/"share/python3"
end
- # lib folder,taking into account whether we are a Framework build or not
def effective_lib
- prefix+"Frameworks/Python.framework/Versions/3.2/lib"
+ prefix/"Frameworks/Python.framework/Versions/3.2/lib"
end
def install
@@ -106,13 +103,13 @@ class Python3 < Formula
# Remove the site-packages that Python created in its Cellar.
site_packages_cellar.rmtree
- # Create a site-packages in `brew --prefix`/lib/python3/site-packages
+ # Create a site-packages in HOMEBREW_PREFIX/lib/python3/site-packages
site_packages.mkpath
# Symlink the prefix site-packages into the cellar.
ln_s site_packages, site_packages_cellar
# "python3" and executable is forgotten for framework builds.
- # Make sure homebrew symlinks it to `brew --prefix`/bin.
+ # Make sure homebrew symlinks it to HOMEBREW_PREFIX/bin.
ln_s "#{bin}/python3.2", "#{bin}/python3" unless (bin/"python3").exist?
# Python 2 has a 2to3, too. (https://github.com/mxcl/homebrew/issues/12581)