From 84ba539413f84d320a4a59db95d38361b054383e Mon Sep 17 00:00:00 2001 From: Mike Mueller Date: Fri, 28 Jun 2013 14:15:02 +0200 Subject: Fixed: Install fails on Windows with Python 3.3. Calling subprocess with `shell=True` works. --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cc54251..8f27b3b 100644 --- a/setup.py +++ b/setup.py @@ -140,8 +140,10 @@ class MyBuildPy(build_py): 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) # brackets are NOT optional here for py3k compat - check_call(['2to3', '-wn', dest]) + # 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=True) def install(**kwargs): -- cgit v1.2.1