root/galaxy-central/scripts/scramble/patches/Cheetah/SetupConfig.py

リビジョン 2, 3.6 KB (コミッタ: hatakeyama, 14 年 前)

import galaxy-central

行番号 
1#-------Main Package Settings-----------#
2import sys
3
4name = 'Cheetah'
5from cheetah.Version import Version as version
6maintainer = "R. Tyler Ballance"
7author = "Tavis Rudd"
8author_email = "cheetahtemplate-discuss@lists.sf.net"
9url = "http://www.cheetahtemplate.org/"
10packages = ['Cheetah',
11            'Cheetah.Macros',           
12            'Cheetah.Templates',
13            'Cheetah.Tests',
14            'Cheetah.Tools',
15            'Cheetah.Utils',
16            ]
17classifiers = [line.strip() for line in '''\
18  #Development Status :: 4 - Beta
19  Development Status :: 5 - Production/Stable
20  Intended Audience :: Developers
21  Intended Audience :: System Administrators
22  License :: OSI Approved :: MIT License
23  Operating System :: OS Independent
24  Programming Language :: Python
25  Topic :: Internet :: WWW/HTTP
26  Topic :: Internet :: WWW/HTTP :: Dynamic Content
27  Topic :: Internet :: WWW/HTTP :: Site Management
28  Topic :: Software Development :: Code Generators
29  Topic :: Software Development :: Libraries :: Python Modules
30  Topic :: Software Development :: User Interfaces
31  Topic :: Text Processing'''.splitlines() if not line.strip().startswith('#')]
32del line
33
34package_dir = {'Cheetah':'cheetah'}
35
36import os
37import os.path
38from distutils.core import Extension
39
40ext_modules=[
41             Extension("Cheetah._namemapper",
42                        [os.path.join('cheetah', 'c', '_namemapper.c')]),
43           #  Extension("Cheetah._verifytype",
44           #             [os.path.join('cheetah', 'c', '_verifytype.c')]),
45           #  Extension("Cheetah._filters",
46           #             [os.path.join('cheetah', 'c', '_filters.c')]),
47           #  Extension('Cheetah._template',
48           #             [os.path.join('cheetah', 'c', '_template.c')]),
49             ]
50
51## Data Files and Scripts
52scripts = ['bin/cheetah-compile',
53           'bin/cheetah',
54           ]
55
56data_files = ['recursive: cheetah *.tmpl *.txt LICENSE README TODO CHANGES',]
57
58if not os.getenv('CHEETAH_INSTALL_WITHOUT_SETUPTOOLS'):
59    try:
60        from setuptools import setup
61#        install_requires = [
62#                "Markdown >= 2.0.1",
63#        ]
64        if sys.platform == 'win32':
65            # use 'entry_points' instead of 'scripts'
66            del scripts
67            entry_points = {
68                'console_scripts': [
69                    'cheetah = Cheetah.CheetahWrapper:_cheetah',
70                    'cheetah-compile = Cheetah.CheetahWrapper:_cheetah_compile',
71                ]
72        }
73    except ImportError:
74        print 'Not using setuptools, so we cannot install the Markdown dependency'
75
76
77description = "Cheetah is a template engine and code generation tool."
78
79long_description = '''Cheetah is an open source template engine and code generation tool.
80
81It can be used standalone or combined with other tools and frameworks. Web
82development is its principle use, but Cheetah is very flexible and is also being
83used to generate C++ game code, Java, sql, form emails and even Python code.
84
85Documentation
86================================================================================
87For a high-level introduction to Cheetah please refer to the User\'s Guide
88at http://www.cheetahtemplate.org/learn.html
89
90Mailing list
91================================================================================
92cheetahtemplate-discuss@lists.sourceforge.net
93Subscribe at http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss
94
95Credits
96================================================================================
97http://www.cheetahtemplate.org/credits.html
98
99Recent Changes
100================================================================================
101See http://www.cheetahtemplate.org/CHANGES.txt for full details
102
103'''
Note: リポジトリブラウザについてのヘルプは TracBrowser を参照してください。