mirror of https://github.com/pypa/pip
Empty build directory before building distributions
Mainly to avoid pypa/wheel#147
This commit is contained in:
parent
bda17b73e6
commit
b9555fb9d4
|
@ -203,6 +203,10 @@ def build_release(session):
|
|||
session.log("# Checkout the tag")
|
||||
session.run("git", "checkout", version, external=True, silent=True)
|
||||
|
||||
session.log("# Cleanup build/ before building the wheel")
|
||||
if release.have_files_in_folder("build"):
|
||||
shutil.rmtree("build")
|
||||
|
||||
session.log("# Build distributions")
|
||||
session.run("python", "setup.py", "sdist", "bdist_wheel", silent=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue