Inline clobber
@@ -548,14 +548,6 @@ def install_unpacked_wheel(
destfile = os.path.join(dest, basedir, f)
yield DiskFile(srcfile, destfile)
- def clobber(
- files, # type: Iterable[File]
- ):
- # type: (...) -> None
- for file in files:
- file.save()
- record_installed(file.src_path, file.dest_path, file.changed)
-
files = files_to_process(
ensure_text(source, encoding=sys.getfilesystemencoding()),
ensure_text(lib_dir, encoding=sys.getfilesystemencoding()),
@@ -608,7 +600,9 @@ def install_unpacked_wheel(
files = chain(files, data_scheme_files)
- clobber(files)
+ for file in files:
+ file.save()
+ record_installed(file.src_path, file.dest_path, file.changed)
def pyc_source_file_paths():
# type: () -> Iterator[text_type]
