def get_distribution_names(self):
result = set()<EOL>for root, dirs, files in os.walk(self.base_dir):<EOL><INDENT>for fn in files:<EOL><INDENT>if self.should_include(fn, root):<EOL><INDENT>fn = os.path.join(root, fn)<EOL>url = urlunparse(('<STR_LIT:file>', '<STR_LIT>',<EOL>pathname2url(os.path.abspath(fn)),<EOL>'<STR_LIT>', '<STR_LIT>', '<STR_LIT>'))<EOL>info = self.convert_url_to_download_info(url, None)<EOL>if info:<EOL><INDENT>result.add(info['<STR_LIT:name>'])<EOL><DEDENT><DEDENT><DEDENT>if not self.recursive:<EOL><INDENT>break<EOL><DEDENT><DEDENT>return result<EOL>
Return all the distribution names known to this locator.