File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 from setuptools import setup
33except ImportError :
44 from distutils .core import setup
5- import sys
6- # patch distutils if it can't cope with the "classifiers" keyword
7- if sys .version < '2.2.3' :
5+ try :
86 from distutils .dist import DistributionMetadata
9- DistributionMetadata .classifiers = None
10- DistributionMetadata .download_url = None
7+ except ImportError :
8+ pass
9+ else :
10+ try :
11+ DistributionMetadata .classifiers
12+ except AttributeError :
13+ DistributionMetadata .classifiers = None
14+ try :
15+ DistributionMetadata .download_url
16+ except AttributeError :
17+ DistributionMetadata .download_url = None
18+ try :
19+ DistributionMetadata .package_data
20+ except AttributeError :
21+ DistributionMetadata .package_data = None
22+ try :
23+ DistributionMetadata .zip_safe
24+ except AttributeError :
25+ DistributionMetadata .zip_safe = None
1126
1227import warnings
1328warnings .filterwarnings ('ignore' , 'Unknown distribution option' )
You can’t perform that action at this time.
0 commit comments