From cc48921ede4c70fce0fcf87d3169d9359917a59c Mon Sep 17 00:00:00 2001 From: Simon Ye Date: Wed, 1 Apr 2015 00:40:44 -0400 Subject: 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 --- Library/Formula/python3.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula/python3.rb') 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 -- cgit v1.2.3