瀏覽代碼

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.
Benjamin Peterson 7 年之前
父節點
當前提交
188c44b117
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      python/setup.py

+ 1 - 7
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.