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")