check for missing build dir before attempting to remove it

This commit is contained in:
Bradley Lawrence 2021-10-17 17:55:06 -04:00
parent 2b90657d15
commit 7e117faa09

View file

@ -41,5 +41,5 @@ else:
version=ver, version=ver,
packages=packages packages=packages
) )
if os.path.exists('setup.py'): if os.path.exists("setup.py") and os.path.exists("build"):
shutil.rmtree("build") shutil.rmtree("build")