X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=ec46baa8e78d9269409ae932f4d5172c6639f452;hb=a0004c4d1a1a5b295b91af6cebe89ebf608cd0dc;hp=c76dc8bba9cd747b5dc56749d7ccd38a11a8d605;hpb=83f94736a59fe357b8e50ebfbc548bdafe2ccda5;p=m_lib.git diff --git a/setup.py b/setup.py index c76dc8b..ec46baa 100755 --- a/setup.py +++ b/setup.py @@ -1,9 +1,24 @@ #! /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'] = { + 'Mk4py': ['Mk4py'], + 'ZODB': ['ZODB'], + 'mx': ['mx.DateTime', 'mx.Misc'], + } setup(name = "m_lib", - version = "2.0", + version = "2.1.0", description = "Broytman Library for Python", long_description = "Broytman Library for Python, Copyright (C) 1996-2013 PhiloSoft Design", author = "Oleg Broytman", @@ -11,13 +26,10 @@ setup(name = "m_lib", 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.hash", "m_lib.hash.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 )