CVS: python setup.py,1.1,1.2

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv926/python

Modified Files:
	setup.py 
Log Message:
workaround for "invalid distribution option 'classifiers'"

Index: setup.py
===================================================================
RCS file: /cvsroot/mspgcc/python/setup.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- setup.py	29 Feb 2004 23:06:36 -0000	1.1
+++ setup.py	27 Jun 2004 00:18:15 -0000	1.2
@@ -5,6 +5,13 @@
 from distutils.core import setup
 import sys
 
+# patch distutils if it can't cope with the "classifiers" or
+# "download_url" keywords
+if sys.version < '2.2.3':
+    from distutils.dist import DistributionMetadata
+    DistributionMetadata.classifiers = None
+    DistributionMetadata.download_url = None
+
 setup(
     name="msp430-python-tools",
     description="MSP430 Python Tools",



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.