Skip to content

Commit 457c929

Browse files
committed
3/3 repair_wheel
1 parent ee0184d commit 457c929

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/auditwheel/repair.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _patch_fn(fn: Path) -> None:
121121
if n in soname_map:
122122
replacements.append((n, soname_map[n][0]))
123123
if replacements:
124-
patcher.replace_needed(path, *replacements)
124+
POOL.submit(path, patcher.replace_needed, path, *replacements)
125125

126126
if update_tags:
127127
ctx.out_wheel = add_platforms(ctx, abis, get_replace_platforms(abis[0]))
@@ -131,13 +131,15 @@ def _patch_fn(fn: Path) -> None:
131131
extensions = external_refs_by_fn.keys()
132132
strip_symbols(itertools.chain(libs_to_strip, extensions))
133133

134+
POOL.wait()
134135
return ctx.out_wheel
135136

136137

137138
def strip_symbols(libraries: Iterable[Path]) -> None:
138139
for lib in libraries:
139140
logger.info("Stripping symbols from %s", lib)
140-
check_call(["strip", "-s", lib])
141+
POOL.submit_chain(lib, check_call, ["strip", "-s", lib])
142+
POOL.wait()
141143

142144

143145
def get_new_soname(src_path: Path, dest_dir: Path) -> tuple[str, Path]:

0 commit comments

Comments
 (0)