Use cwd to run test projects, not package_dir

This commit is contained in:
Joe Rickerby
2020-04-10 12:28:05 +01:00
parent e07d8038c6
commit 397393ba91
+2 -1
View File
@@ -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