#NEWLINE# def get_package_fname( self , pattern ) : #NEWLINE# #INDENT# 'Get package matching pattern in wheeldir' #NEWLINE# path = self . wheeldir #NEWLINE# for fname in os . listdir ( path ) : #NEWLINE# #INDENT# match = re . match ( pattern , fname ) #NEWLINE# if ( ( match is not None ) or ( pattern == fname ) ) : #NEWLINE# #INDENT# return osp . abspath ( osp . join ( path , fname ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( ( 'Could not find required package matching %s' % pattern ) )