X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=setup.py;h=3e516fc474356819e75766bf67b74d132a55ffe5;hb=4a79eaab3df5df8f85fa42eb5bb75eefb662c1b3;hp=5b84e9f3c35e5e7d12f97218be20c908715bedbb;hpb=7edd5ac485e6c9bef4debbb831ab9edda520f44b;p=m_lib.defenc.git diff --git a/setup.py b/setup.py index 5b84e9f..3e516fc 100755 --- a/setup.py +++ b/setup.py @@ -2,13 +2,19 @@ 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.*' 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", @@ -31,4 +37,5 @@ setup(name = "m_lib.defenc", platforms = "Any", packages = ["m_lib"], namespace_packages = ["m_lib"], + **kw )