mirror of https://github.com/pypa/pip
🔥 Exterminate files that aren't Git-tracked
This is a follow-up improvement for https://github.com/pypa/pip/pull/7624/files
This commit is contained in:
parent
87fa5ce642
commit
9c1a4d4c4d
|
@ -203,9 +203,8 @@ 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("# Wipe Git-untracked files before building the wheel")
|
||||
session.run("git", "clean", "-fxd", external=True, silent=True)
|
||||
|
||||
session.log("# Build distributions")
|
||||
session.run("python", "setup.py", "sdist", "bdist_wheel", silent=True)
|
||||
|
|
Loading…
Reference in New Issue