pylint #51251 fix packaging of test directory [resolved]

Test files should be excluded from standard build to be able to use standard disutils import of py3k:

  # python3
  from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
  # python2.x
  from distutils.command.build_py import build_py

Maybe using data_files or include_dirs ? And check automatic build by lgp build -d py3k.

We have to use a specific find command to avoid the test directory to be translated:

find . ! -path "*/test/*py" -name "*py" -exec 2to3-3.1 -wn {} \;
appeared in<not specified>
done in0.23.0
load left0.000
closed by<not specified>