summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2012-11-16 09:43:43 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2012-11-16 09:43:43 +0100
commit48311880746d16b473098ee9ae6d0cb75181d5cc (patch)
treede50e4ac25644e37c750c862243ed94b3ca82518 /setup.py
parent04cda80884f3d11db6e81724d0afa268332ba588 (diff)
downloadastroid-git-48311880746d16b473098ee9ae6d0cb75181d5cc.tar.gz
py3k test fixes. Closes #109988
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index b8e600ef..f75de7f7 100644
--- a/setup.py
+++ b/setup.py
@@ -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"""