#NEWLINE# def maybe_run_configure( self , dir ) : #NEWLINE# #INDENT# fn = os . path . join ( dir , 'configure' ) #NEWLINE# logger . debug ( "checking '%s'" , self ) #NEWLINE# if ( not os . path . exists ( fn ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# logger . info ( _ ( 'running configure' ) ) #NEWLINE# p = self . popen ( fn , cwd = dir ) #NEWLINE# p . communicate ( ) #NEWLINE# if p . returncode : #NEWLINE# #INDENT# raise PgxnClientException ( ( _ ( 'configure failed with return code %s' ) % p . returncode ) )