1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
PackageName = "Cheetah"
Title = "Cheetah: The Python-Powered Template Engine"
Description = "Provides Cheetah, a Python-powered template engine and code generator"
Status = 'Production'
Version = '0.9.11'
Maintainer = "Tavis Rudd"
Author = "The Cheetah Development Team"
AuthorEmail = "cheetahtemplate-discuss@lists.sf.net"
Url = "http://www.CheetahTemplate.org/"
Packages = ['%(PackageName)s',
'%(PackageName)s.HelpDesk',
'%(PackageName)s.HelpDesk.Docs',
'%(PackageName)s.HelpDesk.Examples',
'%(PackageName)s.Templates',
'%(PackageName)s.Tests',
'%(PackageName)s.Tools',
'%(PackageName)s.Utils',
]
PackageDir = 'src'
PackageToDirMap = {'%(PackageName)s':'%(PackageDir)s',
'%(PackageName)s.HelpDesk.Docs':'docs',
'%(PackageName)s.HelpDesk.Examples':'examples',
}
ManifestTemplates = ['recursive-include %(PackageDir)s *',
'recursive-exclude %(PackageDir)s *.pyc *~ *.aux',
'include *.py *.cfg TODO CHANGES LICENSE README bin examples docs',
'recursive-include docs * ',
'recursive-exclude docs *~ *.aux',
'recursive-include bin * ',
'recursive-exclude bin *~',
'recursive-include examples * ',
'recursive-exclude examples *~',
]
Scripts = ['bin/cheetah-compile',
'bin/cheetah',
]
try:
from Webware.Component import Component as _Component
class ComponentClass(_Component):
def _finalizeSettings(self):
_Component._finalizeSettings(self)
import os
import os.path
from distutils.core import Extension
## we only assume the presence of a c compiler on Posix systems, NT people will
# have to enable this manually.
if os.name == 'posix':
extModules=[Extension("%(PackageName)s._namemapper" % self.settings(),
[os.path.join("%(PackageDir)s" ,"_namemapper.c")
% self.settings()
]
)
]
else:
extModules=[]
self.setSetting('ExtModules', extModules )
except ImportError:
pass
|