o 6a @sfddlZdejvrddlmmZdZn ddlmmZdZddlm Z ejZ Gddde ZdS)N setuptoolsTF) write_filec@s8eZdZejdddfgZddZddZdd Zd S) install install_clibcCsdS)NT)xrrA/usr/lib/python3/dist-packages/numpy/distutils/command/install.pyszinstall.cCst||j|_dS)N) old_installfinalize_optionsinstall_libbase install_lib)selfrrrr s  zinstall.finalize_optionscCslddlm}|js |jr||Std}|jdd}|j j }|dks)|dkr0||dS| 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.installrold_and_unmanageable!single_version_externally_managedrunsys _getframe f_globalsgetf_codeco_namedo_egg_install)rdistutils_installcaller caller_module caller_namerrrsetuptools_runs     zinstall.setuptools_runcCstst|}n|}|jrPt|jd$}g}d}|D]}|}d|vr,d}d|}||qWdn1ss