def get_local_file_dist(self):
if not os.path.isfile(self.path):<EOL><INDENT>return<EOL><DEDENT>log.info('<STR_LIT>'<EOL>'<STR_LIT>'.format(self.path))<EOL>try:<EOL><INDENT>dist = self._do_download(find_links=[self.path])<EOL><DEDENT>except Exception as e:<EOL><INDENT>if DEBUG:<EOL><INDENT>raise<EOL><DEDENT>log.warn(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(PACKAGE_NAME, self.path, str(e)))<EOL>dist = None<EOL><DEDENT>if dist is not None and self.auto_upgrade:<EOL><INDENT>upgrade = self._do_upgrade(dist)<EOL>if upgrade is not None:<EOL><INDENT>dist = upgrade<EOL><DEDENT><DEDENT>return dist<EOL>
Handle importing from a source archive; this also uses setup_requires
but points easy_install directly to the source archive.