def makeBuildDir():
 tmpDir = tempfile.mkdtemp()
 os.makedirs(os.path.join(tmpDir, 'RPMS', 'noarch'))
 os.makedirs(os.path.join(tmpDir, 'SPECS'))
 os.makedirs(os.path.join(tmpDir, 'BUILD'))
 os.makedirs(os.path.join(tmpDir, 'SOURCES'))
 os.makedirs(os.path.join(tmpDir, 'SRPMS'))
 log.msg(format='Created RPM build structure in %(path)r', path=tmpDir)
 return tmpDir

def makeBuildDir ( ) : tmpDir = tempfile . mkdtemp ( ) os . makedirs ( os . path . join ( tmpDir , 'RPMS' , 'noarch' ) ) os . makedirs ( os . path . join ( tmpDir , 'SPECS' ) ) os . makedirs ( os . path . join ( tmpDir , 'BUILD' ) ) os . makedirs ( os . path . join ( tmpDir , 'SOURCES' ) ) os . makedirs ( os . path . join ( tmpDir , 'SRPMS' ) ) log . msg ( format = 'Created RPM build structure in %(path)r' , path = tmpDir ) return tmpDir
set up the temporary directory for building rpms .