diff options
author | R. Tyler Ballance <tyler@slide.com> | 2009-06-09 10:17:49 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@slide.com> | 2009-06-09 10:17:49 -0700 |
commit | b9bfe53457fd1a5a08920bea26424d19c9c0ff3d (patch) | |
tree | f80d427c9639525b09924842f0f0f309063b5830 /SetupTools.py | |
parent | 5aa67355b0039c1ae90f49247906cdec0d57aec8 (diff) | |
download | python-cheetah-b9bfe53457fd1a5a08920bea26424d19c9c0ff3d.tar.gz |
Default to using setuptools by default, failing that setup.py will fall back to distutils
Signed-off-by: R. Tyler Ballance <tyler@slide.com>
Diffstat (limited to 'SetupTools.py')
-rw-r--r-- | SetupTools.py | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/SetupTools.py b/SetupTools.py index d31853a..d6d48dd 100644 --- a/SetupTools.py +++ b/SetupTools.py @@ -1,15 +1,4 @@ #!/usr/bin/env python -# $Id: SetupTools.py,v 1.9 2007/11/03 19:44:38 tavis_rudd Exp $ -"""Some tools for extending and working with distutils - -CREDITS: This module borrows code and ideas from M.A. Lemburg's excellent setup -tools for the mxBase package. - -""" - -__author__ = "Tavis Rudd <tavis@damnsimple.com>" -__version__ = "$Revision: 1.9 $"[11:-2] - import os from os import listdir import os.path @@ -20,16 +9,12 @@ import string import traceback from distutils.core import setup -if 'CHEETAH_USE_SETUPTOOLS' in os.environ: - # @@TR: Please note that this is for testing purposes only! PEAK setuptools - # is not required or recommended for installing Cheetah. Downstream - # package managers (linux distros, etc.) should *not* enable this. - 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 +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 from distutils.core import Command from distutils.command.install_data import install_data |