й¼]Ø ã@sVddlZddlmZddlmZddlmZGdd„deƒZdS)éN)ÚCommand)Ú remove_tree)Úlogc@s[eZdZdZddddddgZdgZdd„Zdd„Zdd„ZdS)Úcleanz-clean up temporary files from 'build' commandú build-base=Úbú2base build directory (default: 'build.build-base')ú build-lib=Nú}tjj|ƒr‘t|d|jƒqctj d|ƒqcW|jsêy'tj |jƒtjd|jƒWntk réYnXdS)NÚdry_runz%'%s' does not exist -- can't clean itz removing '%s')ÚosÚpathÚexistsrrrrÚdebugrrrrÚwarnÚrmdirrÚinfoÚOSError)rZ directoryrrrÚrun1s$        z clean.run)rrr)r Nr )r r r )rNr)rNr)rrr) Ú__name__Ú __module__Ú __qualname__Ú descriptionZ user_optionsZboolean_optionsrrr(rrrrr s"     r)r Zdistutils.corerZdistutils.dir_utilrZ distutilsrrrrrrÚs