diff options
Diffstat (limited to 'SetupTools.py')
-rw-r--r-- | SetupTools.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/SetupTools.py b/SetupTools.py index d6d48dd..1fcaf4c 100644 --- a/SetupTools.py +++ b/SetupTools.py @@ -9,12 +9,11 @@ import string import traceback from distutils.core import setup -try: - # use http://peak.telecommunity.com/DevCenter/setuptools if it's installed - # requires Py >=2.3 - from setuptools import setup -except ImportError: - from distutils.core import setup +if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): + try: + from setuptools import setup + except ImportError: + from distutils.core import setup from distutils.core import Command from distutils.command.install_data import install_data |