@task
def sdist(ctx, deploy=False, remove_dist=False):
 clean(ctx, remove_dist, create_dirs=True)
 ctx.run(('python setup.py sdist' + (' register upload' if deploy else '')))
 announce()

@ task def sdist ( ctx , deploy = False , remove_dist = False ) : clean ( ctx , remove_dist , create_dirs = True ) ctx . run ( ( 'python setup.py sdist' + ( ' register upload' if deploy else '' ) ) ) announce ( )
create source distribution .