From 397393ba9180d5317f9076c31dcd88df1c9ea1ef Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Fri, 10 Apr 2020 12:27:53 +0100 Subject: [PATCH] Use cwd to run test projects, not package_dir --- test/shared/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/shared/utils.py b/test/shared/utils.py index 0b463334..d1e1f0a1 100644 --- a/test/shared/utils.py +++ b/test/shared/utils.py @@ -64,8 +64,9 @@ def cibuildwheel_run(project_path, env=None, add_env=None, output_dir=None): with TemporaryDirectoryIfNone(output_dir) as _output_dir: subprocess.check_call( - [sys.executable, '-m', 'cibuildwheel', '--output-dir', str(_output_dir), project_path], + [sys.executable, '-m', 'cibuildwheel', '--output-dir', str(_output_dir)], env=env, + cwd=project_path, ) wheels = os.listdir(_output_dir) return wheels