Remove no-op calls to WheelCache.cleanup

This commit is contained in:
Chris Hunt 2020-02-04 23:06:02 -05:00
parent eead579049
commit 77e9b79d0e
3 changed files with 2 additions and 7 deletions

View File

@ -96,8 +96,5 @@ class FreezeCommand(Command):
exclude_editable=options.exclude_editable,
)
try:
for line in freeze(**freeze_kwargs):
sys.stdout.write(line + '\n')
finally:
wheel_cache.cleanup()
for line in freeze(**freeze_kwargs):
sys.stdout.write(line + '\n')

View File

@ -447,7 +447,6 @@ class InstallCommand(RequirementCommand):
# Clean up
if not options.no_clean:
requirement_set.cleanup_files()
wheel_cache.cleanup()
if options.target_dir:
self._handle_target_dir(

View File

@ -194,4 +194,3 @@ class WheelCommand(RequirementCommand):
finally:
if not options.no_clean:
requirement_set.cleanup_files()
wheel_cache.cleanup()