From 231ce2e36c9a33e53163742b53a6339503d69dba Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Sat, 25 Jan 2020 13:17:29 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"=F0=9F=94=A5=20Exterminate=20files=20?= =?UTF-8?q?that=20aren't=20Git-tracked"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 9c1a4d4c4d64d72f5eff5100bbb18c008b7408ad. --- noxfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 09a1d37ea..19a6eaa00 100644 --- a/noxfile.py +++ b/noxfile.py @@ -206,8 +206,9 @@ def build_release(session): session.log("# Checkout the tag") session.run("git", "checkout", version, external=True, silent=True) - session.log("# Wipe Git-untracked files before building the wheel") - session.run("git", "clean", "-fxd", 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)