Mercurial > p > roundup > code
comparison setup.py @ 753:938edfdeac6e
Sorry about this huge checkin!
It's fixing a lot of related stuff in one go though.
. [SF#541941] changing multilink properties by mail
. [SF#526730] search for messages capability
. [SF#505180] split MailGW.handle_Message
- also changed cgi client since it was duplicating the functionality
. build htmlbase if tests are run using CVS checkout (removed note from
installation.txt)
. don't create an empty message on email issue creation if the email is empty
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 29 May 2002 01:16:17 +0000 |
| parents | e04d291a1194 |
| children | 6e6c63a57df9 |
comparison
equal
deleted
inserted
replaced
| 752:a721f4e7ebbc | 753:938edfdeac6e |
|---|---|
| 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.33 2002-04-03 05:53:03 richard Exp $ | 19 # $Id: setup.py,v 1.34 2002-05-29 01:16:16 richard 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 from distutils.command.build_scripts import build_scripts | 23 from distutils.command.build_scripts import build_scripts |
| 24 | 24 |
| 110 script = string.replace(script, '_', '-') | 110 script = string.replace(script, '_', '-') |
| 111 if sys.platform == "win32": | 111 if sys.platform == "win32": |
| 112 script = script + ".bat" | 112 script = script + ".bat" |
| 113 return script | 113 return script |
| 114 | 114 |
| 115 # build list of scripts from their implementation modules | |
| 116 roundup_scripts = map(scriptname, glob('roundup/scripts/[!_]*.py')) | |
| 117 | 115 |
| 118 | 116 |
| 119 ############################################################################# | 117 ############################################################################# |
| 120 ### Main setup stuff | 118 ### Main setup stuff |
| 121 ############################################################################# | 119 ############################################################################# |
| 122 | 120 |
| 123 def isTemplateDir(dir): | 121 def isTemplateDir(dir): |
| 124 return dir[0] != '.' and dir != 'CVS' and os.path.isdir(dir) \ | 122 return dir[0] != '.' and dir != 'CVS' and os.path.isdir(dir) \ |
| 125 and os.path.isfile(os.path.join(dir, '__init__.py')) | 123 and os.path.isfile(os.path.join(dir, '__init__.py')) |
| 126 | 124 |
| 125 # use that function to list all the templates | |
| 127 templates = map(os.path.basename, filter(isTemplateDir, | 126 templates = map(os.path.basename, filter(isTemplateDir, |
| 128 glob(os.path.join('roundup', 'templates', '*')))) | 127 glob(os.path.join('roundup', 'templates', '*')))) |
| 129 packagelist = [ | 128 |
| 130 'roundup', | 129 def buildTemplates(): |
| 131 'roundup.backends', | 130 for template in templates: |
| 132 'roundup.scripts', | 131 tdir = os.path.join('roundup', 'templates', template) |
| 133 'roundup.templates' | 132 makeHtmlBase(tdir) |
| 134 ] | 133 |
| 135 installdatafiles = [ | 134 if __name__ == '__main__': |
| 136 ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']), | 135 # build list of scripts from their implementation modules |
| 137 ] | 136 roundup_scripts = map(scriptname, glob('roundup/scripts/[!_]*.py')) |
| 138 | 137 |
| 139 for template in templates: | 138 # template munching |
| 140 tdir = os.path.join('roundup', 'templates', template) | 139 templates = map(os.path.basename, filter(isTemplateDir, |
| 141 makeHtmlBase(tdir) | 140 glob(os.path.join('roundup', 'templates', '*')))) |
| 142 | 141 packagelist = [ |
| 143 # add the template package and subpackage | 142 'roundup', |
| 144 packagelist.append('roundup.templates.%s' % template) | 143 'roundup.backends', |
| 145 packagelist.append('roundup.templates.%s.detectors' % template) | 144 'roundup.scripts', |
| 146 | 145 'roundup.templates' |
| 147 # scan for data files | 146 ] |
| 148 tfiles = glob(os.path.join(tdir, 'html', '*')) | 147 installdatafiles = [ |
| 149 tfiles = filter(os.path.isfile, tfiles) | 148 ('share/roundup/cgi-bin', ['cgi-bin/roundup.cgi']), |
| 150 installdatafiles.append( | 149 ] |
| 151 ('share/roundup/templates/%s/html' % template, tfiles) | 150 |
| 151 # munge the template HTML into the htmlbase module | |
| 152 buildTemplates() | |
| 153 | |
| 154 # add the templates to the setup packages and data files lists | |
| 155 for template in templates: | |
| 156 tdir = os.path.join('roundup', 'templates', template) | |
| 157 | |
| 158 # add the template package and subpackage | |
| 159 packagelist.append('roundup.templates.%s' % template) | |
| 160 packagelist.append('roundup.templates.%s.detectors' % template) | |
| 161 | |
| 162 # scan for data files | |
| 163 tfiles = glob(os.path.join(tdir, 'html', '*')) | |
| 164 tfiles = filter(os.path.isfile, tfiles) | |
| 165 installdatafiles.append( | |
| 166 ('share/roundup/templates/%s/html' % template, tfiles) | |
| 167 ) | |
| 168 | |
| 169 # perform the setup action | |
| 170 setup( | |
| 171 name = "roundup", | |
| 172 version = "0.4.1", | |
| 173 description = "Roundup issue tracking system.", | |
| 174 author = "Richard Jones", | |
| 175 author_email = "richard@users.sourceforge.net", | |
| 176 url = 'http://sourceforge.net/projects/roundup/', | |
| 177 packages = packagelist, | |
| 178 | |
| 179 # Override certain command classes with our own ones | |
| 180 cmdclass = { | |
| 181 'build_scripts': build_scripts_roundup, | |
| 182 }, | |
| 183 scripts = roundup_scripts, | |
| 184 | |
| 185 data_files = installdatafiles | |
| 152 ) | 186 ) |
| 153 | 187 |
| 154 | 188 |
| 155 setup( | |
| 156 name = "roundup", | |
| 157 version = "0.4.1", | |
| 158 description = "Roundup issue tracking system.", | |
| 159 author = "Richard Jones", | |
| 160 author_email = "richard@users.sourceforge.net", | |
| 161 url = 'http://sourceforge.net/projects/roundup/', | |
| 162 packages = packagelist, | |
| 163 | |
| 164 # Override certain command classes with our own ones | |
| 165 cmdclass = { | |
| 166 'build_scripts': build_scripts_roundup, | |
| 167 }, | |
| 168 scripts = roundup_scripts, | |
| 169 | |
| 170 data_files = installdatafiles | |
| 171 ) | |
| 172 | |
| 173 | |
| 174 # | 189 # |
| 175 # $Log: not supported by cvs2svn $ | 190 # $Log: not supported by cvs2svn $ |
| 191 # Revision 1.33 2002/04/03 05:53:03 richard | |
| 192 # Didn't get around to committing these after the last release. | |
| 193 # | |
| 176 # Revision 1.32 2002/03/27 23:47:58 jhermann | 194 # Revision 1.32 2002/03/27 23:47:58 jhermann |
| 177 # Fix for scripts running under CMD.EXE | 195 # Fix for scripts running under CMD.EXE |
| 178 # | 196 # |
| 179 # Revision 1.31 2002/03/22 18:36:00 jhermann | 197 # Revision 1.31 2002/03/22 18:36:00 jhermann |
| 180 # chmod +x for scripts | 198 # chmod +x for scripts |
