B ‘–Re*ã@s|ddlmZddlZddlZddlZddlZddlmmZ ddl Z e jZ Gdd„de jƒZdd„e jj Dƒej e_ dS)é)ÚDistutilsArgErrorNc@s„eZdZdZejjddgZejjddgZddd„fd d d„fgZe eƒZ d d „Z d d„Z dd„Z dd„Zedd„ƒZdd„ZdS)Úinstallz7Use easy_install to install the package, w/dependencies)zold-and-unmanageableNzTry not to use this!)z!single-version-externally-managedNz5used by system package builders to create 'flat' eggszold-and-unmanageablez!single-version-externally-managedÚinstall_egg_infocCsdS)NT©)Úselfrrú/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/command/install.pyÚózinstall.Úinstall_scriptscCsdS)NTr)rrrrrr cCs*t dtj¡tj |¡d|_d|_dS)NzRsetup.py install is deprecated. Use build and pip and other standards-based tools.) ÚwarningsÚwarnÚ setuptoolsZSetuptoolsDeprecationWarningÚorigrÚinitialize_optionsÚold_and_unmanageableÚ!single_version_externally_managed)rrrrr s  zinstall.initialize_optionscCs8tj |¡|jrd|_n|jr4|js4|js4tdƒ‚dS)NTzAYou must specify --record or --root when building system packages)rrÚfinalize_optionsÚrootrÚrecordr)rrrrr,s  zinstall.finalize_optionscCs(|js |jrtj |¡Sd|_d|_dS)NÚ)rrrrÚhandle_extra_pathÚ path_fileÚ extra_dirs)rrrrr7s  zinstall.handle_extra_pathcCs@|js |jrtj |¡S| t ¡¡s4tj |¡n| ¡dS)N) rrrrÚrunÚ_called_from_setupÚinspectÚ currentframeÚdo_egg_install)rrrrrAs   z install.runcCsz|dkr4d}t |¡t ¡dkr0d}t |¡dSt |¡d}|dd…\}t |¡}|j dd ¡}|d kox|j d kS) añ Attempt to detect whether run() was called from setup() or by another command. If called by setup(), the parent caller will be the 'run_command' method in 'distutils.dist', and *its* caller will be the 'run_commands' method. If called any other way, the immediate caller *might* be 'run_command', but it won't have been called by 'run_commands'. Return True in that case or if a call stack is unavailable. Return False otherwise. Nz4Call stack not available. bdist_* commands may fail.Ú IronPythonz6For best results, pass -X:Frames to enable call stack.TééÚ__name__rzdistutils.distÚ run_commands) r r ÚplatformÚpython_implementationrÚgetouterframesÚ getframeinfoÚ f_globalsÚgetÚfunction)Z run_frameÚmsgÚresZcallerÚinfoZ caller_modulerrrrLs     zinstall._called_from_setupcCsŒ|j d¡}||jd|j|jd}| ¡d|_|j t d¡¡|  d¡|j  d¡j g}t j rp| dt j ¡||_|jdd dt _ dS) NÚ easy_installÚx)ÚargsrrÚ.z*.eggZ bdist_eggrF)Zshow_deprecation)Ú distributionÚget_command_classrrÚensure_finalizedZalways_copy_fromZ package_indexÚscanÚglobÚ run_commandÚget_command_objZ egg_outputr Zbootstrap_install_fromÚinsertr/r)rr-Úcmdr/rrrrgs   zinstall.do_egg_installN)r!Ú __module__Ú __qualname__Ú__doc__rrÚ user_optionsÚboolean_optionsÚ new_commandsÚdictÚ_ncrrrrÚ staticmethodrrrrrrrs      rcCsg|]}|dtjkr|‘qS)r)rrA)Ú.0r9rrrú ‚srD)Údistutils.errorsrrr5r r#Údistutils.command.installÚcommandrrr Ú_installÚ sub_commandsr?rrrrÚs s