#NEWLINE# def _sign( self ) : #NEWLINE# #INDENT# if os . path . isfile ( ( 'dist/%s.tar.gz.asc' % self . fullname ) ) : #NEWLINE# #INDENT# sign_opts = [ ( '--output dist/%s.tar.gz.sig' % self . fullname ) , ( '--dearmor dist/%s.tar.gz.asc' % self . fullname ) ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# sign_opts = [ '--detach-sign' , ( 'dist/%s.tar.gz' % self . fullname ) ] #NEWLINE# if self . keyid : #NEWLINE# #INDENT# sign_opts . insert ( 1 , ( '--default-key ' + self . keyid ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . execute ( os . system , ( ( 'gpg ' + ' ' . join ( sign_opts ) ) , ) ) #NEWLINE# if ( os . system ( ( 'gpg --verify dist/%s.tar.gz.sig' % self . fullname ) ) != 0 ) : #NEWLINE# #INDENT# raise DistutilsSetupError ( 'Error verifying signature!' )