mirror of https://github.com/pypa/pip
Remove `dist/` before copying the dists back
This commit is contained in:
parent
3da19325f4
commit
bed90abe2d
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue