#NEWLINE# def _install_component( self , component , destdir , release = True ) : #NEWLINE# #INDENT# installed_files = list ( ) #NEWLINE# manifest_name = ( 'install_manifest_%s.txt' % component ) #NEWLINE# if ( ( not release ) and sys . platform . startswith ( 'win' ) ) : #NEWLINE# #INDENT# manifest_name = ( 'install_manifest_%s_debug.txt' % component ) #NEWLINE# #UNINDENT# manifest_path = os . path . join ( self . path , manifest_name ) #NEWLINE# if ( not os . path . exists ( manifest_path ) ) : #NEWLINE# #INDENT# if ( component == 'test' ) : #NEWLINE# #INDENT# return list ( ) #NEWLINE# #UNINDENT# mask = self . _read_install_mask ( component ) #NEWLINE# if release : #NEWLINE# #INDENT# mask . extend ( self . _read_install_mask ( 'release' ) ) #NEWLINE# #UNINDENT# if ( ( not mask ) and ( component == 'runtime' ) ) : #NEWLINE# #INDENT# def filter_fun( x ) : #NEWLINE# #INDENT# return ( qisys . sh . is_runtime ( x ) and ( x != 'package.xml' ) ) #NEWLINE# #UNINDENT# return qisys . sh . install ( self . path , destdir , filter_fun = filter_fun ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# mask . append ( 'exclude .*\\.mask' ) #NEWLINE# mask . append ( 'exclude package\\.xml' ) #NEWLINE# return self . _install_with_mask ( destdir , mask ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# with open ( manifest_path , 'r' ) as fp : #NEWLINE# #INDENT# lines = fp . readlines ( ) #NEWLINE# for line in lines : #NEWLINE# #INDENT# line = line . strip ( ) #NEWLINE# src = os . path . join ( self . path , line ) #NEWLINE# dest = os . path . join ( destdir , line ) #NEWLINE# qisys . sh . install ( src , dest ) #NEWLINE# installed_files . append ( line ) #NEWLINE# #UNINDENT# #UNINDENT# return installed_files