@@ -161,13 +161,17 @@ def repair(
161
161
strip : bool = False ,
162
162
library_paths : list [str ] | None = None ,
163
163
excludes : list [str ] | None = None ,
164
+ verbose : int = 0 ,
164
165
) -> str :
165
166
plat = plat or self ._policy
166
167
args = []
167
168
if library_paths :
168
169
ld_library_path = ":" .join ([* library_paths , "$LD_LIBRARY_PATH" ])
169
170
args .append (f"LD_LIBRARY_PATH={ ld_library_path } " )
170
- args .extend (["auditwheel" , "repair" , "-w" , "/io" , "--plat" , plat ])
171
+ args .append ("auditwheel" )
172
+ if verbose :
173
+ args .append (f"-{ 'v' * verbose } " )
174
+ args .extend (["repair" , "-w" , "/io" , "--plat" , plat ])
171
175
if only_plat :
172
176
args .append ("--only-plat" )
173
177
if not isa_ext_check :
@@ -643,6 +647,10 @@ def test_dependency_order(
643
647
policy = anylinux .policy
644
648
645
649
test_path = "/auditwheel_src/tests/integration/testrpath"
650
+ orig_wheel = anylinux .build_wheel (test_path )
651
+
652
+ repair_output = anylinux .repair (orig_wheel , library_paths = [f"{ test_path } /a" ], verbose = 3 )
653
+ assert 'lddtree:Could not locate libd.so, skipping' in repair_output
646
654
647
655
def test_multiple_top_level (
648
656
self , anylinux : AnyLinuxContainer , python : PythonContainer
0 commit comments