]> git.phdru.name Git - m_lib.defenc.git/blobdiff - setup.py
Build(setup.py): Use setuptools instead of distutils
[m_lib.defenc.git] / setup.py
index 6fc6e5fe7206536f1811c31caa393ca5e1edacac..b143518a8842e51dfa631bca8e23a5aed288fc51 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,20 +1,11 @@
 #! /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.*'
+from setuptools import setup
 
 setup(name = "m_lib.defenc",
     version = "1.0.0",
     description = "Get default encoding",
-    long_description = "Get default encoding. A part of Broytman Library for Python, Copyright (C) 1996-2017 PhiloSoft Design",
+    long_description = "Get default encoding. A part of Broytman Library for Python, Copyright (C) 1996-2018 PhiloSoft Design",
     author = "Oleg Broytman",
     author_email = "phd@phdru.name",
     url = "http://phdru.name/Software/Python/#m_lib",
@@ -37,5 +28,5 @@ setup(name = "m_lib.defenc",
     platforms = "Any",
     packages = ["m_lib"],
     namespace_packages = ["m_lib"],
-    **kw
+    python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
 )