fix: site-packages detection on manual package builds

This commit is contained in:
2026-07-05 22:56:40 +08:00
parent 433931477e
commit 63c464b51a
2 changed files with 33 additions and 6 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ def remove_suffix(s, suffix):
Returns:
str, bytes:
"""
return s[:len(suffix)] if s.endswith(suffix) else s
return s[:-len(suffix)] if s.endswith(suffix) else s
def remove_shell_warning(s):