From 2e3bc016b43752b8ab20db52827855a8c68efeaa Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Sat, 7 Sep 2019 21:47:15 +0100 Subject: [PATCH] Try and avoid relying on global virtualenv command --- cibuildwheel/macos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index cba86b31..1a9b90de 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -125,7 +125,7 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef # there are no dependencies that were pulled in at build time. call(['pip', 'install', 'virtualenv'], env=env) venv_dir = tempfile.mkdtemp() - call(['virtualenv', venv_dir], env=env) + call(['python', '-m', 'virtualenv', venv_dir], env=env) env['PATH'] = os.pathsep.join([os.path.join(venv_dir, 'bin'), env['PATH']]) # check that we are using the Python from the virtual environment