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 /SetupConfig.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 'SetupConfig.py')
-rw-r--r-- | SetupConfig.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/SetupConfig.py b/SetupConfig.py index 510d262..f0504c8 100644 --- a/SetupConfig.py +++ b/SetupConfig.py @@ -52,14 +52,14 @@ scripts = ['bin/cheetah-compile', ] data_files = ['recursive: src *.tmpl *.txt LICENSE README TODO CHANGES', ] - -try: - from setuptools import setup - install_requires = [ - "Markdown >= 2.0.1", - ] -except ImportError: - print 'Not using setuptools, so we cannot install the Markdown dependency' +if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'): + try: + from setuptools import setup + install_requires = [ + "Markdown >= 2.0.1", + ] + except ImportError: + print 'Not using setuptools, so we cannot install the Markdown dependency' description = "Cheetah is a template engine and code generation tool." |