python3: cleanup setuptools properly.

This commit is contained in:
Mike McQuaid 2014-01-20 14:16:39 -08:00
parent 36bc8425ce
commit 818078de2e

View file

@ -142,8 +142,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/python3/site-packages/setuptools*"]
rm_rf Dir[HOMEBREW_PREFIX/"lib/python3/site-packages/distribute*"]
rm_rf Dir[HOMEBREW_PREFIX/"lib/python#{VER}/site-packages/setuptools*"]
rm_rf Dir[HOMEBREW_PREFIX/"lib/python#{VER}/site-packages/distribute*"]
setup_args = [ "-s", "setup.py", "install", "--force", "--verbose",
"--install-scripts=#{bin}", "--install-lib=#{site_packages}" ]