comparison setup.py @ 437:a1e778940f92

Install html template files to share/roundup/templates
author Jürgen Hermann <jhermann@users.sourceforge.net>
date Sat, 08 Dec 2001 07:06:20 +0000
parents 00f120add0f7
children a090b3873d82 c242455d9b46
comparison
equal deleted inserted replaced
436:9be5fdc121ca 437:a1e778940f92
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: setup.py,v 1.25 2001-11-21 23:42:54 richard Exp $ 19 # $Id: setup.py,v 1.26 2001-12-08 07:06:20 jhermann Exp $
20 20
21 from distutils.core import setup, Extension 21 from distutils.core import setup, Extension
22 from distutils.util import get_platform 22 from distutils.util import get_platform
23 23
24 from glob import glob 24 from glob import glob
27 27
28 print 'Running unit tests...' 28 print 'Running unit tests...'
29 import test 29 import test
30 test.go() 30 test.go()
31 31
32 templates = 'classic', 'extended'
33 packagelist = [ 'roundup', 'roundup.backends', 'roundup.templates' ]
34 installdatafiles = []
35 32
36 for t in templates: 33 def isTemplateDir(dir):
37 makeHtmlBase(os.path.join('roundup', 'templates', t)) 34 return dir[0] != '.' and dir != 'CVS' and os.path.isdir(dir) \
38 packagelist.append('roundup.templates.%s'%t) 35 and os.path.isfile(os.path.join(dir, '__init__.py'))
39 packagelist.append('roundup.templates.%s.detectors'%t) 36
40 tfiles = glob(os.path.join('roundup','templates', t, 'html', '*')) 37 templates = map(os.path.basename, filter(isTemplateDir,
38 glob(os.path.join('roundup', 'templates', '*'))))
39 packagelist = [
40 'roundup',
41 'roundup.backends',
42 'roundup.templates'
43 ]
44 installdatafiles = [
45 ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']),
46 ]
47
48 for template in templates:
49 tdir = os.path.join('roundup', 'templates', template)
50 makeHtmlBase(tdir)
51
52 # add the template package and subpackage
53 packagelist.append('roundup.templates.%s' % template)
54 packagelist.append('roundup.templates.%s.detectors' % template)
55
56 # scan for data files
57 tfiles = glob(os.path.join(tdir, 'html', '*'))
41 tfiles = filter(os.path.isfile, tfiles) 58 tfiles = filter(os.path.isfile, tfiles)
59 installdatafiles.append(
60 ('share/roundup/templates/%s/html' % template, tfiles)
61 )
42 62
43 63
44 setup ( name = "roundup", 64 setup(
45 version = "0.3.0", 65 name = "roundup",
46 description = "Roundup issue tracking system.", 66 version = "0.3.0",
47 author = "Richard Jones", 67 description = "Roundup issue tracking system.",
48 author_email = "richard@users.sourceforge.net", 68 author = "Richard Jones",
49 url = 'http://sourceforge.net/projects/roundup/', 69 author_email = "richard@users.sourceforge.net",
50 packages = packagelist, 70 url = 'http://sourceforge.net/projects/roundup/',
51 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'], 71 packages = packagelist,
52 data_files= [ 72 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'],
53 ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']), 73 data_files = installdatafiles
54 ]
55 ) 74 )
75
56 76
57 # 77 #
58 # $Log: not supported by cvs2svn $ 78 # $Log: not supported by cvs2svn $
79 # Revision 1.25 2001/11/21 23:42:54 richard
80 # Some version number and documentation fixes.
81 #
59 # Revision 1.24 2001/11/06 22:32:15 jhermann 82 # Revision 1.24 2001/11/06 22:32:15 jhermann
60 # Install roundup.cgi to share/roundup 83 # Install roundup.cgi to share/roundup
61 # 84 #
62 # Revision 1.23 2001/10/17 06:04:00 richard 85 # Revision 1.23 2001/10/17 06:04:00 richard
63 # Beginnings of an interactive mode for roundup-admin 86 # Beginnings of an interactive mode for roundup-admin

Roundup Issue Tracker: http://roundup-tracker.org/