def _build_tarball(src_repo) -> str:
run = partial(subprocess.run, cwd=src_repo, check=True)<EOL>run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>src_repo = Path(src_repo)<EOL>if os.path.exists(src_repo / '<STR_LIT>' / '<STR_LIT>'):<EOL><INDENT>run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL><DEDENT>run(['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>distributions = Path(src_repo) / '<STR_LIT>' / '<STR_LIT>' / '<STR_LIT>'<EOL>return next(distributions.glob('<STR_LIT>'))<EOL>
Build a tarball from src and return the path to it