Skip to content

Commit 8c11b56

Browse files
committed
Just use use_2to3 instead of playing with commands
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 12a31f6 commit 8c11b56

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
from distutils.command.build import build
1010
from setuptools import setup
1111
from setuptools.command.install import install as _install
12-
try:
13-
from setuptools.command.build_py import build_py_2to3 as build_py
14-
except ImportError:
15-
from setuptools.command.build_py import build_py
1612

1713
from bpython import __version__, package_dir
1814

@@ -44,7 +40,7 @@ def run(self):
4440
self.run_command('build')
4541
_install.run(self)
4642

47-
cmdclass = dict(build_py=build_py, build=build, install=install)
43+
cmdclass = dict(build=build, install=install)
4844
translations_dir = os.path.join(package_dir, 'translations')
4945

5046
# localization options
@@ -194,7 +190,8 @@ def initialize_options(self):
194190
},
195191
entry_points = entry_points,
196192
cmdclass = cmdclass,
197-
test_suite = 'bpython.test'
193+
test_suite = 'bpython.test',
194+
use_2to3 = True
198195
)
199196

200197
# vim: fileencoding=utf-8 sw=4 ts=4 sts=4 ai et sta

0 commit comments

Comments
 (0)