mς &U²Ic@s\dZdZdkZdklZdklZdklZl 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 $N(s StringType(sCommand(s change_roots convert_patht install_datacBsStZdZdddgZdgZd „Zd „Zd „Zd „Z d„Z RS(Nsinstall 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|_|ii|_d|_dS(Nii( tNonetselft install_dirtoutfilestrootRt distributiont data_filestwarn_dir(R((t;/data/zmath/lib/python2.4/distutils/command/install_data.pytinitialize_options s     cCs|iddddƒdS( NtinstallRRRR(s install_datas install_dir(srootsroot(sforcesforce(Rtset_undefined_options(R((R tfinalize_options)s cCsx|i|iƒxa|iD]V}t|ƒtjoct|ƒ}|io|i d||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(RtmkpathRR Rttypet StringTypet convert_pathR twarnt copy_filetoutt_RtappendtdirtostpathtisabstjoinRt change_roottdata(RRR RRR((R trun0s,       cCs|ipgS(N(RR (R((R t get_inputsQscCs|iS(N(RR(R((R t get_outputsTs(s install-dir=RsIbase directory for installing data files (default: installation base dir)(sroot=Ns<install everything relative to this alternate root directory(sforceRs-force installation (overwrite existing files)( t__name__t __module__t descriptionRt user_optionstboolean_optionsR RR!R"R#(((R Rs   ! ( t__doc__t __revision__RttypesRtdistutils.coretCommandtdistutils.utilRRR(RR*RRRR-R((R t?s