]> git.phdru.name Git - mimedecode.git/blobdiff - setup.py
Add git+git URL for m_lib
[mimedecode.git] / setup.py
index f5c7e42745848d833ceebbb5dae6abe6c167443c..d1c825767d494b3468b9c41e8403043ab65cd5e6 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,18 +1,36 @@
 #! /usr/bin/env python
 
+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
 
-from distutils.core import setup
-from mimedecode import __version__ as version
+kw = {}
+if is_setuptools:
+    kw['setup_requires'] = ['m_lib']
+    kw['install_requires'] = ['m_lib']
+    kw['dependency_links'] = [
+        'http://phdru.name/Software/Python/#egg=m_lib',
+        'git+http://git.phdru.name/m_lib.git#egg=m_lib',
+         'git+git://git.phdru.name/m_lib.git#egg=m_lib',
+    ]
 
+from mimedecode_version import __version__, __copyright__, __license__
 
 setup(name = "mimedecode",
-   version = version + 'd',
-   description = "BroytMann mimedecode.py",
-   long_description = "BroytMann mimedecode.py, Copyright (C) 2001-2004 PhiloSoft Design",
-   author = "Oleg Broytmann",
-   author_email = "phd@phd.pp.ru",
-   url = "http://phd.pp.ru/Software/Python/#mimedecode",
-   license = "GPL",
+   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",
-   scripts = ['mimedecode.py']
+   py_modules = ['mimedecode_version'],
+   scripts = ['mimedecode.py'],
+   **kw
 )