Commit 0fd260ea authored by Dwayne Litzenberger's avatar Dwayne Litzenberger

Use 2to3 when building under Python 3.

parent 20e0a61f
...@@ -20,7 +20,12 @@ except ImportError: ...@@ -20,7 +20,12 @@ except ImportError:
"ez_setup installed.\n") "ez_setup installed.\n")
raise raise
from distutils.command.clean import clean as _clean from distutils.command.clean import clean as _clean
from distutils.command.build_py import build_py as _build_py 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
maintainer_email = "protobuf@googlegroups.com" maintainer_email = "protobuf@googlegroups.com"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment