a ˆåÏhaã@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)úold-and-unmanageableNzTry not to use this!)ú!single-version-externally-managedNz5used by system package builders to create 'flat' eggsrrZinstall_egg_infocCsdS©NT©©Úselfrrú>/usr/lib/python3.9/site-packages/setuptools/command/install.pyÚózinstall.Zinstall_scriptscCsdSrrrrrr r r cCstj |¡d|_d|_dS©N)ÚorigrÚinitialize_optionsÚold_and_unmanageableÚ!single_version_externally_managedrrrr r s zinstall.initialize_optionscCs8tj |¡|jrd|_n|jr4|js4|js4tdƒ‚dS)NTzAYou must specify --record or --root when building system packages)rrÚfinalize_optionsÚrootrÚrecordrrrrr r%s  ÿzinstall.finalize_optionscCs(|js |jrtj |¡Sd|_d|_dS)NÚ)rrrrÚhandle_extra_pathZ path_fileZ extra_dirsrrrr r0s  zinstall.handle_extra_pathcCs@|js |jrtj |¡S| t ¡¡s4tj |¡n| ¡dSr ) rrrrÚrunÚ_called_from_setupÚinspectZ currentframeÚdo_egg_installrrrr r:s   z install.runcCsz|dur4d}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.Z IronPythonz6For best results, pass -X:Frames to enable call stack.TééÚ__name__rzdistutils.distZ run_commands) ÚwarningsÚwarnÚplatformZpython_implementationrZgetouterframesZ getframeinfoÚ f_globalsÚgetÚfunction)Z run_frameÚmsgÚresZcallerÚinfoZ caller_modulerrr rEs     þ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)Z distributionZget_command_classrrZensure_finalizedZalways_copy_fromZ package_indexÚscanÚglobZ run_commandZget_command_objZ egg_outputÚ setuptoolsZbootstrap_install_fromÚinsertr)r)r r'Úcmdr)rrr r`s ÿ  zinstall.do_egg_installN)rÚ __module__Ú __qualname__Ú__doc__rrZ user_optionsZboolean_optionsÚ new_commandsÚdictÚ_ncrrrrÚ staticmethodrrrrrr rs&þÿ  þ    rcCsg|]}|dtjvr|‘qS)r)rr5)Ú.0r/rrr Ú {r r8)Zdistutils.errorsrrr,rr Zdistutils.command.installZcommandrrr-Ú_installZ sub_commandsr3rrrr Ús lÿÿ