diff options
| author | Jack Nagel | 2014-03-30 23:27:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-30 23:30:26 -0500 |
| commit | 46a4328e060815258993e6c8f3078343381d725c (patch) | |
| tree | e83e7fb67bfeafcd03116de7546b7ac24bb9a881 /Library/Formula/python3.rb | |
| parent | 72e965150d6b9b21188f141454c2f5ce20187552 (diff) | |
| download | homebrew-46a4328e060815258993e6c8f3078343381d725c.tar.bz2 | |
Use site_packages method instead of reconstructing the path every time
Diffstat (limited to 'Library/Formula/python3.rb')
| -rw-r--r-- | Library/Formula/python3.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 6a85dfaaa..92d59b51c 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -128,8 +128,8 @@ class Python3 < Formula # listed in the easy_install.pth. This can break setuptools build with # zipimport.ZipImportError: bad local file header # setuptools-0.9.8-py3.3.egg - rm_rf Dir[HOMEBREW_PREFIX/"lib/python#{VER}/site-packages/setuptools*"] - rm_rf Dir[HOMEBREW_PREFIX/"lib/python#{VER}/site-packages/distribute*"] + rm_rf Dir["#{site_packages}/setuptools*"] + rm_rf Dir["#{site_packages}/distribute*"] # Install the bundled pip if it's newer than the installed version system bin/"python3", "-m", "ensurepip", "--upgrade" @@ -251,7 +251,7 @@ class Python3 < Formula # Tell about homebrew's site-packages location. # This is needed for Python to parse *.pth. import site - site.addsitedir('#{HOMEBREW_PREFIX}/lib/python#{VER}/site-packages') + site.addsitedir('#{site_packages}') EOF end |
