X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=f98336b3a7ea9b40d9d3bc0623527e26914db642;hb=dcbe68b3f9fb23ef380346201cf4d8be8864c7fe;hp=b571433f05eef17b348353ded5c028adfd634ea4;hpb=4f1fba5115cee2ffc2ab769511414a5613d507d5;p=mimedecode.git diff --git a/setup.py b/setup.py index b571433..f98336b 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, + 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 = "GPL", + license = __license__, platforms = "All", - scripts = ['mimedecode.py'] + py_modules = ['mimedecode_version'], + scripts = ['mimedecode.py'], + **kw )