forked from bitsandbytes-foundation/bitsandbytes
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes bitsandbytes-foundation#1114 Co-authored-by: Titus von Koeller <[email protected]>
- Loading branch information
1 parent
292abb6
commit fdfdacb
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import argparse | ||
import subprocess | ||
|
||
|
||
def main(): | ||
ap = argparse.ArgumentParser() | ||
ap.add_argument("wheels", nargs="*") | ||
args = ap.parse_args() | ||
for whl in args.wheels: | ||
print(f"### `{whl}`") | ||
|
||
audit_wheel_output = subprocess.run( | ||
["auditwheel", "show", whl], | ||
capture_output=True, | ||
text=True, | ||
errors="backslashreplace", | ||
) | ||
|
||
if audit_wheel_output.stdout: | ||
print(audit_wheel_output.stdout) | ||
|
||
if audit_wheel_output.stderr: | ||
print(f"**Error:**\n```{audit_wheel_output.stderr}```") | ||
|
||
print("---") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters