@@ -161,13 +161,17 @@ def repair(
161161 strip : bool = False ,
162162 library_paths : list [str ] | None = None ,
163163 excludes : list [str ] | None = None ,
164+ verbose : int = 0 ,
164165 ) -> str :
165166 plat = plat or self ._policy
166167 args = []
167168 if library_paths :
168169 ld_library_path = ":" .join ([* library_paths , "$LD_LIBRARY_PATH" ])
169170 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 ])
171175 if only_plat :
172176 args .append ("--only-plat" )
173177 if not isa_ext_check :
@@ -643,6 +647,10 @@ def test_dependency_order(
643647 policy = anylinux .policy
644648
645649 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
646654
647655 def test_multiple_top_level (
648656 self , anylinux : AnyLinuxContainer , python : PythonContainer
0 commit comments