4e2717aa35c3ca46cb24310a43a17f97d3836cb2
1 #! /usr/bin/env python
2 #
3 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
4 # This module is free software, and you may redistribute it and/or modify
5 # under the same terms as Python, so long as this copyright message and
6 # disclaimer are retained in their original form.
7 #
8 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
9 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
10 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
11 # POSSIBILITY OF SUCH DAMAGE.
12 #
13 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
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"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 #
19 # $Id: setup.py,v 1.29 2002-01-23 06:05:36 richard Exp $
21 from distutils.core import setup, Extension
22 from distutils.util import get_platform
24 from glob import glob
25 import sys,os
26 from roundup.templatebuilder import makeHtmlBase
28 def isTemplateDir(dir):
29 return dir[0] != '.' and dir != 'CVS' and os.path.isdir(dir) \
30 and os.path.isfile(os.path.join(dir, '__init__.py'))
32 templates = map(os.path.basename, filter(isTemplateDir,
33 glob(os.path.join('roundup', 'templates', '*'))))
34 packagelist = [
35 'roundup',
36 'roundup.backends',
37 'roundup.templates'
38 ]
39 installdatafiles = [
40 ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']),
41 ]
43 for template in templates:
44 tdir = os.path.join('roundup', 'templates', template)
45 makeHtmlBase(tdir)
47 # add the template package and subpackage
48 packagelist.append('roundup.templates.%s' % template)
49 packagelist.append('roundup.templates.%s.detectors' % template)
51 # scan for data files
52 tfiles = glob(os.path.join(tdir, 'html', '*'))
53 tfiles = filter(os.path.isfile, tfiles)
54 installdatafiles.append(
55 ('share/roundup/templates/%s/html' % template, tfiles)
56 )
59 setup(
60 name = "roundup",
61 version = "0.4.0",
62 description = "Roundup issue tracking system.",
63 author = "Richard Jones",
64 author_email = "richard@users.sourceforge.net",
65 url = 'http://sourceforge.net/projects/roundup/',
66 packages = packagelist,
67 scripts = ['roundup-admin', 'roundup-mailgw', 'roundup-server'],
68 data_files = installdatafiles
69 )
72 #
73 # $Log: not supported by cvs2svn $
74 # Revision 1.28 2002/01/11 03:24:15 richard
75 # minor changes for 0.4.0b2
76 #
77 # Revision 1.27 2002/01/05 02:09:46 richard
78 # make setup abort if tests fail
79 #
80 # Revision 1.26 2001/12/08 07:06:20 jhermann
81 # Install html template files to share/roundup/templates
82 #
83 # Revision 1.25 2001/11/21 23:42:54 richard
84 # Some version number and documentation fixes.
85 #
86 # Revision 1.24 2001/11/06 22:32:15 jhermann
87 # Install roundup.cgi to share/roundup
88 #
89 # Revision 1.23 2001/10/17 06:04:00 richard
90 # Beginnings of an interactive mode for roundup-admin
91 #
92 # Revision 1.22 2001/10/11 05:01:28 richard
93 # Prep for pre-release #2
94 #
95 # Revision 1.21 2001/10/10 04:18:38 richard
96 # Getting ready for a preview release for 0.3.0.
97 #
98 # Revision 1.20 2001/10/08 21:49:30 richard
99 # Minor pre- 0.3.0 changes
100 #
101 # Revision 1.19 2001/09/10 09:48:35 richard
102 # Started changes log for 0.2.9
103 #
104 # Revision 1.18 2001/08/30 06:01:17 richard
105 # Fixed missing import in mailgw :(
106 #
107 # Revision 1.17 2001/08/08 03:29:35 richard
108 # Next release is 0.2.6
109 #
110 # Revision 1.16 2001/08/07 00:24:42 richard
111 # stupid typo
112 #
113 # Revision 1.15 2001/08/07 00:15:51 richard
114 # Added the copyright/license notice to (nearly) all files at request of
115 # Bizar Software.
116 #
117 # Revision 1.14 2001/08/06 23:57:20 richard
118 # Am now bundling unittest with the package so that everyone can use the unit
119 # tests.
120 #
121 # Revision 1.13 2001/08/03 07:18:57 richard
122 # updated version number for 0.2.6
123 #
124 # Revision 1.12 2001/08/03 02:51:06 richard
125 # detect unit tests
126 #
127 # Revision 1.11 2001/08/03 01:54:58 richard
128 # Started stuff off for the 0.2.5 release
129 #
130 # Revision 1.10 2001/07/30 07:17:44 richard
131 # Just making sure we've got the right version in there for development.
132 #
133 # Revision 1.9 2001/07/29 23:34:26 richard
134 # Added unit tests so they're run whenever we package/install/whatever.
135 #
136 # Revision 1.8 2001/07/29 09:43:46 richard
137 # Make sure that the htmlbase is up-to-date when we build a source dist.
138 #
139 # Revision 1.7 2001/07/29 08:37:58 richard
140 # changes
141 #
142 # Revision 1.6 2001/07/29 07:01:39 richard
143 # Added vim command to all source so that we don't get no steenkin' tabs :)
144 #
145 # Revision 1.5 2001/07/28 00:39:18 richard
146 # changes for the 0.2.1 distribution build.
147 #
148 # Revision 1.4 2001/07/27 07:20:17 richard
149 # Makefile is now obsolete - setup does what it used to do.
150 #
151 # Revision 1.3 2001/07/27 06:56:25 richard
152 # Added scripts to the setup and added the config so the default script
153 # install dir is /usr/local/bin.
154 #
155 # Revision 1.2 2001/07/26 07:14:27 richard
156 # Made setup.py executable, added id and log.
157 #
158 #
159 #
160 # vim: set filetype=python ts=4 sw=4 et si