X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=6514cf53990c9e55956ec180052e5679dde3bfd2;hb=2e48e7b8e360706ce666e1b343a20fb3a50b9b7b;hp=9b2994960e21b73e5e8ebbc4b1ff5cc7bfaabe49;hpb=6d74800f03c5d21f6f3aea54fcd37794f6702858;p=mimedecode.git diff --git a/setup.py b/setup.py index 9b29949..6514cf5 100755 --- a/setup.py +++ b/setup.py @@ -1,16 +1,30 @@ #! /usr/bin/env python -from distutils.core import setup -from mimedecode import _version, __copyright__ +try: + from ez_setup import use_setuptools + use_setuptools() + from setuptools import setup + is_setuptools = True +except ImportError: + from distutils.core import setup + is_setuptools = False + +kw = {} +if is_setuptools: + kw['install_requires'] = ['m_lib>=2.0'] + +from mimedecode_version import __version__, __copyright__, __license__ setup(name = "mimedecode", - version = _version, - description = "Broytman mimedecode.py", - long_description = "Broytman mimedecode.py, " + __copyright__, - author = "Oleg Broytman", - author_email = "phd@phd.pp.ru", - url = "http://phd.pp.ru/Software/Python/#mimedecode", - license = "GPL", - platforms = "All", - scripts = ['mimedecode.py'] + version = __version__, + description = "A program to decode MIME messages", + long_description = "A program to decode MIME messages. " + __copyright__, + author = "Oleg Broytman", + author_email = "phd@phdru.name", + url = "http://phdru.name/Software/Python/#mimedecode", + license = __license__, + platforms = "All", + py_modules = ['mimedecode_version'], + scripts = ['mimedecode.py'], + **kw )