
    ,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.)     r   )due_datezmodule z has no attribute )r
   emitoriginstallAttributeError__name__)names    \/var/www/html/Resume-Scraper/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e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                p    t        j                  d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)r   
      )see_urlr   )r
   r   superinitialize_optionsold_and_unmanageable!single_version_externally_managedr&   	__class__s    r   r1   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)r0   finalize_optionsrootr3   recordr   r4   s    r   r7   zinstall.finalize_optionsI   sO     "9959D23399T[['W  &19 4r   c                    | j                   s| j                  rt        j                  j	                  |       S d | _        d| _        y )N )r8   r3   r   r   handle_extra_path	path_file
extra_dirsr%   s    r   r<   zinstall.handle_extra_pathS   s9    99>><<11$77 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   r;   zsetuptools.distrun_commandzdistutils.distrun_commandsF)
r   r   platformpython_implementationinspectgetouterframesgetframeinfo	f_globalsgetfunction)	run_framemsgframesframecallerinfocaller_modules          r   _called_from_setupzinstall._called_from_setup^   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   )returnNone)r   
__module____qualname____doc____annotations__r   r   user_optionsboolean_optionsr+   dict_ncr1   r7   r<   staticmethodrS   __classcell__)r5   s   @r   r   r       s    A<<,,>	
0 L ll22+6 O 
./	-.NLJ  |
C6 	  r   r   )r   str)
__future__r   rF   rD   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>rl      s    "   $ / /  F ( ( .>K]dll ]D <<,,Agkk0IC  s   8B)B)