Run the tests with the same interpreter that runs run_tests.py

This commit is contained in:
Joe Rickerby
2017-08-14 23:37:06 +01:00
parent f07979ec23
commit 6abacb46e4
+1 -1
View File
@@ -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)))