��Qc@sXdZdZddlZddlmZddlmZmZdefd��YZdS(s�distutils.command.install_data
Implements the Distutils 'install_data' command, for installing
platform-independent data files.s$Id$i�N(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|_|jj|_d|_dS(Nii(tNonetinstall_dirtoutfilestrootRtdistributiont
data_filestwarn_dir(tself((s4/sys/lib/python2.7/distutils/command/install_data.pytinitialize_optionss cCs|jdddd�dS( NtinstallRRR
R(sinstall_datasinstall_dir(srootsroot(sforcesforce(tset_undefined_options(R((s4/sys/lib/python2.7/distutils/command/install_data.pytfinalize_options%s cCsk|j|j�xT|jD]I}t|t�r�t|�}|jra|jd||jf�n|j||j�\}}|j j
|�qt|d�}tjj
|�s�tjj|j|�}n|jr�|j|�}n|j|�|dgkr|j j
|�qxF|dD]:}t|�}|j||�\}}|j j
|�q%WqWdS(NsMsetup script did not provide a directory for '%s' -- installing right in '%s'ii(tmkpathRRt
isinstancetstrRR
twarnt copy_fileR tappendtostpathtisabstjoinR
R(RRtoutt_tdirtdata((s4/sys/lib/python2.7/distutils/command/install_data.pytrun,s*
cCs
|jpgS(N(R(R((s4/sys/lib/python2.7/distutils/command/install_data.pyt
get_inputsMscCs|jS(N(R (R((s4/sys/lib/python2.7/distutils/command/install_data.pytget_outputsPs(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#(((s4/sys/lib/python2.7/distutils/command/install_data.pyRs ! ( t__doc__t__revision__Rtdistutils.coreRtdistutils.utilRRR(((s4/sys/lib/python2.7/distutils/command/install_data.pyt<module>s
|