def build_sdist(py):
    with cd(repo_root):
        cmd = [py, 'setup.py', 'sdist', '--formats=zip,gztar']
        run(cmd)
    
    return glob.glob(pjoin(repo_root, 'dist', '*.tar.gz'))[0]
Build sdists
dataset/ETHPy150Open jupyterhub/jupyterhub/tools/tasks.py/build_sdist