U C^H @szddlmZmZmZddlZdejkr>ddlmmZ dZ nddl mmZ dZ ddl m Z e jZGdddeZdS) )divisionabsolute_importprint_functionN setuptoolsTF) write_filec@s8eZdZejdddfgZddZddZdd Zd S) installZ install_clibcCsdS)NT)xrrB/tmp/pip-install-6_kvzl1k/numpy/numpy/distutils/command/install.pyzinstall.cCst||j|_dS)N) old_installfinalize_optionsinstall_libbase install_lib)selfrrr rs zinstall.finalize_optionscCsjddlm}|js|jr"||Std}|jdd}|j j }|dksR|dkr^||n| dS) z 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. r)r__name__zdistutils.dist run_commandsN) distutils.command.installrZold_and_unmanageableZ!single_version_externally_managedrunsys _getframe f_globalsgetf_codeco_nameZdo_egg_install)rZdistutils_installZcallerZ caller_moduleZ caller_namerrr setuptools_runs    zinstall.setuptools_runc Cstst|}n|}|jrt|jd>}g}d}|D]*}|}d|krXd}d|}||q8W5QRX|r|t |j|fd|j|S)NrF Tz"%s"z*re-writing list of installed files to '%s') have_setuptoolsr rrrecordopenrstripappendexecuter)rrflinesZ need_rewritelrrr r:s* z install.runN)r __module__ __qualname__r sub_commandsrrrrrrr rs   r) __future__rrrrmodulesZsetuptools.command.installcommandrZold_install_modr!rdistutils.file_utilrr rrrr s