aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2018-09-10 13:35:38 -0700
committerJie Luo <anandolee@gmail.com>2018-09-10 13:35:38 -0700
commit188c44b11748670e28c8150c742dbaf3f7b2e0cf (patch)
treee5bd820b79b7dd86855985880c880f7d1705fc22
parentf8d56e929e35e822f62912fa0c91aa1e640cc373 (diff)
downloadprotobuf-188c44b11748670e28c8150c742dbaf3f7b2e0cf.tar.gz
protobuf-188c44b11748670e28c8150c742dbaf3f7b2e0cf.tar.bz2
protobuf-188c44b11748670e28c8150c742dbaf3f7b2e0cf.zip
Remove 2to3 code from setup.py. (#5114)
Python protobuf has long been a single-source codebase. 2to3 shouldn't need to run in setup.py.
-rwxr-xr-xpython/setup.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/python/setup.py b/python/setup.py
index 9a02a246..c2769d04 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -11,14 +11,8 @@ import platform
# namespace_packages option for the "google" package.
from setuptools import setup, Extension, find_packages
+from distutils.command.build_py import build_py as _build_py
from distutils.command.clean import clean as _clean
-
-if sys.version_info[0] == 3:
- # Python 3
- from distutils.command.build_py import build_py_2to3 as _build_py
-else:
- # Python 2
- from distutils.command.build_py import build_py as _build_py
from distutils.spawn import find_executable
# Find the Protocol Compiler.