#NEWLINE# def find_wheels_on_path( importer , path_item , only = False ) : #NEWLINE# #INDENT# if ( ( not os . path . isdir ( path_item ) ) or ( not os . access ( path_item , os . R_OK ) ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( not only ) : #NEWLINE# #INDENT# for entry in os . listdir ( path_item ) : #NEWLINE# #INDENT# if entry . lower ( ) . endswith ( '.whl' ) : #NEWLINE# #INDENT# for dist in pkg_resources . find_distributions ( os . path . join ( path_item , entry ) ) : #NEWLINE# #INDENT# ( yield dist )