ó \ĐKc@sddlZdejkr6ddljjZeZnddljjZe ZejZ ddl m Z de fd„ƒYZdS(i˙˙˙˙Nt setuptools(t write_filetinstallcBs<eZejdd„fgZd„Zd„Zd„ZRS(t install_clibcCstS(N(tTrue(tx((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pytscCstj|ƒ|j|_dS(N(t old_installtfinalize_optionstinstall_libbaset install_lib(tself((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pyRs cCs‹|js|jr"tjj|ƒStjdƒ}|jjddƒ}|j j }|dksj|dkr}tjj|ƒn |j ƒdS(sĚ The setuptools version of the .run() method. We must pull in the entire code so we can override the level used in the _getframe() call since we wrap this call by one more level. it__name__tsdistutils.distt run_commandsN( told_and_unmanageablet!single_version_externally_managedtold_install_modt_installtruntsyst _getframet f_globalstgettf_codetco_nametdo_egg_install(R tcallert caller_modulet caller_name((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pytsetuptools_runs  cCs×tstj|ƒ}n |jƒ}|jrÓt|jdƒ}g}t}xL|jƒD]>}|jƒ}d|kr‰t }d|}n|j |ƒqXW|j ƒ|rÓ|j t |j|fd|jƒqÓn|S(Ntrt s"%s"s*re-writing list of installed files to '%s'(thave_setuptoolsRRRtrecordtopentFalset readlinestrstripRtappendtclosetexecuteR(R Rtftlinest need_rewritetl((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pyR5s(        (R t __module__Rt sub_commandsRRR(((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pyR s   ( Rtmodulestsetuptools.command.installtcommandRRRR!tdistutils.command.installR$Rtdistutils.file_utilR(((sC/usr/lib/python2.7/site-packages/numpy/distutils/command/install.pyts