ó {fc@sbdZdZddlZddlmZddlmZddlmZdefd„ƒYZ dS( sBdistutils.command.clean Implements the Distutils 'clean' command.s$Id$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//usr/lib64/python2.7/distutils/command/clean.pytinitialize_options"s      cCs-|jddd d d ƒ|jdd ƒdS( NtbuildR R R R tbdistR (R R (R R (R R (R R (R R (tset_undefined_options(R((s//usr/lib64/python2.7/distutils/command/clean.pytfinalize_options*s  cCsótjj|jƒr.t|jd|jƒntjd|jƒ|jr¨x[|j |j |j fD]>}tjj|ƒr‘t|d|jƒqctj d|ƒqcWn|jsïy'tj |jƒtjd|jƒWqïtk rëqïXndS(Ntdry_runs%'%s' does not exist -- can't clean its removing '%s'(tostpathtexistsR RRRtdebugRR R R twarntrmdirR tinfotOSError(Rt directory((s//usr/lib64/python2.7/distutils/command/clean.pytrun3s$       (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(RRs7remove all build output, not just temporary by-products( t__name__t __module__t descriptionRt user_optionstboolean_optionsRRR(((s//usr/lib64/python2.7/distutils/command/clean.pyRs"    ( t__doc__t __revision__Rtdistutils.coreRtdistutils.dir_utilRt distutilsRR(((s//usr/lib64/python2.7/distutils/command/clean.pyts