aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-31 01:04:45 -0500
committerJack Nagel2014-03-31 01:04:45 -0500
commitc94a6b5625a4674e17d1a5540473ab17e976fed6 (patch)
tree37035839d52d57408e55f4e7db84ba3a2fb34d69 /Library/Formula/python3.rb
parent6f224504b4b60429525f92606b7fe9056e967dae (diff)
downloadhomebrew-c94a6b5625a4674e17d1a5540473ab17e976fed6.tar.bz2
python3: bring sitecustomize in sync with python2
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 92d59b51c..4d69a53a6 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -224,7 +224,7 @@ class Python3 < Formula
' You should `unset PYTHONPATH` to fix this.')
else:
# Only do this for a brewed python:
- opt_executable = '#{HOMEBREW_PREFIX}/opt/python3/bin/python#{VER}'
+ opt_executable = '#{opt_bin}/python#{VER}'
if os.path.realpath(sys.executable) == os.path.realpath(opt_executable):
# Remove /System site-packages, and the Cellar site-packages
# which we moved to lib/pythonX.Y/site-packages. Further, remove
@@ -241,7 +241,7 @@ class Python3 < Formula
# Assume Framework style build (default since months in brew)
try:
from _sysconfigdata import build_time_vars
- build_time_vars['LINKFORSHARED'] = '-u _PyMac_Error #{HOMEBREW_PREFIX}/opt/python3/Frameworks/Python.framework/Versions/#{VER}/Python'
+ build_time_vars['LINKFORSHARED'] = '-u _PyMac_Error #{opt_prefix}/Frameworks/Python.framework/Versions/#{VER}/Python'
except:
pass # remember: don't print here. Better to fail silently.