diff options
Diffstat (limited to 'Library/Formula/python3.rb')
| -rw-r--r-- | Library/Formula/python3.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 3321ee0e7..4126a7bef 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -6,8 +6,8 @@ require 'formula' # `brew install python`. class Setuptools < Formula - url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.5.tar.gz' - sha1 'a6ea38fb68f32abf7c1b1fe9a9c56c413f096c3a' + url 'https://pypi.python.org/packages/source/s/setuptools/setuptools-0.9.7.tar.gz' + sha1 'c56c5cc55b678c25a0a06f25a122f6492d62e2d3' end class Pip < Formula @@ -137,6 +137,14 @@ class Python3 < Formula # We ship setuptools and pip and reuse the PythonInstalled # Requirement here to write the sitecustomize.py py = PythonInstalled.new(VER) + + # Remove old setuptools installations that may still fly around and be + # listed in the easy_install.pth. This can break setuptools build with + # zipimport.ZipImportError: bad local file header + # setuptools-0.9.5-py3.3.egg + rm_rf Dir["#{py.global_site_packages}/setuptools*"] + rm_rf Dir["#{py.global_site_packages}/distribute*"] + py.binary = bin/"python#{VER}" py.modify_build_environment setup_args = [ "-s", "setup.py", "install", "--force", "--verbose", |
