Mercurial > p > roundup > code
comparison setup.py @ 5021:70dde3937c9b pip
setup.py: Remove legacy support code for Python<2.3
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 11 Jan 2016 01:20:29 +0300 |
| parents | a4d7e495f2f6 |
| children | 8853f422fb62 |
comparison
equal
deleted
inserted
replaced
| 5020:a4d7e495f2f6 | 5021:70dde3937c9b |
|---|---|
| 35 from distutils.core import setup | 35 from distutils.core import setup |
| 36 | 36 |
| 37 import sys, os | 37 import sys, os |
| 38 from glob import glob | 38 from glob import glob |
| 39 | 39 |
| 40 # patch distutils if it can't cope with the "classifiers" keyword | |
| 41 from distutils.dist import DistributionMetadata | |
| 42 if not hasattr(DistributionMetadata, 'classifiers'): | |
| 43 DistributionMetadata.classifiers = None | |
| 44 DistributionMetadata.download_url = None | |
| 45 | 40 |
| 46 def include(d, e): | 41 def include(d, e): |
| 47 """Generate a pair of (directory, file-list) for installation. | 42 """Generate a pair of (directory, file-list) for installation. |
| 48 | 43 |
| 49 'd' -- A directory | 44 'd' -- A directory |
