def untar(tarball):
 if os.path.exists(sdist_root):
  shutil.rmtree(sdist_root)
 os.makedirs(sdist_root)
 with cd(sdist_root):
  run(['tar', '-xzf', tarball])
 return glob.glob(pjoin(sdist_root, '*'))[0]

def untar ( tarball ) : if os . path . exists ( sdist_root ) : shutil . rmtree ( sdist_root ) os . makedirs ( sdist_root ) with cd ( sdist_root ) : run ( [ 'tar' , '-xzf' , tarball ] ) return glob . glob ( pjoin ( sdist_root , '*' ) ) [ 0 ]
extract sdist .