Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/command/install_data.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��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_roottconvert_pathtinstall_datacBsSeZdZdddgZdgZd	�Zd
�Zd�Zd�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/sys/lib/python2.7/distutils/command/install_data.pytinitialize_optionss				cCs|jdddd�dS(	NtinstallRRR
R(sinstall_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�}tjj
|�s�tjj|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(tmkpathRRt
isinstancetstrRR
twarnt	copy_fileR	tappendtostpathtisabstjoinR
R(RRtoutt_tdirtdata((s4/sys/lib/python2.7/distutils/command/install_data.pytrun,s*			
cCs
|jpgS(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(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/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


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.