summaryrefslogtreecommitdiff
path: root/setuptools/command/setopt.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/setopt.py')
-rwxr-xr-xsetuptools/command/setopt.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setuptools/command/setopt.py b/setuptools/command/setopt.py
index f78e0cd5..1441e512 100755
--- a/setuptools/command/setopt.py
+++ b/setuptools/command/setopt.py
@@ -4,7 +4,12 @@ from distutils.errors import DistutilsOptionError
import distutils
import os
-from six.moves import configparser
+try:
+ from setuptools._vendor.six.moves import configparser
+except ImportError:
+ # fallback to naturally-installed version; allows system packagers to
+ # omit vendored packages.
+ from six.moves import configparser
from setuptools import Command