Skip to content

Commit 69b154b

Browse files
committed
fix test
1 parent 8f994bb commit 69b154b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/auditwheel/repair.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def repair_wheel(
6565
raise ValueError(msg)
6666

6767
dest_dir = Path(match.group("name") + lib_sdir)
68-
if not dest_dir.exists():
69-
dest_dir.mkdir()
7068

7169
pool = ThreadPoolExecutor()
7270
copy_works: dict[Path, Future[t.Any]] = {}
@@ -87,6 +85,8 @@ def repair_wheel(
8785
)
8886
raise ValueError(msg)
8987

88+
if not dest_dir.exists():
89+
dest_dir.mkdir()
9090
new_soname, new_path = copylib(src_path, dest_dir, patcher, dry=True)
9191
if new_path not in copy_works:
9292
copy_works[new_path] = pool.submit(

0 commit comments

Comments
 (0)