X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=4b66dbf6f3cec86e5e07fe3d1be64b9850aedf51;hb=27e7c8b8b7dc7d50c0e4cfb16a6b399433bc5324;hp=857eceddd2a828ae5baac8326903b78bed640ba5;hpb=d7c459a9f979c4978cf07ff11056512a852fd61d;p=m_lib.git diff --git a/setup.py b/setup.py index 857eced..4b66dbf 100755 --- a/setup.py +++ b/setup.py @@ -1,16 +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 = "1.4", - description = "Broytman Library for Python", - long_description = "Broytman Library for Python, Copyright (C) 1996-2012 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.lazy", - "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", "m_lib.rus"] + version = "2.1.1", + description = "Broytman Library for Python", + long_description = "Broytman Library for Python, Copyright (C) 1996-2013 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.hash", "m_lib.lazy", + "m_lib.net", "m_lib.net.ftp", "m_lib.net.www", + "m_lib.pbar", "m_lib.rus", + ], + **kw )