Skip to content

Commit

Permalink
Cleanup now removes ./dist
Browse files Browse the repository at this point in the history
  • Loading branch information
Atlamillias committed Aug 3, 2021
1 parent 64cef64 commit 297119c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -11,9 +11,12 @@ def finalize_options(self):
pass

def run(self):
shutil.rmtree("./build")
shutil.rmtree("./dist")
shutil.rmtree("./dpgwidgets.egg-info")
dirs = ("./build", "./dist", "./dpgwidgets.egg-info")
for dir in dirs:
try:
shutil.rmtree(dir)
except OSError:
pass


setuptools.setup(cmdclass = {"clean": Cleanup})

0 comments on commit 297119c

Please sign in to comment.