From 56f550b70a565828237f1aad7a5d92429f7aaaab Mon Sep 17 00:00:00 2001 From: "R. Tyler Ballance" Date: Mon, 15 Jun 2009 22:28:03 -0700 Subject: Provide a means of bypassing setuptools when installing Cheetah By running `CHEETAH_INSTALL_WITHOUT_SETUPTOOLS=1 python setup.py install` you can revert to distutils functionality for your install process Signed-off-by: R. Tyler Ballance --- SetupTools.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'SetupTools.py') 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 -- cgit v1.2.1