def METHOD_NAME(scratch_dir):
    cfnlint_dir = os.path.dirname(
        os.path.dirname(os.path.abspath(__file__)))
    if os.path.exists(os.path.join(cfnlint_dir, 'dist')):
        shutil.rmtree(os.path.join(cfnlint_dir, 'dist'))
    with cd(cfnlint_dir):
        run('%s setup.py sdist' % sys.executable)
        filename = os.listdir('dist')[0]
        shutil.move(os.path.join('dist', filename),
                    os.path.join(scratch_dir, filename))