From 4a0d05df493f7f4bfe9c3c39ed281995e0ce4d99 Mon Sep 17 00:00:00 2001 From: Nikolaus Waxweiler Date: Wed, 4 Jul 2018 15:56:12 +0100 Subject: [PATCH] macOS: run test_command in shell Fixes https://github.com/joerick/cibuildwheel/issues/39. --- cibuildwheel/macos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index e743c6f5..a1239261 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -128,7 +128,7 @@ def build(project_dir, package_name, output_dir, test_command, test_requires, be # (this ensures that Python runs the tests against the installed wheel # and not the repo code) test_command_prepared = prepare_command(test_command, project=abs_project_dir) - call(shlex.split(test_command_prepared), cwd=os.environ['HOME'], env=env) + call(test_command_prepared, cwd=os.environ['HOME'], env=env, shell=True) # we're all done here; move it to output shutil.move(delocated_wheel, output_dir)