diff options
| author | Samuel John | 2013-07-23 13:03:19 +0200 |
|---|---|---|
| committer | Samuel John | 2013-07-23 13:03:19 +0200 |
| commit | bfc84075f0845e60cfda607f221ee6d37735da8d (patch) | |
| tree | 53471b26a1de6b8467509c38332600995950ec1f /Library/Formula/python3.rb | |
| parent | b01304eeb4c289f469047a57b32a6b47740a2f26 (diff) | |
| download | homebrew-bfc84075f0845e60cfda607f221ee6d37735da8d.tar.bz2 | |
python3: Setuptools 0.9.7 and rm old ones
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
This does not always happen, but if the easy_install.pth points to an
egg with an older version. Removing all setuptools and distribute
remains inside the homebrew global_site_packages is safe.
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", |
