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