[pkg] don't run 2to3

The code is now directly py3k-compatible (starting from 3.3). Closes #266382.

authorJulien Cristau <julien.cristau@logilab.fr>
changeseta0b76bd72618
branchdefault
phasepublic
hiddenno
parent revision#1d824a1c4577 [py3k] dict.keys() is now an iterator/memoryview
child revision#c09e43e9200f [test] remove useless try block
files modified by this revision
setup.py
# HG changeset patch
# User Julien Cristau <julien.cristau@logilab.fr>
# Date 1411637373 -7200
# Thu Sep 25 11:29:33 2014 +0200
# Node ID a0b76bd7261804495814bb834628ccdbbe4c181a
# Parent 1d824a1c4577c0e94a5663dd8c2c53a7f0d9ea29
[pkg] don't run 2to3

The code is now directly py3k-compatible (starting from 3.3).
Closes #266382.

diff --git a/setup.py b/setup.py
@@ -36,16 +36,11 @@
1  except ImportError:
2      from distutils.core import setup
3      from distutils.command import install_lib
4      USE_SETUPTOOLS = 0
5 
6 -try:
7 -    # python3
8 -    from distutils.command.build_py import build_py_2to3 as build_py
9 -except ImportError:
10 -    # python2.x
11 -    from distutils.command.build_py import build_py
12 +from distutils.command.build_py import build_py
13 
14  sys.modules.pop('__pkginfo__', None)
15  # import optional features
16  __pkginfo__ = __import__("__pkginfo__")
17  # import required features