summaryrefslogtreecommitdiff
path: root/SetupConfig.py
blob: 04f077716d37f7debf18a7cea2aee91b0a4d6bf3 (plain)
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
#-------Main Package Settings-----------#
name = "Cheetah"
from src._properties import Version as version
maintainer = "Tavis Rudd"
author = "The Cheetah Development Team"
author_email = "cheetahtemplate-discuss@lists.sf.net"
url = "http://www.CheetahTemplate.org/"
packages = ['Cheetah',
            'Cheetah.Templates',
            'Cheetah.Tests',
            'Cheetah.Tools',
            'Cheetah.Utils',
            ]
package_dir = {'Cheetah':'src'}

import os
from distutils.core import Extension
if os.name == 'posix':
    ext_modules=[Extension("Cheetah/_namemapper", ["src/_namemapper.c"])]
else:
    ext_modules=[]


## Data Files and Scripts
scripts = ['bin/cheetah-compile',
           ]
data_files = ['recursive: src *.tmpl *.txt LICENSE README',
              ]

## GET THE DESCRIPTION AND CREATE THE README
from src import __doc__  
README = open('README','w')
README.write(__doc__)
README.close()

description = __doc__.split('\n')[0]
long_description = __doc__