o ?Og @sDdZddlZddlmZddlmZddlmZGdddeZdS)zBdistutils.command.clean Implements the Distutils 'clean' command.N)Command) remove_tree)logc@s6eZdZdZgdZdgZddZddZdd Zd S) cleanz-clean up temporary files from 'build' command))z build-base=bz2base build directory (default: 'build.build-base'))z build-lib=Nz/opt/alt/python310/lib64/python3.10/distutils/command/clean.pyinitialize_options s  zclean.initialize_optionscCs"|ddddd|dddS)NZbuild)r r )r r )r r )r r Zbdist)rr)Zset_undefined_optionsrrrrfinalize_options(szclean.finalize_optionscCstj|jrt|j|jdntd|j|jr9|j |j |j fD]}tj|r2t||jdq"t d|q"|jsWzt |jtd|jWdStyVYdSwdS)N)dry_runz%'%s' does not exist -- can't clean itz removing '%s')ospathexistsr rrrdebugrr rr warnrmdirr infoOSError)rZ directoryrrrrun1s.   z clean.runN) __name__ __module__ __qualname__ descriptionZ user_optionsZboolean_optionsrrrrrrrr s r) __doc__rZdistutils.corerZdistutils.dir_utilrZ distutilsrrrrrrs