From 8f3064c0867654fd4ad6f730e711d1a3ed0ff656 Mon Sep 17 00:00:00 2001 From: Matthew Gidden Date: Wed, 24 Oct 2018 15:02:47 +0200 Subject: [PATCH] more fixes in setup.py --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index f7c3d9234..05fc39bc0 100755 --- a/setup.py +++ b/setup.py @@ -38,8 +38,9 @@ def run(self): 'build', ] for d in dirs: - print('removing {}'.format(d)) - shutil.rmtree(d) + if os.path.exists(d): + print('removing {}'.format(d)) + shutil.rmtree(d) def main():