Cleanup: Formatting

This commit is contained in:
Hans Goudey
2025-05-09 10:14:44 -04:00
parent d9b91c73e3
commit 1c21de6f77

View File

@@ -18,6 +18,7 @@ import subprocess
import sys
from pathlib import Path
def print_strip_lib(strip_lib: Path, prev_print_len: int) -> int:
print_str = f"Stripping: {strip_lib}"
if prev_print_len > 0:
@@ -25,9 +26,10 @@ def print_strip_lib(strip_lib: Path, prev_print_len: int) -> int:
print(print_str, end="", flush=True)
return len(print_str)
def strip_libs(strip_dir: Path) -> None:
print(f"Stripping libraries in: {strip_dir}")
prev_print_len = 0;
prev_print_len = 0
for shared_lib in strip_dir.rglob("*.so*"):
if shared_lib.suffix == ".py":
# Work around badly named sycl scripts.