From 6abacb46e49bfb5459c086ec5b4e0091ffbe128e Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 14 Aug 2017 23:37:06 +0100 Subject: [PATCH] Run the tests with the same interpreter that runs `run_tests.py` --- run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index cc86cf48..3eb33b5b 100644 --- a/run_tests.py +++ b/run_tests.py @@ -26,7 +26,7 @@ for project_path in test_projects: project_env = {str(k): str(v) for k, v in project_env.items()} # unicode not allowed in env env.update(project_env) print('Building %s with environment %s' % (project_path, project_env)) - subprocess.check_call(['cibuildwheel', project_path], env=env) + subprocess.check_call([sys.executable, '-m', 'cibuildwheel', project_path], env=env) wheels = glob('wheelhouse/*.whl') print('%s built successfully. %i wheels built.' % (project_path, len(wheels)))