Skip to content

Commit 4aa97f2

Browse files
author
Richard Jones
committed
make distutils less whiney
1 parent ce40edc commit 4aa97f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
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 $
2020

2121
from distutils.core import setup, Extension
2222
from distutils.util import get_platform
@@ -26,8 +26,8 @@
2626
from glob import glob
2727

2828
# patch distutils if it can't cope with the "classifiers" keyword
29-
if sys.version < '2.2.3':
30-
from distutils.dist import DistributionMetadata
29+
from distutils.dist import DistributionMetadata
30+
if not hasattr(DistributionMetadata, 'classifiers'):
3131
DistributionMetadata.classifiers = None
3232
DistributionMetadata.download_url = None
3333

0 commit comments

Comments
 (0)