#NEWLINE# def make_named_temporary( self , identifier = None ) : #NEWLINE# #INDENT# 'Creates a named temporary file and returns the filename for it.\n        This can be usedful in some scenarious when building with external\n        tools.\n        ' #NEWLINE# dir = os . path . join ( self . builder . meta_path , 'tmp' ) #NEWLINE# try : #NEWLINE# #INDENT# os . makedirs ( dir ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# fn = os . path . join ( dir , ( 'nt-%s-%s.tmp' % ( ( identifier or 'generic' ) , os . urandom ( 20 ) . encode ( 'hex' ) ) ) ) #NEWLINE# self . named_temporaries . add ( fn ) #NEWLINE# return fn