Added nobts path to page module to no show edit button
[kisspi.git] / setup.py
1 from distutils.core import setup
2 import os
3
4 datafiles = []
5
6 def append(directory):
7     base = os.getcwd()
8     fulldirectory = os.path.join(base, directory)
9     for i in os.listdir(fulldirectory):
10         fullpath = os.path.join(fulldirectory, i)
11         if os.path.isdir(fullpath):
12             append(directory+'/'+i)
13         else:
14             datafiles.append(('share/kisspi/'+directory, [directory+'/'+i]))
15
16 append('modules')
17 append('templates')
18 append('static')
19 append('web')
20
21 datafiles.append(('share/kisspi/', [i for i in os.listdir() if i.endswith('.py')]))
22
23 setup(name = 'kisspi',
24       version = '0.1',
25       description = 'Simple webpy based CMS',
26       author = 'Daniel Garcia Moreno',
27       author_email = '<dani@danigm.net>',
28       url = 'http://bzr.danigm.net/kisspi',
29       license = 'GPLv3',
30       data_files = datafiles,
31       scripts = ['kisspi'],
32       )
33