ó 0Űć`c@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((sS/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/install_scripts.pyR sc CsKddljj}|jdƒ|jjr>tjj|ƒn g|_ |j rTdS|j dƒ}t |j t|j |jƒ|j|jƒ}|j dƒ}t|ddƒ}|j dƒ}t|dtƒ}|j}|ród}|j}n|jƒ}|jjƒj|ƒ} x-|j|| jƒƒD]} |j| Œq0WdS(Ni˙˙˙˙tegg_infot build_scriptst executablet bdist_wininstt _is_runnings python.exe(tsetuptools.command.easy_installtcommandt easy_installt run_commandt distributiontscriptsRRtruntoutfilesRtget_finalized_commandRtegg_baseRR tegg_namet egg_versiontgetattrtNoneRt ScriptWritertWindowsScriptWritertbesttcommand_spec_classt from_paramtget_argst as_headert write_script( R teitei_cmdtdisttbs_cmdt exec_paramtbw_cmdt is_wininsttwritertcmdtargs((sS/opt/alt/python27/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(RR0R1Rtinfot install_dirtostpathtjoinRtappendtdry_runRtopentwritetclose( R t script_nametcontentstmodetignoredR0R1ttargettmasktf((sS/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/install_scripts.pyR$.s     (t__name__t __module__t__doc__RRR$(((sS/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/install_scripts.pyRs  ( t distutilsRt!distutils.command.install_scriptsRRRR5t pkg_resourcesRRR(((sS/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/install_scripts.pyts