
    h                    \   d dl mZ d dlZd dlZd dlmZ d dlmZmZm	Z	 ddl
mZ ddlmZmZ d dlmc mZ d dlmZ erd	d
lmZ ndZddZ G d dej"                        Zej"                  j0                  D  cg c]  } | d    ej2                  vs|  c} ej4                  z   e_        yc c} w )    )annotationsN)Callable)TYPE_CHECKINGAnyClassVar   )Distribution)SetuptoolsDeprecationWarningSetuptoolsWarning)DistutilsArgError   )easy_installc                    | dk(  r't        j                  dd       t        j                  S t	        dt
        d|       )N_installzk`setuptools.command._install` was an internal implementation detail that was left in for numpy<1.9 support.)i     r   )due_datezmodule z has no attribute )r
   emitoriginstallAttributeError__name__)names    U/var/www/html/backend/venv/lib/python3.12/site-packages/setuptools/command/install.py__getattr__r      sE    z$))8!	

 ||
78,.@I
JJ    c                       e Zd ZU dZded<   ej                  j                  ddgz   Zej                  j                  ddgz   Zdd	 fd
d fgZ	ded<    e
e	      Z fdZd fdZd Z fdZed        ZddZ xZS )r   z7Use easy_install to install the package, w/dependenciesr	   distribution)old-and-unmanageableNzTry not to use this!)!single-version-externally-managedNz5used by system package builders to create 'flat' eggsr   r   install_egg_infoc                     yNT selfs    r   <lambda>zinstall.<lambda>4       r   install_scriptsc                     yr"   r#   r$   s    r   r&   zinstall.<lambda>5   r'   r   z8ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]new_commandsc                n    t        j                  ddd       t        |           d | _        d | _        y )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
   r   superinitialize_optionsold_and_unmanageable!single_version_externally_managedr%   	__class__s    r   r.   zinstall.initialize_options9   s<    $))-
 X	
 	"$$(!15.r   c                    t         |           | j                  rd| _        y | j                  r%| j                  s| j                  st        d      y y y )NTzAYou must specify --record or --root when building system packages)r-   finalize_optionsrootr0   recordr   r1   s    r   r4   zinstall.finalize_optionsK   sO     "9959D23399T[['W  &19 4r   c                    | j                   s| j                  rt        j                  j	                  |       S d | _        d| _        y )N )r5   r0   r   r   handle_extra_path	path_file
extra_dirsr$   s    r   r9   zinstall.handle_extra_pathU   s9    99>><<11$77 r   c                    | j                   s| j                  rt        |          S | j	                  t        j                               st        |           y | j                          y )N)r/   r0   r-   run_called_from_setupinspectcurrentframedo_egg_installr1   s    r   r=   zinstall.run`   sV    $$(N(N7;= &&w';';'=>GKM  !r   c                   | Fd}t        j                  |       t        j                         dk(  rd}t        j                  |       yt	        j
                  |       }|dd D ]f  }|dd \  }t	        j                  |      }|j                  j                  d	d
      }|dk(  r|j                  dk(  rP|dk(  xr |j                  dk(  c S  y)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   r   r8   zsetuptools.distrun_commandzdistutils.distrun_commandsF)
r   r   platformpython_implementationr?   getouterframesgetframeinfo	f_globalsgetfunction)	run_framemsgframesframecallerinfocaller_modules          r   r>   zinstall._called_from_setupm   s     HC""3'--/<?N!&&s+''	2Aa[ 		YEbq	IV''/D",,00R@M 11dmm}6T $44X.9XX		Y r   c                    t        d      )Nz/Support for egg-based install has been removed.)NotImplementedErrorr$   s    r   rA   zinstall.do_egg_install   s    !"STTr   )returnNone)r   
__module____qualname____doc____annotations__r   r   user_optionsboolean_optionsr*   dict_ncr.   r4   r9   r=   staticmethodr>   rA   __classcell__)r2   s   @r   r   r       s    A<<,,>	
0 L ll22+6 O 
./	-.NLJ  |
C6$	  @Ur   r   )r   str)
__future__r   r?   rG   collections.abcr   typingr   r   r   distr	   warningsr
   r   distutils.command.installcommandr   r   distutils.errorsr   r   easy_install_clsr   sub_commandsr`   r*   )cmds   0r   <module>ro      s    "   $ / /  F ( ( .>KoUdll oUh <<,,Agkk0IC  s   8B)B)