ó {fc@sXdZdZddlZddlmZddlmZmZdefd„ƒYZdS(s€distutils.command.install_data Implements the Distutils 'install_data' command, for installing platform-independent data files.s$Id$iÿÿÿÿN(tCommand(t change_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(tNonet install_dirtoutfilestrootRt distributiont data_filestwarn_dir(tself((s6/usr/lib64/python2.7/distutils/command/install_data.pytinitialize_optionss     cCs|jddddƒdS( NtinstallRRR R(RR(R R (RR(tset_undefined_options(R((s6/usr/lib64/python2.7/distutils/command/install_data.pytfinalize_options%s cCsk|j|jƒxT|jD]I}t|tƒrt|ƒ}|jra|jd||jfƒn|j||jƒ\}}|j j |ƒqt|dƒ}t j j |ƒsÌt j j|j|ƒ}n|jrêt|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((s6/usr/lib64/python2.7/distutils/command/install_data.pytrun,s*      cCs |jp gS(N(R (R((s6/usr/lib64/python2.7/distutils/command/install_data.pyt get_inputsMscCs|jS(N(R (R((s6/usr/lib64/python2.7/distutils/command/install_data.pyt get_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(RRs-force installation (overwrite existing files)( t__name__t __module__t descriptionRt user_optionstboolean_optionsRRR!R"R#(((s6/usr/lib64/python2.7/distutils/command/install_data.pyRs     ! ( t__doc__t __revision__Rtdistutils.coreRtdistutils.utilRRR(((s6/usr/lib64/python2.7/distutils/command/install_data.pyts