
    ǆi                     P   S SK Jr  S SKrS SKrS SKrS SKJs  Jr  S SK	J
r
  S SKrSSKJrJr  SSKJr  \R                  r " S S	\R                  5      r\R                  R$                   V s/ s H  o S    \R&                  ;  d  M  U PM     sn \R(                  -   \l        gs  sn f )
    )DistutilsArgErrorN)cast   )SetuptoolsDeprecationWarningSetuptoolsWarning   )	bdist_eggc                      ^  \ rS rSrSr\R                  R                  SS/-   r\R                  R                  SS/-   rSS 4S	S
 4/r	\
" \	5      rU 4S jrU 4S jrS rU 4S jr\S 5       rS rSrU =r$ )install   z7Use easy_install to install the package, w/dependencies)old-and-unmanageableNzTry not to use this!)!single-version-externally-managedNz5used by system package builders to create 'flat' eggsr   r   install_egg_infoc                     gNT selfs    j/home/dmtnaga/Documents/work/airagagent/rag_env/lib/python3.13/site-packages/setuptools/command/install.py<lambda>install.<lambda>!   s    $    install_scriptsc                     gr   r   r   s    r   r   r   "   s    r   c                 j   > [         R                  " SSSS9  [        TU ]  5         S U l        S U l        g )Nzsetup.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)r   emitsuperinitialize_optionsold_and_unmanageable!single_version_externally_managedr   	__class__s    r   r   install.initialize_options&   s<    $))-
 X	
 	"$$(!15.r   c                    > [         TU ]  5         U R                  (       a  SU l        g U R                  (       a/  U R                  (       d  U R                  (       d  [        S5      eg g g )NTzAYou must specify --record or --root when building system packages)r   finalize_optionsrootr!   recordr   r"   s    r   r&   install.finalize_options8   sQ     "9959D23399T[['   &19 4r   c                     U R                   (       d  U R                  (       a  [        R                  R	                  U 5      $ S U l        SU l        g )N )r'   r!   origr   handle_extra_path	path_file
extra_dirsr   s    r   r-   install.handle_extra_pathC   s9    99>><<11$77 r   c                    > U R                   (       d  U R                  (       a  [        TU ]  5       $ U R	                  [
        R                  " 5       5      (       d  [        TU ]  5         g U R                  5         g )N)r    r!   r   run_called_from_setupinspectcurrentframedo_egg_installr"   s    r   r2   install.runN   sY    $$(N(N7;= &&w';';'=>>GKM  !r   c                    U cJ  Sn[         R                  " U5        [        R                  " 5       S:X  a  Sn[         R                  " U5        g[        R
                  " U 5      nUSS  Ho  nUSS u  n[        R                  " U5      nUR                  R                  S	S
5      nUS:X  a  UR                  S:X  a  MT  US:H  =(       a    UR                  S:H  s  $    g)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      r   __name__r+   zsetuptools.distrun_commandzdistutils.distrun_commandsF)
r   r   platformpython_implementationr4   getouterframesgetframeinfo	f_globalsgetfunction)	run_framemsgframesframecallerinfocaller_modules          r   r3   install._called_from_setup[   s     HC""3'--/<?N!&&s+''	2Aa[Ebq	IV''/D",,00R@M 11dmm}6T $44X.9XX ! r   c                 L   U R                   R                  S5      nU" U R                   SU R                  U R                  S9nUR	                  5         SUl        UR                  R                  [        R                  " S5      5        U R                  S5        [        [        U R                   R                  S5      5      nUR                  /n[        R                  (       a   UR!                  S[        R                  5        XBl        UR%                  SS	9  S [        l        g )
Neasy_installx)argsr'   r(   .z*.eggr	   r   F)show_deprecation)distributionget_command_classr'   r(   ensure_finalizedalways_copy_frompackage_indexscanglobr<   r   bdist_egg_clsget_command_obj
egg_output
setuptoolsbootstrap_install_frominsertrP   r2   )r   rN   cmdr	   rP   s        r   r6   install.do_egg_install|   s    ((::>J;;	
 	" 	tyy12%(9(9(I(I+(VW	$$%,,KK:<<=',0
)r   )r/   r    r.   r!   )r;   
__module____qualname____firstlineno____doc__r,   r   user_optionsboolean_optionsnew_commandsdict_ncr   r&   r-   r2   staticmethodr3   r6   __static_attributes____classcell__)r#   s   @r   r   r      s    A<<,,>	
0 L ll22+6 O
 
./	-.L |
C6$		  @1 1r   r   )distutils.errorsr   r4   rY   r>   distutils.command.installcommandr   r,   typingr   r]   warningsr   r   r	   rZ   _installsub_commandsrj   rh   )r`   s   0r   <module>ru      s    .    ( (   F 1 <<D1dll D1R <<,,,CAgkk0IC,  s   -B#B#