ó 2ÄÈ[c@`sddlmZmZmZddlZdejkrRddljjZ e Z nddl jjZ e Z ddlmZe jZdefd„ƒYZdS(i(tdivisiontabsolute_importtprint_functionNt setuptools(t write_filetinstallcB`s<eZejdd„fgZd„Zd„Zd„ZRS(t install_clibcC`stS(N(tTrue(tx((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pytscC`stj|ƒ|j|_dS(N(t old_installtfinalize_optionstinstall_libbaset install_lib(tself((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pyR s cC`s•ddlm}|js"|jr/|j|ƒStjdƒ}|jjddƒ}|j j }|dksw|dkr‡|j|ƒ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. i(Rit__name__tsdistutils.distt run_commandsN( tdistutils.command.installRtold_and_unmanageablet!single_version_externally_managedtruntsyst _getframet f_globalstgettf_codetco_nametdo_egg_install(Rtdistutils_installtcallert caller_modulet caller_name((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pytsetuptools_runs  cC`sÑtstj|ƒ}n |jƒ}|jrÍt|jdƒ}g}t}xF|D]>}|jƒ}d|krƒt}d|}n|j |ƒqRW|j ƒ|rÍ|j t |j|fd|jƒqÍn|S(Ntrt s"%s"s*re-writing list of installed files to '%s'( thave_setuptoolsR RR!trecordtopentFalsetrstripRtappendtclosetexecuteR(RR"tftlinest need_rewritetl((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pyR:s(         (Rt __module__R t sub_commandsR R!R(((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pyRs   (t __future__RRRRtmodulestsetuptools.command.installtcommandRtold_install_modRR$RR'tdistutils.file_utilRR (((s>/tmp/pip-build-fiC0ax/numpy/numpy/distutils/command/install.pyts