Skip to content

Commit ad0f7b9

Browse files
committed
Inline clobber
1 parent 4943ec3 commit ad0f7b9

File tree

1 file changed

+3
-9
lines changed
  • src/pip/_internal/operations/install

1 file changed

+3
-9
lines changed

src/pip/_internal/operations/install/wheel.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,6 @@ def files_to_process(
538538
destfile = os.path.join(dest, basedir, f)
539539
yield File(srcfile, destfile)
540540

541-
def clobber(
542-
files, # type: Iterator[File]
543-
):
544-
# type: (...) -> None
545-
for f in files:
546-
f.save()
547-
record_installed(f.src_path, f.dest_path, f.changed)
548-
549541
files = files_to_process(
550542
ensure_text(source, encoding=sys.getfilesystemencoding()),
551543
ensure_text(lib_dir, encoding=sys.getfilesystemencoding()),
@@ -600,7 +592,9 @@ def not_entrypoint_wrapper(file):
600592

601593
files = chain(files, data_scheme_files)
602594

603-
clobber(files)
595+
for file in files:
596+
file.save()
597+
record_installed(file.src_path, file.dest_path, file.changed)
604598

605599
def pyc_source_file_paths():
606600
# type: () -> Iterator[text_type]

0 commit comments

Comments
 (0)