diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-06-15 22:28:03 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-06-15 22:28:03 -0700 |
commit | 56f550b70a565828237f1aad7a5d92429f7aaaab (patch) | |
tree | 4e7ae8d525501584246c30737f547db85d2b4057 /SetupTools.py | |
parent | c501c33c362882bf54be05e2d59a90fbff2c46cf (diff) | |
download | python-cheetah-56f550b70a565828237f1aad7a5d92429f7aaaab.tar.gz |
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 <tyler@slide.com>
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 |