changeset 3031:0a81ed2b397d

fix setup.py to work with <Python2.3 [SF#1082801]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 03 Jan 2005 03:14:38 +0000
parents de242e68c69b
children f8d0fd056ac0
files CHANGES.txt setup.py
diffstat 2 files changed, 21 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Mon Jan 03 03:05:31 2005 +0000
+++ b/CHANGES.txt	Mon Jan 03 03:14:38 2005 +0000
@@ -10,6 +10,7 @@
 - fix some security assertions (sf bug 1085481)
 - 'roundup-server -S' always writes [trackers] section heading (sf bug 1088878)
 - fix port number as int in mysql connection info (sf bug 1082530)
+- fix setup.py to work with <Python2.3 (sf bug 1082801)
 
 
 2004-12-08 0.8.0b1
--- a/setup.py	Mon Jan 03 03:05:31 2005 +0000
+++ b/setup.py	Mon Jan 03 03:14:38 2005 +0000
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-# $Id: setup.py,v 1.77 2004-12-08 01:24:41 richard Exp $
+# $Id: setup.py,v 1.78 2005-01-03 03:14:38 richard Exp $
 
 from distutils.core import setup, Extension
 from distutils.util import get_platform
@@ -309,13 +309,13 @@
 
     # perform the setup action
     from roundup import __version__
-    setup(
-        name = "roundup",
-        version = __version__,
-        description = "A simple-to-use and -install issue-tracking system"
+    setup_args = {
+        'name': "roundup",
+        'version': __version__,
+        'description': "A simple-to-use and -install issue-tracking system"
             " with command-line, web and e-mail interfaces. Highly"
             " customisable.",
-        long_description =
+        'long_description': 
 '''Roundup is a simple-to-use and -install issue-tracking system with
 command-line, web and e-mail interfaces. It is based on the winning design
 from Ka-Ping Yee in the Software Carpentry "Track" design competition.
@@ -339,13 +339,12 @@
 - database exports now include full journals
 - IMAP support in the mail gateway
 ''',
-        author = "Richard Jones",
-        author_email = "richard@users.sourceforge.net",
-        url = 'http://roundup.sourceforge.net/',
-        download_url = 'http://sourceforge.net/project/showfiles.php?group_id=31577',
-        packages = packagelist,
-        py_modules = py_modules,
-        classifiers = [
+        'author': "Richard Jones",
+        'author_email': "richard@users.sourceforge.net",
+        'url': 'http://roundup.sourceforge.net/',
+        'download_url': 'http://sourceforge.net/project/showfiles.php?group_id=31577',
+        'packages': packagelist,
+        'classifiers': [
             'Development Status :: 4 - Beta',
             'Environment :: Console',
             'Environment :: Web Environment',
@@ -363,15 +362,19 @@
         ],
 
         # Override certain command classes with our own ones
-        cmdclass = {
+        'cmdclass': {
             'build_scripts': build_scripts_roundup,
             'build_py': build_py_roundup,
             'build': build_roundup,
         },
-        scripts = roundup_scripts,
+        'scripts': roundup_scripts,
 
-        data_files =  installdatafiles
-    )
+        'data_files':  installdatafiles
+    }
+    if sys.version_info[:2] > (2, 2):
+       setup_args['py_modules'] = py_modules
+
+    setup(**setup_args)
 
 if __name__ == '__main__':
     main()

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