summaryrefslogtreecommitdiff
path: root/setuptools/ssl_support.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/ssl_support.py')
-rw-r--r--setuptools/ssl_support.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py
index 8fd7836b..327c2fcb 100644
--- a/setuptools/ssl_support.py
+++ b/setuptools/ssl_support.py
@@ -3,7 +3,12 @@ import socket
import atexit
import re
-from six.moves import urllib, http_client
+try:
+ from setuptools._vendor.six.moves import urllib, http_client
+except ImportError:
+ # fallback to naturally-installed version; allows system packagers to
+ # omit vendored packages.
+ from six.moves import urllib, http_client
import pkg_resources
from pkg_resources import ResolutionError, ExtractionError