Backport fix done by Benedikt Morbach on pylint for python3 install on win32 platforms / cross compilation. Closes #180836

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changeset48b033f2b81e
branchdefault
phasepublic
hiddenno
parent revision#e9fc9f452231 merge default heads
child revision#f55cc5bc04d3 [modutils] ensure file is closed, may cause pb depending on the interpreter (eg pypy). Closes #180876
files modified by this revision
ChangeLog
setup.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1380810978 -7200
# Thu Oct 03 16:36:18 2013 +0200
# Node ID 48b033f2b81e1ceb7eb08eadc902ab67f8c3eb39
# Parent e9fc9f4522317c21d543a41a4f630d5fb3142e8f
Backport fix done by Benedikt Morbach on pylint for python3 install on win32 platforms / cross compilation. Closes #180836

diff --git a/ChangeLog b/ChangeLog
@@ -3,10 +3,13 @@
1 
2  --
3     * modutils: don't propagate IOError when package's __init__.py file doesn't
4       exist (#174606)
5 
6 +   * fix some cases of failing python3 install on windows platform / cross
7 +     compilation (#180836)
8 +
9  2013-07-26  --  0.60.0
10      * configuration: rename option_name method into option_attrname (#140667)
11 
12      * deprecation: new DeprecationManager class (closes #108205)
13 
diff --git a/setup.py b/setup.py
@@ -137,15 +137,16 @@
14                  dest = join(basedir, directory)
15                  shutil.rmtree(dest, ignore_errors=True)
16                  shutil.copytree(directory, dest)
17                  if sys.version_info >= (3, 0):
18                      # process manually python file in include_dirs (test data)
19 -                    from subprocess import check_call
20 +                    from distutils.util import run_2to3
21                      # brackets are NOT optional here for py3k compat
22                      print('running 2to3 on', dest)
23 -                    # Needs `shell=True` to run on Windows.
24 -                    check_call(['2to3', '-wn', dest], shell=sys.platform=='win32')
25 +                    run_2to3([dest])
26 +
27 +
28 
29 
30  def install(**kwargs):
31      """setup entry point"""
32      if USE_SETUPTOOLS: