From 64aafff708367f5211b321d478bf2927728b2a4c Mon Sep 17 00:00:00 2001 From: Sylvain Th?nault Date: Thu, 3 Oct 2013 16:36:18 +0200 Subject: Backport fix done by Benedikt Morbach on pylint for python3 install on win32 platforms / cross compilation. Closes #180836 --- ChangeLog | 3 +++ setup.py | 7 ++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b1614dc..eabe38a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ ChangeLog for logilab.common * modutils: don't propagate IOError when package's __init__.py file doesn't exist (#174606) + * fix some cases of failing python3 install on windows platform / cross + compilation (#180836) + 2013-07-26 -- 0.60.0 * configuration: rename option_name method into option_attrname (#140667) diff --git a/setup.py b/setup.py index 9ac5255..764651d 100644 --- a/setup.py +++ b/setup.py @@ -139,11 +139,12 @@ class MyBuildPy(build_py): shutil.copytree(directory, dest) if sys.version_info >= (3, 0): # process manually python file in include_dirs (test data) - from subprocess import check_call + from distutils.util import run_2to3 # brackets are NOT optional here for py3k compat print('running 2to3 on', dest) - # Needs `shell=True` to run on Windows. - check_call(['2to3', '-wn', dest], shell=sys.platform=='win32') + run_2to3([dest]) + + def install(**kwargs): -- cgit v1.2.1