diff options
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 |
