Fixed: Install fails on Windows with Python 3.3. Calling subprocess with

shell=True works.

authorMike Mueller <mmueller>
changesetaefd37dbb754
branchstable
phasepublic
hiddenno
parent revision#ad5762700383 Update version number in spec file
child revision#49aeb5521e29 testlib: fix for python 3.3
files modified by this revision
setup.py
# HG changeset patch
# User Mike Mueller <mmueller>
# Date 1372421702 -7200
# Fri Jun 28 14:15:02 2013 +0200
# Branch stable
# Node ID aefd37dbb754a2d96f006f8eddd629bab61e93e0
# Parent ad57627003835e2254115b025bd80dd1e2086422
Fixed: Install fails on Windows with Python 3.3. Calling subprocess with
`shell=True` works.

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