def run(self, options, args):
if options.prune:<EOL><INDENT>previously_installed = pip_get_installed()<EOL><DEDENT>index_urls = [options.index_url] + options.extra_index_urls<EOL>with pipfaster_download_cacher(index_urls):<EOL><INDENT>requirement_set = super(FasterInstallCommand, self).run(<EOL>options, args,<EOL>)<EOL><DEDENT>required = requirement_set.requirements.values()<EOL>if not options.extra_index_urls:<EOL><INDENT>cache_installed_wheels(options.index_url, requirement_set.successfully_downloaded)<EOL><DEDENT>if not options.ignore_dependencies:<EOL><INDENT>required = trace_requirements(required)<EOL>if not options.prune:<EOL><INDENT>return requirement_set<EOL><DEDENT>extraneous = (<EOL>reqnames(previously_installed) -<EOL>reqnames(required) -<EOL>reqnames(trace_requirements([install_req_from_line('<STR_LIT>')])) -<EOL>frozenset(('<STR_LIT>',))<EOL>)<EOL>if extraneous:<EOL><INDENT>extraneous = sorted(extraneous)<EOL>pip(('<STR_LIT>', '<STR_LIT>') + tuple(extraneous))<EOL><DEDENT><DEDENT>
update install options with caching values