�
��c@shdZdZddkZddklZddklZddklZl Z defd��YZ
dS( s�distutils.command.install_data
Implements the Distutils 'install_data' command, for installing
platform-independent data files.s8$Id: install_data.py 37828 2004-11-10 22:23:15Z loewis $i�N(t
StringType(tCommand(tchange_roottconvert_pathtinstall_datacBsSeZdZdddgZdgZd �Zd
�Zd�Zd�Z d
�Z
RS(sinstall data filessinstall-dir=tdsIbase directory for installing data files (default: installation base dir)sroot=s<install everything relative to this alternate root directorytforcetfs-force installation (overwrite existing files)cCs@d|_g|_d|_d|_|ii|_d|_dS(Nii(tNonetinstall_dirtoutfilestrootRtdistributiont
data_filestwarn_dir(tself((s1/sys/lib/python/distutils/command/install_data.pytinitialize_options s cCs|idddd�dS( NtinstallRR RR(sinstall_datasinstall_dir(srootsroot(sforcesforce(tset_undefined_options(R((s1/sys/lib/python/distutils/command/install_data.pytfinalize_options)s cCsx|i|i�xa|iD]V}t|�tjoct|�}|io|id||if�n|i||i�\}}|i i
|�qt|d�}tii
|�ptii|i|�}n!|iot|i|�}n|i|�|dgjo|i i
|�qxF|dD]:}t|�}|i||�\}}|i i
|�q2WqWdS(NsMsetup script did not provide a directory for '%s' -- installing right in '%s'ii(tmkpathR R
ttypeRRRtwarnt copy_fileR
tappendtostpathtisabstjoinRR(RRtoutt_tdirtdata((s1/sys/lib/python/distutils/command/install_data.pytrun0s.
cCs|ipgS(N(R
(R((s1/sys/lib/python/distutils/command/install_data.pyt
get_inputsQscCs|iS(N(R
(R((s1/sys/lib/python/distutils/command/install_data.pytget_outputsTs(sinstall-dir=RsIbase directory for installing data files (default: installation base dir)N(sroot=Ns<install everything relative to this alternate root directory(sforceRs-force installation (overwrite existing files)(t__name__t
__module__tdescriptionRtuser_optionstboolean_optionsRRR!R"R#(((s1/sys/lib/python/distutils/command/install_data.pyRs ! (t__doc__t__revision__RttypesRtdistutils.coreRtdistutils.utilRRR(((s1/sys/lib/python/distutils/command/install_data.pys<module>s
|