From fdc2ba8715f59bab09641672d3740bad57287523 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Sat, 7 Sep 2019 20:34:29 +0100 Subject: [PATCH] Try and work around the fact we can't source activate --- cibuildwheel/macos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/macos.py b/cibuildwheel/macos.py index 8b26c341..3111e26f 100644 --- a/cibuildwheel/macos.py +++ b/cibuildwheel/macos.py @@ -125,7 +125,8 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef call(['pip', 'install', 'virtualenv'], env=env) venv_dir = tempfile.mkdtemp() call(['virtualenv', venv_dir], env=env) - call(['source', os.path.join(venv_dir, 'bin', 'activate')], env=env) + env['PATH'] = os.pathsep.join([os.path.join(venv_dir, 'bin'), env['PATH']]) + call(['which', 'python'], env=env) # install the wheel call(['pip', 'install', delocated_wheel + test_extras], env=env)