Mercurial > p > roundup > code
comparison setup.py @ 1673:85cb3f524bba
make distutils less whiney
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 22 Jun 2003 00:28:56 +0000 |
| parents | 0fc2c1fd3064 |
| children | 0f2678eeeac6 ecfb6ccf20b0 |
comparison
equal
deleted
inserted
replaced
| 1671:ab6db4c6770d | 1673:85cb3f524bba |
|---|---|
| 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.54 2003-06-17 11:03:27 neaj Exp $ | 19 # $Id: setup.py,v 1.55 2003-06-22 00:28:56 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 |
| 25 import sys, os, string | 25 import sys, os, string |
| 26 from glob import glob | 26 from glob import glob |
| 27 | 27 |
| 28 # patch distutils if it can't cope with the "classifiers" keyword | 28 # patch distutils if it can't cope with the "classifiers" keyword |
| 29 if sys.version < '2.2.3': | 29 from distutils.dist import DistributionMetadata |
| 30 from distutils.dist import DistributionMetadata | 30 if not hasattr(DistributionMetadata, 'classifiers'): |
| 31 DistributionMetadata.classifiers = None | 31 DistributionMetadata.classifiers = None |
| 32 DistributionMetadata.download_url = None | 32 DistributionMetadata.download_url = None |
| 33 | 33 |
| 34 | 34 |
| 35 ############################################################################# | 35 ############################################################################# |
