def _mk_tree():
 basedir = tempfile.mkdtemp()
 paths = ['BUILD', 'RPMS', 'SOURCES', 'SPECS', 'SRPMS']
 for path in paths:
  full = os.path.join(basedir, path)
  os.makedirs(full)
 return basedir

def _mk_tree ( ) : basedir = tempfile . mkdtemp ( ) paths = [ 'BUILD' , 'RPMS' , 'SOURCES' , 'SPECS' , 'SRPMS' ] for path in paths : full = os . path . join ( basedir , path ) os . makedirs ( full ) return basedir
create the rpm build tree .