Skip to content

Commit

Permalink
Remove crude and external libs after building in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
romeric committed Apr 30, 2017
1 parent 1dbd452 commit 3e59082
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ def Clean(self):
else:
execute('cd '+_path+' && echo rm -rf *.so && rm -rf *.so *.'+self.extension_postfix)

# clean all crude and ext libs if any - this is dangerous if setup.py is from outside the directory
execute("find . -name \*.so -delete")
execute("find . -name \*.pyc -delete")


def Build(self):

Expand Down

0 comments on commit 3e59082

Please sign in to comment.