Remove `dist/` before copying the dists back

This commit is contained in:
Sviatoslav Sydorenko 2020-01-28 16:36:58 +01:00
parent 3da19325f4
commit bed90abe2d
No known key found for this signature in database
GPG Key ID: 9345E8FEA89CA455
1 changed files with 1 additions and 0 deletions

View File

@ -253,6 +253,7 @@ def build_release(session):
tmp_dist_dir = build_dir_path / 'dist'
session.log(f"# Copying dists from {tmp_dist_dir}")
shutil.rmtree('dist', ignore_errors=True) # remove empty `dist/`
shutil.copytree(tmp_dist_dir, 'dist')