ðÕYfØ ã@s\dZddlZddlmZddlmZddlmZGdd„deƒZdS)zBdistutils.command.clean Implements the Distutils 'clean' command.é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__Z descriptionZ user_optionsZboolean_optionsrrr(rrrrr s"     r) Ú__doc__r Zdistutils.corerZdistutils.dir_utilrZ distutilsrrrrrrÚs