]> git.phdru.name Git - m_lib.git/blobdiff - setup.py
Refactor find parameters
[m_lib.git] / setup.py
index 670cbc9f28c49d2b535a39b7256c423261140141..96099693151c63d315256696294b0a0036c5bfdc 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,23 +1,35 @@
 #! /usr/bin/env python
 
-from distutils.core import setup
+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['extras_require'] = {
+        'Metakit': ['Mk4py'],
+        'ZODB': ['ZODB'],
+        'mx': ['mx.DateTime', 'mx.Misc'],
+        }
 
 setup(name = "m_lib",
-    version = "2.0",
+    version = "2.1.2",
     description = "Broytman Library for Python",
-    long_description = "Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design",
+    long_description = "Broytman Library for Python, Copyright (C) 1996-2016 PhiloSoft Design",
     author = "Oleg Broytman",
     author_email = "phd@phdru.name",
     url = "http://phdru.name/Software/Python/#m_lib",
     license = "GPL",
     platforms = "All",
-    packages = ["m_lib", "m_lib.clock",
-        "m_lib.flad", "m_lib.flad.test", "m_lib.lazy",
-        "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", "m_lib.rus",
-        ],
-    data_files = [("%s/m_lib/flad/test" % python_lib, [
-        "m_lib/flad/test/test.cfg",
-        "m_lib/flad/test/test.txt",
-        "m_lib/flad/test/comment.txt",
-    ])]
+    packages = ["m_lib", "m_lib.clock", "m_lib.flad",
+        "m_lib.hash", "m_lib.lazy",
+        "m_lib.net", "m_lib.net.ftp", "m_lib.net.www",
+        "m_lib.pbar", "m_lib.rus",
+    ],
+    **kw
 )