aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/dist.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-12-31 11:51:01 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-12-31 11:51:01 -0500
commit06872bb0bbbeb953e90bd0941444b0d499056557 (patch)
tree73adc719c4acd99095181f0ccd42bbc7564ef8f0 /setuptools/dist.py
parent29fa01621c3de0a5c78c4f49b5d051386d0d566f (diff)
downloadexternal_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/dist.py')
-rw-r--r--setuptools/dist.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setuptools/dist.py b/setuptools/dist.py
index 7335c967..11b42d19 100644
--- a/setuptools/dist.py
+++ b/setuptools/dist.py
@@ -13,7 +13,12 @@ from distutils.core import Distribution as _Distribution
from distutils.errors import (DistutilsOptionError, DistutilsPlatformError,
DistutilsSetupError)
-import six
+try:
+ from setuptools._vendor import six
+except ImportError:
+ # fallback to naturally-installed version; allows system packagers to
+ # omit vendored packages.
+ import six
from setuptools.depends import Require
from setuptools import windows_support