Commit 88ec6983 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

run 2to3 on test data files. Closes #120897

--HG--
branch : stable
parent 085b1eb1a906
......@@ -137,6 +137,11 @@ class MyBuildPy(build_py):
dest = join(basedir, directory)
shutil.rmtree(dest, ignore_errors=True)
shutil.copytree(directory, dest)
if sys.version_info >= (3, 0):
# process manually python file in include_dirs (test data)
from subprocess import check_call
print('running 2to3 on', dest) # brackets are NOT optional here for py3k compat
check_call(['2to3', '-wn', dest])
def install(**kwargs):
......
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