ó ž­çSc@sgddlmZddljjZddlZddlmZm Z m Z dejfd„ƒYZdS(i˙˙˙˙(tlogN(t Distributiont PathMetadatatensure_directorytinstall_scriptscBs,eZdZd„Zd„Zdd„ZRS(s;Do normal script install, plus any egg_info wrapper scriptscCstjj|ƒt|_dS(N(torigRtinitialize_optionstFalsetno_ep(tself((sL/usr/local/lib/python2.7/site-packages/setuptools/command/install_scripts.pyR sc Csddlm}ddlm}|jdƒ|jjrLtjj|ƒn g|_ |j rbdS|j dƒ}t |j t|j |jƒ|j|jƒ}|j dƒ}t|d|ƒ}t|j dƒdtƒ}x'||||ƒD]}|j|ŒqíWdS( Ni˙˙˙˙(tget_script_args(tsys_executabletegg_infot build_scriptst executablet bdist_wininstt _is_running(tsetuptools.command.easy_installR R t run_commandt distributiontscriptsRRtruntoutfilesRtget_finalized_commandRtegg_baseRR tegg_namet egg_versiontgetattrRt write_script( R R R tei_cmdtdisttbs_cmdRt is_wininsttargs((sL/usr/local/lib/python2.7/site-packages/setuptools/command/install_scripts.pyRs$    ttc Gs˛ddlm}m}tjd||jƒtjj|j|ƒ}|j j |ƒ|ƒ}|j sŽt |ƒt |d|ƒ} | j|ƒ| jƒ||d|ƒndS(s1Write an executable file to the scripts directoryi˙˙˙˙(tchmodt current_umasksInstalling %s script to %stwi˙N(RR#R$Rtinfot install_dirtostpathtjoinRtappendtdry_runRtopentwritetclose( R t script_nametcontentstmodetignoredR#R$ttargettmasktf((sL/usr/local/lib/python2.7/site-packages/setuptools/command/install_scripts.pyR)s     (t__name__t __module__t__doc__RRR(((sL/usr/local/lib/python2.7/site-packages/setuptools/command/install_scripts.pyRs  ( t distutilsRt!distutils.command.install_scriptstcommandRRR(t pkg_resourcesRRR(((sL/usr/local/lib/python2.7/site-packages/setuptools/command/install_scripts.pyts