From: Oleg Broytman Date: Wed, 28 Mar 2018 19:57:35 +0000 (+0300) Subject: Build(setup.py): Use setuptools instead of distutils X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=79481ce5988d15bed2c4ac4a3d8d3382af5a1478;p=m_lib.git Build(setup.py): Use setuptools instead of distutils --- 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'], + }, )