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