# HG changeset patch # User Patrick Mezard # Date 1302968798 -7200 # Node ID 0b56b1492d233ae88a4ea2d91e4dd138de58995d # Parent 3bffdf0e5948b65ead839356ef09f6569873e398 Fix setup.py calls to hg.bat on Windows diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -18,7 +18,8 @@ except ImportError: from distutils.core import setup def runcmd(cmd, env): - p = subprocess.Popen(cmd, stdout=subprocess.PIPE, + shell = os.name == 'nt' + p = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=shell, stderr=subprocess.PIPE, env=env) out, err = p.communicate() # If root is executing setup.py, but the repository is owned by