mò &U²Ic@sVdZdZdkZdklZdklZdklZdefd„ƒYZ dS(sudistutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts.s;$Id: install_scripts.py 37828 2004-11-10 22:23:15Z loewis $N(sCommand(slog(sST_MODEtinstall_scriptscBsYtZdZddddgZdd gZd „Zd„Zd„Zd„Z d„Z RS(Ns%install scripts (Python or otherwise)s install-dir=tdsdirectory to install scripts tos build-dir=tbs'build directory (where to install from)tforcetfs-force installation (overwrite existing files)s skip-buildsskip the build stepscCs(d|_d|_d|_d|_dS(Ni(tNonetselft install_dirRt build_dirt skip_build(R((t>/data/zmath/lib/python2.4/distutils/command/install_scripts.pytinitialize_optionss   cCs*|idd ƒ|idd d d ƒdS( Ntbuildt build_scriptsRtinstallRRRR (R s build_dir(sinstall_scriptss install_dir(sforcesforce(s skip_builds skip_build(Rtset_undefined_options(R((R tfinalize_options%s  cCsÁ|ip|idƒn|i|i|iƒ|_tidjowxt|i ƒD]b}|i ot i d|ƒqSti|ƒtdBd@}t i d||ƒti||ƒqSWndS(NR tposixschanging mode of %simiÿschanging mode of %s to %o(RR t run_commandt copy_treeRRtoutfilestostnamet get_outputstfiletdry_runtlogtinfotstattST_MODEtmodetchmod(RRR((R trun-s   cCs|iipgS(N(Rt distributiontscripts(R((R t get_inputs<scCs|ipgS(N(RR(R((R R?s(s install-dir=Rsdirectory to install scripts to(s build-dir=Rs'build directory (where to install from)(sforceRs-force installation (overwrite existing files)(s skip-buildNsskip the build steps( t__name__t __module__t descriptionRt user_optionstboolean_optionsR RR R#R(((R Rs     ( t__doc__t __revision__Rtdistutils.coretCommandt distutilsRRRR(RRRR*R,R((R t?s