Skip to content

Commit

Permalink
FIX: make python setup.py clean also delete __pycache__ folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ogrisel committed Mar 28, 2014
1 parent a3f81d9 commit 4c4cb7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def run(self):
or filename.endswith('.dll')
or filename.endswith('.pyc')):
os.unlink(os.path.join(dirpath, filename))

for dirname in dirnames:
if dirname == '__pycache__':
shutil.rmtree(os.path.join(dirpath, dirname))


###############################################################################
Expand Down

0 comments on commit 4c4cb7a

Please sign in to comment.