summaryrefslogtreecommitdiff
path: root/SetupTools.py
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-06-15 22:28:03 -0700
committerR. Tyler Ballance <tyler@slide.com>2009-06-15 22:28:03 -0700
commit56f550b70a565828237f1aad7a5d92429f7aaaab (patch)
tree4e7ae8d525501584246c30737f547db85d2b4057 /SetupTools.py
parentc501c33c362882bf54be05e2d59a90fbff2c46cf (diff)
downloadpython-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.py11
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