From 6051b5918c3d1d7120f3d546410c937c3a2b0c09 Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Thu, 11 Apr 2013 11:15:04 +0200 Subject: run 2to3 on test data files. Closes #120897 --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 47cca43..cc54251 100644 --- a/setup.py +++ b/setup.py @@ -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): -- cgit v1.2.1