Use 2to3 when building under Python 3.

pull/50/head
Dwayne Litzenberger 11 years ago
parent 20e0a61ff6
commit 0fd260eae7
  1. 5
      python/setup.py

@ -20,6 +20,11 @@ except ImportError:
"ez_setup installed.\n")
raise
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

Loading…
Cancel
Save