Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/distutils/command/
Upload File :
Current File : //usr/lib/python2.7/distutils/command/install_data.pyc


|_c@sXdZdZddlZddlmZddlmZmZdefdYZdS(sdistutils.command.install_data

Implements the Distutils 'install_data' command, for installing
platform-independent data files.s$Id$iN(tCommand(tchange_roottconvert_pathtinstall_datacBsSeZdZdddgZdgZd	Zd
ZdZdZ	d
Z
RS(sinstall data filessinstall-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_dirtoutfilestrootRtdistributiont
data_filestwarn_dir(tself((s4/usr/lib/python2.7/distutils/command/install_data.pytinitialize_optionss				cCs|jdddddS(	NtinstallRRR
R(sinstall_datasinstall_dir(srootsroot(sforcesforce(tset_undefined_options(R((s4/usr/lib/python2.7/distutils/command/install_data.pytfinalize_options%s	cCsk|j|jxT|jD]I}t|trt|}|jra|jd||jfn|j||j\}}|j	j
|qt|d}tjj
|stjj|j|}n|jrt|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(tmkpathRRt
isinstancetstrRR
twarnt	copy_fileR	tappendtostpathtisabstjoinR
R(RRtoutt_tdirtdata((s4/usr/lib/python2.7/distutils/command/install_data.pytrun,s*			
cCs
|jpgS(N(R(R((s4/usr/lib/python2.7/distutils/command/install_data.pyt
get_inputsMscCs|jS(N(R	(R((s4/usr/lib/python2.7/distutils/command/install_data.pytget_outputsPs(sinstall-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__tdescriptionRtuser_optionstboolean_optionsRRR!R"R#(((s4/usr/lib/python2.7/distutils/command/install_data.pyRs					!	(	t__doc__t__revision__Rtdistutils.coreRtdistutils.utilRRR(((s4/usr/lib/python2.7/distutils/command/install_data.pyt<module>s