aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorSimon Ye2015-04-01 00:40:44 -0400
committerMike McQuaid2015-04-02 11:30:26 +0100
commitcc48921ede4c70fce0fcf87d3169d9359917a59c (patch)
treee86bedb7b16beb8f91ff672bb51af576d1fb6d53 /Library/Formula/python3.rb
parent4fd7da3c911731a133b4fa3117bd124ff9c6ebf4 (diff)
downloadhomebrew-cc48921ede4c70fce0fcf87d3169d9359917a59c.tar.bz2
python3: use lib_cellar variable for consistency.
Makes it more in line with python2 and easier downstream merges with linuxbrew. Closes #38257. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index c1ef10bc2..adbac7a6a 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -50,8 +50,12 @@ class Python3 < Formula
# X11.
patch :DATA if build.with? "brewed-tk"
+ def lib_cellar
+ prefix/"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}"
+ end
+
def site_packages_cellar
- prefix/"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}/site-packages"
+ lib_cellar/"site-packages"
end
# The HOMEBREW_PREFIX location of site-packages.
@@ -194,7 +198,7 @@ class Python3 < Formula
end
# And now we write the distutils.cfg
- cfg = prefix/"Frameworks/Python.framework/Versions/#{xy}/lib/python#{xy}/distutils/distutils.cfg"
+ cfg = lib_cellar/"distutils/distutils.cfg"
cfg.atomic_write <<-EOF.undent
[global]
verbose=1