From 84661945763ca50c7eb383282cbdccf10a2c7506 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 6 Jul 2020 10:42:51 -0400 Subject: [PATCH] fix: Try removing shell --- cibuildwheel/windows.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cibuildwheel/windows.py b/cibuildwheel/windows.py index e7dab1c4..c94515e7 100644 --- a/cibuildwheel/windows.py +++ b/cibuildwheel/windows.py @@ -22,7 +22,7 @@ def shell(args: Sequence[Union[str, PathLike]], env: Optional[Dict[str, str]] = cwd: Optional[str] = None) -> int: command = ' '.join(str(a) for a in args) print(f'+ {command}') - return subprocess.check_call(command, env=env, cwd=cwd, shell=True) + return subprocess.check_call(list(str(a) for a in args), env=env, cwd=cwd) def get_nuget_args(version: str, arch: str) -> List[str]: @@ -172,8 +172,7 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None: else [] ) if requirements: - escaped_requirements = [f'"{s}"' for s in requirements] - shell(['pip', 'install'] + escaped_requirements, env=env) + shell(['pip', 'install'] + requirements, env=env) def build(options: BuildOptions) -> None: