
    e                     B   d dl Z d dlZd dlmZmZmZ  ej        d                                          Z	 	 	 dde	deee	                  de
de
d	ee	         f
d
Zde	dee	         dee	         de	d	ee	         f
dZde	dee	         d	ee	         fdZde	dee	         dee	         de
dee	         dee	         de
d	ee	         fdZde	dee	         de
d	ee	         fdZde	dee	         dee	         de	dee	         dee	         dee	         dee	         de
de
de
d	ee	         fdZdS )    N)ListOptionalSequenceah  
    exec(compile('''
    # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
    #
    # - It imports setuptools before invoking setup.py, to enable projects that directly
    #   import from `distutils.core` to work with newer packaging standards.
    # - It provides a clear error message when setuptools is not installed.
    # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
    #   setuptools doesn't think the script is `-c`. This avoids the following warning:
    #     manifest_maker: standard file '-c' not found".
    # - It generates a shim setup.py, for handling setup.cfg-only projects.
    import os, sys, tokenize

    try:
        import setuptools
    except ImportError as error:
        print(
            "ERROR: Can not execute `setup.py` since setuptools is not available in "
            "the build environment.",
            file=sys.stderr,
        )
        sys.exit(1)

    __file__ = %r
    sys.argv[0] = __file__

    if os.path.exists(__file__):
        filename = __file__
        with tokenize.open(__file__) as f:
            setup_py_code = f.read()
    else:
        filename = "<auto-generated setuptools caller>"
        setup_py_code = "from setuptools import setup; setup()"

    exec(compile(setup_py_code, filename, "exec"))
    ''' % ({!r},), "<pip-setuptools-caller>", "exec"))
    Fsetup_py_pathglobal_optionsno_user_configunbuffered_outputreturnc                     t           j        g}|r|dgz  }|dt                              |           gz  }|r||z  }|r|dgz  }|S )ao  
    Get setuptools command arguments with shim wrapped setup file invocation.

    :param setup_py_path: The path to setup.py to be wrapped.
    :param global_options: Additional global options.
    :param no_user_config: If True, disables personal user configuration.
    :param unbuffered_output: If True, adds the unbuffered switch to the
     argument list.
    z-uz-cz--no-user-cfg)sys
executable_SETUPTOOLS_SHIMformat)r   r   r   r	   argss        [/var/www/html/api/venv/lib/python3.11/site-packages/pip/_internal/utils/setuptools_build.pymake_setuptools_shim_argsr   1   sk     ND T#**=99::D  "!!K    build_optionsdestination_dirc                 D    t          | |d          }|dd|gz  }||z  }|S )NTr   r	   bdist_wheelz-dr   )r   r   r   r   r   s        r    make_setuptools_bdist_wheel_argsr   K   sA     %n  D 	]D/22DMDKr   c                 8    t          | |d          }|ddgz  }|S )NTr   cleanz--allr   )r   r   r   s      r   make_setuptools_clean_argsr   ]   s5     %n  D 	WgDKr   install_optionsprefixhomeuse_user_sitec                     |r|rJ t          | ||          }|ddgz  }||z  }|r|d|gz  }||d|gz  }|r|ddgz  }|S )N)r   r   developz	--no-deps--prefixz--install-dir--user	--prefix=r   )r   r   r   r   r   r    r!   r   s           r   make_setuptools_develop_argsr'   h   s     )&)))$%%  D 	Y$$DOD %V$$$'' (;''Kr   egg_info_dirc                 F    t          | |          }|dgz  }|r|d|gz  }|S )N)r   egg_infoz
--egg-baser   )r   r(   r   r   s       r   make_setuptools_egg_info_argsr+      s>    
 %]>RRRDZLD -|,,Kr   record_filenameroot
header_dir	pycompilec                     |r|rJ |r|rJ t          | ||	d          }|dd|gz  }|dgz  }||d|gz  }||d|gz  }||d|gz  }|r|d	d
gz  }|
r|dgz  }n|dgz  }|r|d|gz  }||z  }|S )NT)r   r   r	   installz--recordz#--single-version-externally-managedz--rootr$   z--homer%   r&   z	--compilez--no-compilez--install-headersr   )r   r   r   r,   r-   r   r.   r    r!   r   r/   r   s               r   make_setuptools_install_argsr2      s    )&)))'$'''$%%	  D 	Y
O44D233D4  V$$4   (;'' !   2$j11ODKr   )NFF)r   textwraptypingr   r   r   dedentrstripr   strboolr   r   r   r'   r+   r2    r   r   <module>r:      s   



  + + + + + + + + + +
 #8?$& &L 	&((M V /3 #	 Xc]+  	
 
#Y   4SM C= 	
 
#Y   $SM 
#Y   SM c] 	
 SM 3-  
#Y   @3-  
#Y	   ,,SM, c], 	,
 3-, SM, , 3-, , , , 
#Y, , , , , ,r   