repair-wheel-command docs and error message improvements (#2058)

* Fix bug in docs for running abi3audit in repair-wheel-command on windows

* Better error message for misconfigured repair-wheel-command
This commit is contained in:
Joe Rickerby
2024-10-28 23:22:03 -04:00
committed by GitHub
parent eaa861622a
commit 66d45de432
5 changed files with 34 additions and 3 deletions
+18
View File
@@ -67,3 +67,21 @@ class OCIEngineTooOldError(FatalError):
def __init__(self, message: str) -> None:
super().__init__(message)
self.return_code = 7
class RepairStepProducedNoWheelError(FatalError):
def __init__(self) -> None:
message = textwrap.dedent(
"""
Build failed because the repair step completed successfully but
did not produce a wheel.
Your `repair-wheel-command` is expected to place the repaired
wheel in the {dest_dir} directory. See the documentation for
example configurations:
https://cibuildwheel.pypa.io/en/stable/options/#repair-wheel-command
"""
)
super().__init__(message)
self.return_code = 8