From 7e117faa0958fd325e303fb97a823ee18a2df281 Mon Sep 17 00:00:00 2001 From: Bradley Lawrence Date: Sun, 17 Oct 2021 17:55:06 -0400 Subject: [PATCH] check for missing build dir before attempting to remove it --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c445bdd..aa3fb32 100755 --- a/setup.py +++ b/setup.py @@ -41,5 +41,5 @@ else: version=ver, packages=packages ) - if os.path.exists('setup.py'): + if os.path.exists("setup.py") and os.path.exists("build"): shutil.rmtree("build")