Remove Plinth.egg-info/ during clean. Fixes #335.

This commit is contained in:
James Valleroy 2016-02-05 20:24:24 -05:00 committed by Sunil Mohan Adapa
parent 04c096972f
commit 73c125f1ae
No known key found for this signature in database
GPG Key ID: 36C361440C9BC971

View File

@ -107,9 +107,10 @@ class CustomBuild(build):
class CustomClean(clean):
"""Override clean command to clean documentation directory"""
"""Override clean command to clean doc, locales, and egg-info."""
def run(self):
"""Execute clean command"""
subprocess.check_call(['rm', '-rf', 'Plinth.egg-info/'])
subprocess.check_call(['make', '-C', 'doc', 'clean'])
for dir_path, dir_names, file_names in os.walk('plinth/locale/'):
for file_name in file_names: