Commit 4bc95fe2 authored by Yusuke Tsutsumi's avatar Yusuke Tsutsumi

Moving some messages, deleting dead code

parent d2ea054d
......@@ -73,9 +73,11 @@ ez = {}
exec(urlopen('https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py'
).read(), ez)
# ez_setup imports site, which adds site packages
# this will remove them to ensure that incompataible versions
# of setuptools are not installed
# this will remove them from the path to ensure that incompatible versions
# of setuptools are not in the path
import site
# inside a virtualenv, there is no 'getsitepackages'.
# We can't remove these reliably
if hasattr(site, 'getsitepackages'):
for sitepackage_path in site.getsitepackages():
sys.path[:] = [x for x in sys.path if sitepackage_path not in x]
......@@ -85,11 +87,6 @@ ez['use_setuptools'](**setup_args)
import setuptools
import pkg_resources
# inside a virtualenv, there is no 'getsitepackages'.
# We can't remove these reliably
#if hasattr(site, 'getsitepackages'):
# for sitepackage_path in site.getsitepackages():
# sys.path[:] = [x for x in sys.path if sitepackage_path not in x]
# This does not (always?) update the default working set. We will
# do it.
for path in sys.path:
......
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