Skip to content

Commit d7ce569

Browse files
authored
Fix undefined name in purelib.py (#604)
1 parent 8041957 commit d7ce569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pip_install/extract_wheels/lib/purelib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ def _spread_purelib(purelib_dir: pathlib.Path, root_dir: str) -> None:
6060
for child in purelib_dir.iterdir():
6161
if child.is_dir():
6262
backport_copytree(src=child, dst=pathlib.Path(root_dir, child.name))
63-
elif not pathlib.Path(root_dir, grandchild.name).exists():
63+
elif not pathlib.Path(root_dir, child.name).exists():
6464
shutil.copy(
65-
src=str(grandchild),
65+
src=str(child),
6666
dst=root_dir,
6767
)

0 commit comments

Comments
 (0)