diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-31 11:51:01 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-12-31 11:51:01 -0500 |
commit | 06872bb0bbbeb953e90bd0941444b0d499056557 (patch) | |
tree | 73adc719c4acd99095181f0ccd42bbc7564ef8f0 /setuptools/bootstrap.py | |
parent | 29fa01621c3de0a5c78c4f49b5d051386d0d566f (diff) | |
download | external_python_setuptools-06872bb0bbbeb953e90bd0941444b0d499056557.tar.gz external_python_setuptools-06872bb0bbbeb953e90bd0941444b0d499056557.tar.bz2 external_python_setuptools-06872bb0bbbeb953e90bd0941444b0d499056557.zip |
Update vendoring technique to match that used for packaging. Ref #229.
--HG--
branch : feature/issue-229
Diffstat (limited to 'setuptools/bootstrap.py')
-rw-r--r-- | setuptools/bootstrap.py | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/setuptools/bootstrap.py b/setuptools/bootstrap.py deleted file mode 100644 index 0cd95778..00000000 --- a/setuptools/bootstrap.py +++ /dev/null @@ -1,27 +0,0 @@ -""" -When setuptools is installed in a clean environment, it doesn't have its -dependencies, so it can't run to install its dependencies. This module -checks those dependencies and if one or more are missing, it uses vendored -versions. -""" - -import os -import sys -import glob - -def ensure_deps(): - """ - Detect if dependencies are installed and if not, use vendored versions. - """ - try: - __import__('six') - except ImportError: - use_vendor_deps() - -def use_vendor_deps(): - """ - Use vendored versions - """ - here = os.path.dirname(__file__) - eggs = glob.glob(here + '/_vendor/*.egg') - sys.path.extend(eggs) |