diff options
author | Brett Cannon <brett@python.org> | 2014-08-29 15:48:24 -0400 |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2014-08-29 15:48:24 -0400 |
commit | 8e23aa2b179274c9c1b128a8b3daf8d2e24cfd75 (patch) | |
tree | c234e08aa390be9bca941e66e508071e5e44a801 /setup.py | |
parent | 001469c8272a235b4f62b9b5c3ee248635168ad4 (diff) | |
parent | c2cc31874880d7f0d5bd444c6a3b17fa817e2509 (diff) | |
download | pylint-python_6.tar.gz |
Merge with defaultpython_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 absolute_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 |