î i fØ ã@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|ƒqcWn|jsðy'tj |jƒtjd|jƒWqðtk rìYqðXndS)NÚdry_runz%'%s' does not exist -- can't clean itz removing '%s')ÚosÚpathÚexistsrrr$rÚdebugrrrrÚwarnÚrmdirrÚinfoÚOSError)rZ directoryrrrÚrun1s$       z clean.run)rrr)r Nr )r r r )rNr)rNr)zallrr) Ú__name__Ú __module__Ú __qualname__Z descriptionZ user_optionsZboolean_optionsrr#r-rrrrr s"     r) Ú__doc__r%Zdistutils.corerZdistutils.dir_utilrZ distutilsrrrrrrÚs