1616# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818#
19- # $Id: setup.py,v 1.77 2004-12-08 01:24:41 richard Exp $
19+ # $Id: setup.py,v 1.77.2.1 2005-01-03 03:17:48 richard Exp $
2020
2121from distutils .core import setup , Extension
2222from distutils .util import get_platform
@@ -309,13 +309,13 @@ def main():
309309
310310 # perform the setup action
311311 from roundup import __version__
312- setup (
313- name = "roundup" ,
314- version = __version__ ,
315- description = "A simple-to-use and -install issue-tracking system"
312+ setup_args = {
313+ ' name' : "roundup" ,
314+ ' version' : __version__ ,
315+ ' description' : "A simple-to-use and -install issue-tracking system"
316316 " with command-line, web and e-mail interfaces. Highly"
317317 " customisable." ,
318- long_description =
318+ ' long_description' :
319319'''Roundup is a simple-to-use and -install issue-tracking system with
320320command-line, web and e-mail interfaces. It is based on the winning design
321321from Ka-Ping Yee in the Software Carpentry "Track" design competition.
@@ -339,13 +339,12 @@ def main():
339339- database exports now include full journals
340340- IMAP support in the mail gateway
341341''' ,
342- author = "Richard Jones" ,
343- author_email = "[email protected] " ,
344- url = 'http://roundup.sourceforge.net/' ,
345- download_url = 'http://sourceforge.net/project/showfiles.php?group_id=31577' ,
346- packages = packagelist ,
347- py_modules = py_modules ,
348- classifiers = [
342+ 'author' : "Richard Jones" ,
343+ 'author_email' :
"[email protected] " ,
344+ 'url' : 'http://roundup.sourceforge.net/' ,
345+ 'download_url' : 'http://sourceforge.net/project/showfiles.php?group_id=31577' ,
346+ 'packages' : packagelist ,
347+ 'classifiers' : [
349348 'Development Status :: 4 - Beta' ,
350349 'Environment :: Console' ,
351350 'Environment :: Web Environment' ,
@@ -363,15 +362,19 @@ def main():
363362 ],
364363
365364 # Override certain command classes with our own ones
366- cmdclass = {
365+ ' cmdclass' : {
367366 'build_scripts' : build_scripts_roundup ,
368367 'build_py' : build_py_roundup ,
369368 'build' : build_roundup ,
370369 },
371- scripts = roundup_scripts ,
370+ ' scripts' : roundup_scripts ,
372371
373- data_files = installdatafiles
374- )
372+ 'data_files' : installdatafiles
373+ }
374+ if sys .version_info [:2 ] > (2 , 2 ):
375+ setup_args ['py_modules' ] = py_modules
376+
377+ setup (** setup_args )
375378
376379if __name__ == '__main__' :
377380 main ()
0 commit comments