mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
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.
This commit is contained in:
1 parent
b01304eeb4
commit
bfc84075f0
1 file changed
+10
-2
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user