diff options
author | Brett Cannon <brett@python.org> | 2014-08-29 11:16:29 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-08-29 11:16:29 -0400 |
commit | 29bb89fe46c7b65df777e626cac5611961a9d325 (patch) | |
tree | ac54ba8376a81bc20498fa2da6db810d06be9ac6 /setup.py | |
parent | 41bd5fd5d79925b41e72add687ede9a065f6de10 (diff) | |
download | pylint-git-29bb89fe46c7b65df777e626cac5611961a9d325.tar.gz |
Modernize to the point of working for Python 2.7 still
--HG--
branch : python_6
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -20,6 +20,7 @@ # with pylint. If not, see <http://www.gnu.org/licenses/>. """Generic Setup script, takes package info from __pkginfo__.py file. """ +from __future__ import print_function __docformat__ = "restructuredtext en" import os @@ -38,14 +39,7 @@ except ImportError: from distutils.command import install_lib USE_SETUPTOOLS = 0 -try: - # pylint: disable=no-name-in-module - # python3 - from distutils.command.build_py import build_py_2to3 as build_py -except ImportError: - # pylint: disable=no-name-in-module - # python2.x - from distutils.command.build_py import build_py +from distutils.command.build_py import build_py sys.modules.pop('__pkginfo__', None) # import optional features @@ -144,7 +138,7 @@ class MyInstallLib(install_lib.install_lib): # process manually python file in include_dirs (test data) # pylint: disable=no-name-in-module from distutils.util import run_2to3 - print('running 2to3 on', dest) + print(('running 2to3 on', dest)) run_2to3([dest]) # override this since pip/easy_install attempt to byte compile test data |