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 | 48311880746d16b473098ee9ae6d0cb75181d5cc (patch) | |
tree | de50e4ac25644e37c750c862243ed94b3ca82518 /setup.py | |
parent | 04cda80884f3d11db6e81724d0afa268332ba588 (diff) | |
download | astroid-git-48311880746d16b473098ee9ae6d0cb75181d5cc.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""" |