Commit d09f9f55 authored by Adam Groszer's avatar Adam Groszer

windows: subprocess.Popen will quote itself if needed

parent 5b83b600
...@@ -151,8 +151,7 @@ def _runsetup(setup, executable, *args): ...@@ -151,8 +151,7 @@ def _runsetup(setup, executable, *args):
setup = os.path.join(setup, 'setup.py') setup = os.path.join(setup, 'setup.py')
d = os.path.dirname(setup) d = os.path.dirname(setup)
args = [zc.buildout.easy_install._safe_arg(arg) args = list(args)
for arg in args]
args.insert(0, '-q') args.insert(0, '-q')
env = dict(os.environ) env = dict(os.environ)
if executable == sys.executable: if executable == sys.executable:
...@@ -163,7 +162,7 @@ def _runsetup(setup, executable, *args): ...@@ -163,7 +162,7 @@ def _runsetup(setup, executable, *args):
try: try:
os.chdir(d) os.chdir(d)
p = subprocess.Popen( p = subprocess.Popen(
[zc.buildout.easy_install._safe_arg(executable), setup] + args, [executable, setup] + args,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
close_fds=MUST_CLOSE_FDS, env=env) close_fds=MUST_CLOSE_FDS, env=env)
out = p.stdout.read() out = p.stdout.read()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment