diff --git a/setup.py b/setup.py index fbffbaf8..1efb1da7 100755 --- a/setup.py +++ b/setup.py @@ -27,6 +27,7 @@ import platform try: import setuptools from setuptools import setup + from setuptools.command.install import install except ImportError: setuptools = None from distutils.core import setup @@ -35,7 +36,8 @@ except ImportError: from distutils.command.build_py import build_py from distutils.command.build_scripts import build_scripts from distutils.command.install_scripts import install_scripts -from distutils.command.install import install +if setuptools is None: + from distutils.command.install import install try: # python 3.x from distutils.command.build_py import build_py_2to3