Skip to content

Commit 094d7c9

Browse files
committed
fix: update cibuildwheel.linux.troubleshoot to know about build
1 parent b5eaaa2 commit 094d7c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cibuildwheel/linux.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def build(options: BuildOptions) -> None:
309309

310310

311311
def troubleshoot(package_dir: Path, error: Exception) -> None:
312-
if isinstance(error, subprocess.CalledProcessError) and error.cmd[0:2] == ["pip", "wheel"]:
312+
if isinstance(error, subprocess.CalledProcessError) and (
313+
error.cmd[0:2] == ["pip", "wheel"] or error.cmd[0:3] == ["python", "-m", "build"]
314+
):
313315
# the 'pip wheel' step failed.
314316
print("Checking for common errors...")
315317
so_files = list(package_dir.glob("**/*.so"))

0 commit comments

Comments
 (0)