łň žl‡Jc@sbdZdZddkZddklZddklZddklZdefd„ƒYZ dS( sBdistutils.command.clean Implements the Distutils 'clean' command.s1$Id: clean.py 38532 2005-03-03 08:12:27Z loewis $i˙˙˙˙N(tCommand(t remove_tree(tlogtcleancBsJeZdZddddddgZd gZd„Zd„Zd„ZRS(s-clean up temporary files from 'build' commands build-base=tbs2base build directory (default: 'build.build-base')s build-lib=s<build directory for all modules (default: 'build.build-lib')s build-temp=tts7temporary build directory (default: 'build.build-temp')sbuild-scripts=s<build directory for scripts (default: 'build.build-scripts')s bdist-base=s+temporary directory for built distributionstalltas7remove all build output, not just temporary by-productscCs:d|_d|_d|_d|_d|_d|_dS(N(tNonet build_baset build_libt build_tempt build_scriptst bdist_baseR(tself((s*/sys/lib/python/distutils/command/clean.pytinitialize_options$s      cCs-|iddd d d ƒ|idd ƒdS( NtbuildR R R R tbdistR (s build_bases build_base(s build_libs build_lib(s build_scriptss build_scripts(s build_temps build_temp(s bdist_bases bdist_base(tset_undefined_options(R((s*/sys/lib/python/distutils/command/clean.pytfinalize_options,s  cCsýtii|iƒot|id|iƒntid|iƒ|ioax^|i |i |i fD]@}tii|ƒot|d|iƒqfti d|ƒqfWn|ipAy'ti |iƒtid|iƒWqůtj oqůXndS(Ntdry_runs%'%s' does not exist -- can't clean its removing '%s'(tostpathtexistsR RRRtdebugRR R R twarntrmdirR tinfotOSError(Rt directory((s*/sys/lib/python/distutils/command/clean.pytrun5s&       (s build-base=Rs2base build directory (default: 'build.build-base')N(s build-lib=Ns<build directory for all modules (default: 'build.build-lib')(s build-temp=Rs7temporary build directory (default: 'build.build-temp')(sbuild-scripts=Ns<build directory for scripts (default: 'build.build-scripts')(s bdist-base=Ns+temporary directory for built distributions(sallRs7remove all build output, not just temporary by-products( t__name__t __module__t descriptionRt user_optionstboolean_optionsRRR(((s*/sys/lib/python/distutils/command/clean.pyRs"    ( t__doc__t __revision__Rtdistutils.coreRtdistutils.dir_utilRt distutilsRR(((s*/sys/lib/python/distutils/command/clean.pyss