diff options
author | tavis_rudd <tavis_rudd> | 2002-03-02 20:26:07 +0000 |
---|---|---|
committer | tavis_rudd <tavis_rudd> | 2002-03-02 20:26:07 +0000 |
commit | 4f9d4b674f5e89ff81d8c606bb27ea17518fde83 (patch) | |
tree | 1e7476ab0a6a3fdb127061bdf4115cc020a38ce1 /setup.py | |
parent | c402f35a31040f9f10f7b66c8dc4db1a204517bb (diff) | |
download | python-cheetah-4f9d4b674f5e89ff81d8c606bb27ea17518fde83.tar.gz |
made the install work with or without the WebwareExp package
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -1,10 +1,21 @@ #!/usr/bin/env python -# $Id: setup.py,v 1.10 2001/10/10 06:59:45 tavis_rudd Exp $ +# $Id: setup.py,v 1.11 2002/03/02 20:26:17 tavis_rudd Exp $ -import SetupTools -import SetupConfig -configurations = (SetupConfig,) -SetupTools.run_setup( configurations ) +try: # see if WebwareExp's Setup procedure can be used + from src._properties import Version, Description + long_description = open('README').read() + settings= {'name': 'Cheetah', + 'version':Version, + 'long_description':long_description, + 'description':Description, + } + from Webware.Setup import SetupManager + SetupManager(searchPath=['.'],settings=settings) +except ImportError: + import SetupTools + import SetupConfig + configurations = (SetupConfig,) + SetupTools.run_setup( configurations ) |