[packaging] fix regression introduced by aefd37dbb754 leading to crash when installing python3 version of the lib on a linux platform

authorSylvain Thénault <sylvain.thenault@logilab.fr>
changeset1ad9bfc058cf
branchdefault
phasepublic
hiddenno
parent revision#85c903003289 0.60
child revision#5723c613242e Added tag logilab-common-version-0.60.0 for changeset 1ad9bfc058cf, #5dedc92bcc45 fix rpm spec version, #0eb17fe0d9da [testlib] handle skips in setUp and tearDown
files modified by this revision
setup.py
# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1374830898 -7200
# Fri Jul 26 11:28:18 2013 +0200
# Node ID 1ad9bfc058cf19eb453ff558415bc62c1ca158e1
# Parent 85c9030032896c4a19a719d3472039b58fa75f09
[packaging] fix regression introduced by aefd37dbb754 leading to crash when installing python3 version of the lib on a linux platform

diff --git a/setup.py b/setup.py
@@ -141,11 +141,11 @@
1                      # process manually python file in include_dirs (test data)
2                      from subprocess import check_call
3                      # brackets are NOT optional here for py3k compat
4                      print('running 2to3 on', dest)
5                      # Needs `shell=True` to run on Windows.
6 -                    check_call(['2to3', '-wn', dest], shell=True)
7 +                    check_call(['2to3', '-wn', dest], shell=sys.platform=='win32')
8 
9 
10  def install(**kwargs):
11      """setup entry point"""
12      if USE_SETUPTOOLS: