_d.ddlmZddlZddlZddlZddlmcmZddl Z ddl m Z m Z ejZ GddejZejjDcgc]}|dejvs|c}ej ze_ycc}w))DistutilsArgErrorN)SetuptoolsDeprecationWarningSetuptoolsWarningceZdZdZej j ddgzZej jddgzZddfdd fgZe eZ d Z d Z d Z d ZedZdZy)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' eggsr r install_egg_infocyNTselfs zinstall.install_scriptscyr rrs rrzinstall. rrctjdddtjj |d|_d|_y)Nzsetup.py install is deprecated.z Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. zAhttps://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html)see_url)remitorigrinitialize_optionsold_and_unmanageable!single_version_externally_managedrs rrzinstall.initialize_options$sB$)) -  X  ''-$(!15.rctjj||jrd|_y|jr%|js|j s t dyyy)NTzAYou must specify --record or --root when building system packages)rrfinalize_optionsrootrrecordrrs rrzinstall.finalize_options6sW %%d+ 9959D 2  3 399T[[' &194rc|js |jrtjj |Sd|_d|_y)N)r rrrhandle_extra_path path_file extra_dirsrs rr$zinstall.handle_extra_pathAs6 99>><<11$7 7rc|js |jrtjj |S|j t js tjj |y|jy)N) rrrrrun_called_from_setupinspect currentframedo_egg_installrs rr(z install.runKs]  $ $(N(N<<##D) )&&w';';'=> LL  T "    !rc|Fd}tj|tjdk(rd}tj|yt j |}|ddD]f}|dd\}t j |}|jjd d }|d k(r|jd k(rP|d k(xr|jdk(cSy)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.Tr__name__r#zsetuptools.dist run_commandzdistutils.dist run_commands) rrplatformpython_implementationr*getouterframes getframeinfo f_globalsgetfunction) run_framemsgframesframecallerinfo caller_modules rr)zinstall._called_from_setupVs  HC  " "3 '--/<?N!&&s+'' 2Aa[ YEbq IV''/D",,00R@M 11dmm}6T $44X.9X X Yrc.|jjd}||jd|j|j}|j d|_|j jtjd|jd|jjdjg}tjr |jdtj||_|j!d dt_ y) N easy_installx)argsr r!.z*.egg bdist_eggrF)show_deprecation) distributionget_command_classr r!ensure_finalizedalways_copy_from package_indexscanglobr2get_command_obj egg_output setuptoolsbootstrap_install_frominsertrEr()rrCcmdrEs rr,zinstall.do_egg_installus((::>J    ;;   " tyy12 %!!11+>IIJ  , , KK:<< = ',0 )rN)r1 __module__ __qualname____doc__rr user_optionsboolean_options new_commandsdict_ncrrr$r( staticmethodr)r,rrrrrsA<<,,> 0Lll22+6O ./ -.L | C6$  "YY<1rr)distutils.errorsrr*rOr4distutils.command.installcommandrrrRwarningsrr_install sub_commandsr]r[)rUs0rres. ((F <<~1dll~1F<<,, Agkk0IC s !B8B