X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=setup.py;fp=setup.py;h=34500f87cce6d232cc908aa05813c96bb2e62f50;hp=710e5e38d4e3ef93fbff845d5c2575bc73fdc624;hb=79481ce5988d15bed2c4ac4a3d8d3382af5a1478;hpb=3996fdc3ada993088889dc32a5a57c0c7023eea9 diff --git a/setup.py b/setup.py index 710e5e3..34500f8 100755 --- a/setup.py +++ b/setup.py @@ -1,21 +1,6 @@ #! /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", @@ -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'], + }, )