Fix build_release.py with inexistent dist-dir.

This commit is contained in:
Florian Bruhin 2016-01-05 07:14:11 +01:00
parent 129990857a
commit eefc94fb4d

View File

@ -150,7 +150,7 @@ def build_sdist():
"""Build an sdist and list the contents."""
utils.print_title("Building sdist")
shutil.rmtree('dist')
_maybe_remove('dist')
subprocess.check_call([sys.executable, 'setup.py', 'sdist'])
dist_files = os.listdir(os.path.abspath('dist'))