�
��c@sbdZdZddkZddklZddklZddklZdefd��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 $i�N(tCommand(tlog(tST_MODEtinstall_scriptscBsYeZdZddddgZdd
gZd�Zd
�Zd�Zd�Z d�Z
RS(s%install scripts (Python or otherwise)sinstall-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(tNonetinstall_dirRt build_dirt
skip_build(tself((s4/sys/lib/python/distutils/command/install_scripts.pytinitialize_optionss cCs*|idd �|idd
dd�dS(
Ntbuildt
build_scriptsR
tinstallRR RR(s
build_scriptss build_dir(sinstall_scriptssinstall_dir(sforcesforce(s
skip_builds
skip_build(tset_undefined_options(R((s4/sys/lib/python/distutils/command/install_scripts.pytfinalize_options%s
cCs�|ip|id�n|i|i|i�|_tidjowxt|i�D]b}|i ot
id|�qSti|�t
dBd@}t
id||�ti||�qSWndS(NRtposixschanging mode of %simi�schanging mode of %s to %o(Rtrun_commandt copy_treeR
R toutfilestostnametget_outputstdry_runRtinfotstatRtchmod(Rtfiletmode((s4/sys/lib/python/distutils/command/install_scripts.pytrun-s
cCs|iipgS(N(tdistributiontscripts(R((s4/sys/lib/python/distutils/command/install_scripts.pyt
get_inputs<scCs|ipgS(N(R(R((s4/sys/lib/python/distutils/command/install_scripts.pyR?s(sinstall-dir=Rsdirectory to install scripts to(s
build-dir=Rs'build directory (where to install from)(sforceRs-force installation (overwrite existing files)N(s
skip-buildNsskip the build steps(t__name__t
__module__tdescriptionRtuser_optionstboolean_optionsR
RR R#R(((s4/sys/lib/python/distutils/command/install_scripts.pyRs (
t__doc__t__revision__Rtdistutils.coreRt distutilsRRRR(((s4/sys/lib/python/distutils/command/install_scripts.pys<module>s
|