]> git.phdru.name Git - m_lib.git/blobdiff - setup.py
Build(setup.py): Use setuptools instead of distutils
[m_lib.git] / setup.py
index 99e74b997c12e689255de16534bc907f4b052502..34500f87cce6d232cc908aa05813c96bb2e62f50 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,26 +1,11 @@
 #! /usr/bin/env python
 
-try:
-    from setuptools import setup
-    is_setuptools = True
-except ImportError:
-    from distutils.core import setup
-    is_setuptools = False
-
-kw = {}
-if is_setuptools:
-    kw['extras_require'] = {
-        'Metakit': ['Mk4py'],
-        'ZODB': ['ZODB'],
-        'mx': ['mx.DateTime', 'mx.Misc'],
-        }
-
-    kw['python_requires'] = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
+from setuptools import setup
 
 setup(name = "m_lib",
     version = "3.1.0",
     description = "Broytman Library for Python",
-    long_description = "Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design",
+    long_description = "Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design",
     author = "Oleg Broytman",
     author_email = "phd@phdru.name",
     url = "http://phdru.name/Software/Python/#m_lib",
@@ -47,5 +32,10 @@ setup(name = "m_lib",
         "m_lib.pbar", "m_lib.rus",
     ],
     namespace_packages = ["m_lib"],
-    **kw
+    python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
+    extras_require={
+        'Metakit': ['Mk4py'],
+        'ZODB': ['ZODB'],
+        'mx': ['mx.DateTime', 'mx.Misc'],
+    },
 )