#NEWLINE# def run( self ) : #NEWLINE# #INDENT# working_directory = os . path . abspath ( ( os . getcwd ( ) + '/../' ) ) #NEWLINE# virtualenv_bin = os . path . dirname ( sys . executable ) #NEWLINE# pip = ( '%s/pip' % virtualenv_bin ) #NEWLINE# subprocess . check_call ( [ sys . executable , pip , 'install' , '.' ] , cwd = working_directory ) #NEWLINE# subprocess . check_call ( [ sys . executable , pip , 'install' , '.' ] , cwd = ( working_directory + '/grr/config/grr-response-server/' ) ) #NEWLINE# major_minor_version = '.' . join ( pkg_resources . get_distribution ( 'grr-response-core' ) . version . split ( '.' ) [ 0 : 2 ] ) #NEWLINE# subprocess . check_call ( [ sys . executable , pip , 'install' , '-f' , 'https://storage.googleapis.com/releases.grr-response.com/index.html' , ( 'grr-response-templates==%s.*' % major_minor_version ) ] , cwd = working_directory )