Commit 7be57de6 authored by Jim Fulton's avatar Jim Fulton

Work around an easy_install bug that should be fixed in b3.

parent 378627cc
...@@ -22,6 +22,7 @@ $Id$ ...@@ -22,6 +22,7 @@ $Id$
# XXX needs doctest # XXX needs doctest
import sys
import setuptools.command.easy_install import setuptools.command.easy_install
import pkg_resources import pkg_resources
import setuptools.package_index import setuptools.package_index
...@@ -45,6 +46,11 @@ def install(spec, dest, links=(), **kw): ...@@ -45,6 +46,11 @@ def install(spec, dest, links=(), **kw):
) )
easy.finalize_options() easy.finalize_options()
# hack around easy_install bug
easy.local_index = pkg_resources.Environment(
easy.shadow_path + sys.path)
old_warn = distutils.log.warn old_warn = distutils.log.warn
distutils.log.warn = lambda *a, **k: None distutils.log.warn = lambda *a, **k: None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment