From 90ec1c0a64cf391f882355d3bd24457126bc2314 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 28 Mar 2018 22:57:49 +0300 Subject: [PATCH 1/1] Build(setup.py): Use setuptools instead of distutils --- setup.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/setup.py b/setup.py index 2d5061c..52bbd50 100755 --- a/setup.py +++ b/setup.py @@ -1,16 +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['python_requires'] = '>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*' - kw['install_requires'] = ['m_lib>=3.1', 'm_lib.defenc>=1.0'] +from setuptools import setup setup(name = "m_lib.full", version = "1.0.1", @@ -38,5 +28,6 @@ setup(name = "m_lib.full", platforms = "Any", packages = ["m_lib"], namespace_packages = ["m_lib"], - **kw + python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', + install_requires=['m_lib>=3.1', 'm_lib.defenc>=1.0'], ) -- 2.39.2