aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-12-30 12:37:02 -0500
committerJason R. Coombs <jaraco@jaraco.com>2014-12-30 12:37:02 -0500
commitfddd230b60c17ca2100e41962de7b9e16ee85408 (patch)
treea0f6da9f23108e69c37cd5464e98830d26e2f3b2 /setuptools/sandbox.py
parent9419ec6858f28bc23fde222c223cc20dc28a0874 (diff)
downloadexternal_python_setuptools-fddd230b60c17ca2100e41962de7b9e16ee85408.tar.gz
external_python_setuptools-fddd230b60c17ca2100e41962de7b9e16ee85408.tar.bz2
external_python_setuptools-fddd230b60c17ca2100e41962de7b9e16ee85408.zip
Ensure setuptools is present in the environment before invoking setup.py from easy_install. Fixes #319.
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index c6840ce4..b90d1e1b 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -152,6 +152,8 @@ def setup_context(setup_dir):
with save_argv():
with override_temp(temp_dir):
with pushd(setup_dir):
+ # ensure setuptools commands are available
+ __import__('setuptools')
yield