Skip to content

Commit

Permalink
Remove 2to3 code from setup.py. (#5114)
Browse files Browse the repository at this point in the history
Python protobuf has long been a single-source codebase. 2to3 shouldn't need to run in setup.py.
  • Loading branch information
benjaminp authored and anandolee committed Sep 10, 2018
1 parent f8d56e9 commit 188c44b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions python/setup.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,14 +11,8 @@
# namespace_packages option for the "google" package. # namespace_packages option for the "google" package.
from setuptools import setup, Extension, find_packages 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 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 from distutils.spawn import find_executable


# Find the Protocol Compiler. # Find the Protocol Compiler.
Expand Down

0 comments on commit 188c44b

Please sign in to comment.