B { ` @sfddlZdejkr*ddlmmZdZnddlmmZdZddlm Z ejZ Gddde ZdS)N setuptoolsTF) write_filec@s8eZdZejdddfgZddZddZdd Zd S) installZ install_clibcCsdS)NT)xrrC/tmp/pip-unpacked-wheel-4iou4664/numpy/distutils/command/install.pyzinstall.cCst||j|_dS)N) old_installfinalize_optionsinstall_libbase install_lib)selfrrrr s 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_namerrrsetuptools_runs    zinstall.setuptools_runc Cstst|}n|}|jrt|jdB}g}d}x2|D]*}|}d|krZd}d|}||q:WWdQRX|r|t |j|fd|j|S)NrF Tz"%s"z*re-writing list of installed files to '%s') have_setuptoolsr rrrecordopenrstripappendexecuter)rrflinesZ need_rewritelrrrr8s&   z install.runN)r __module__ __qualname__r sub_commandsr rrrrrrr s  r) rmodulesZsetuptools.command.installcommandrZold_install_modrrdistutils.file_utilrr rrrrs