#NEWLINE# def build_sdist( py ) : #NEWLINE# #INDENT# 'Build sdists\n    \n    Returns the path to the tarball\n    ' #NEWLINE# with cd ( repo_root ) : #NEWLINE# #INDENT# cmd = [ py , 'setup.py' , 'sdist' , '--formats=zip,gztar' ] #NEWLINE# run ( py ) #NEWLINE# #UNINDENT# return glob . glob ( pjoin ( repo_root , 'dist' , '*.tar.gz' ) ) [ 0 ]