diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-11-16 09:43:43 +0100 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-11-16 09:43:43 +0100 |
commit | af4ebca0f5242c69c566d434d4bbafb36d7b34d2 (patch) | |
tree | b128d58c7354d4fee5ac8fc0fd68dc26cc984a56 /setup.py | |
parent | a1e6557a27e442627e79e5fc88fc8f94a0f13ec9 (diff) | |
download | astroid-af4ebca0f5242c69c566d434d4bbafb36d7b34d2.tar.gz |
py3k test fixes. Closes #109988
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -50,7 +50,7 @@ sys.modules.pop('__pkginfo__', None) __pkginfo__ = __import__("__pkginfo__") # import required features from __pkginfo__ import modname, version, license, description, \ - web, author, author_email + web, author, author_email distname = getattr(__pkginfo__, 'distname', modname) scripts = getattr(__pkginfo__, 'scripts', []) @@ -137,7 +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) # parens are NOT optional here for py3k compat + check_call(['2to3', '-wn', dest]) def install(**kwargs): """setup entry point""" |