§
    Á³g§  ã                   óV   — d Z ddlZddlZddlZddlmZ ddlmZ ddlm	Z	 d	d„Z
d
d„ZdS )zìdistutils.spawn

Provides the 'spawn()' function, a front-end to various platform-
specific functions for launching another program in a sub-process.
Also provides the 'find_executable()' to search the path for a given
executable name.
é    Né   )ÚDistutilsExecError)ÚDEBUG)Úlogc                 ó®  — t          | ¦  «        } t          j        t          j        | ¦  «        ¦  «         |rdS |rt          | d         ¦  «        }|�|| d<   |�|nt          t          j        ¦  «        }t          j
        dk    rddlm}m}  |¦   «         }|r|||<   	 t          j        | |¬¦  «        }	|	                     ¦   «          |	j        }
nP# t"          $ rC}t$          s| d         } t'          d                     | |j        d         ¦  «        ¦  «        |‚d}~ww xY w|
r2t$          s| d         } t'          d                     | |
¦  «        ¦  «        ‚dS )	a�  Run another program, specified as a command list 'cmd', in a new process.

    'cmd' is just the argument list for the new process, ie.
    cmd[0] is the program to run and cmd[1:] are the rest of its arguments.
    There is no way to run a program with a name different from that of its
    executable.

    If 'search_path' is true (the default), the system's executable
    search path will be used to find the program; otherwise, cmd[0]
    must be the exact path to the executable.  If 'dry_run' is true,
    the command will not actually be run.

    Raise DistutilsExecError if running the program fails in any way; just
    return on success.
    Nr   Údarwin)ÚMACOSX_VERSION_VARÚget_macosx_target_ver)Úenvzcommand {!r} failed: {}éÿÿÿÿz%command {!r} failed with exit code {})Úlistr   ÚinfoÚ
subprocessÚlist2cmdlineÚfind_executableÚdictÚosÚenvironÚsysÚplatformÚdistutils.utilr	   r
   ÚPopenÚwaitÚ
returncodeÚOSErrorr   r   ÚformatÚargs)ÚcmdÚsearch_pathÚverboseÚdry_runr   Ú
executabler	   r
   Úmacosx_target_verÚprocÚexitcodeÚexcs               úY/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/setuptools/_distutils/spawn.pyÚspawnr(      s•  € õ$ ˆs‰)Œ)€Cå„H�ZÔ$ SÑ)Ô)Ñ*Ô*Ð*Øð Øˆàð  Ý$ S¨¤VÑ,Ô,ˆ
ØÐ!ØˆC�‰Fà�ˆ#ˆ#¥d­2¬:Ñ&6Ô&6€Cå
„|�xÒÐØLÐLÐLÐLÐLÐLÐLÐLà1Ð1Ñ3Ô3ÐØð 	8Ø&7ˆCÐ"Ñ#ð	ÝÔ ¨Ð-Ñ-Ô-ˆØ�	Š	‰ŒˆØ”?ˆˆøÝð ð ð Ýð 	Ø�a”&ˆCÝ Ø%×,Ò,¨S°#´(¸2´,Ñ?Ô?ñ
ô 
àð	øøøøðøøøð ð 
Ýð 	Ø�a”&ˆCÝ Ø3×:Ò:¸3ÀÑIÔIñ
ô 
ð 	
ð
ð 
s   Â1C Ã
DÃ>DÄDc                 óR  — t           j                             | ¦  «        \  }}t          j        dk    r|dk    r| dz   } t           j                             | ¦  «        r| S |€[t           j                             dd¦  «        }|€9	 t          j        d¦  «        }n## t          t          f$ r t           j        }Y nw xY w|sdS |                     t           j        ¦  «        }|D ]E}t           j                             || ¦  «        }t           j                             |¦  «        r|c S ŒFdS )zÚTries to find 'executable' in the directories listed in 'path'.

    A string listing directories separated by 'os.pathsep'; defaults to
    os.environ['PATH'].  Returns the complete filename or None if not found.
    Úwin32z.exeNÚPATHÚCS_PATH)r   ÚpathÚsplitextr   r   Úisfiler   ÚgetÚconfstrÚAttributeErrorÚ
ValueErrorÚdefpathÚsplitÚpathsepÚjoin)r"   r-   Ú_ÚextÚpathsÚpÚfs          r'   r   r   K   s)  € õ ŒW×Ò˜jÑ)Ô)�F€A€sÝŒ˜ÒÐ c¨V¢m mØ &Ñ(ˆ
å	„w‡~‚~�jÑ!Ô!ð ØÐà€|ÝŒz�~Š~˜f dÑ+Ô+ˆØˆ<ð"Ý”z )Ñ,Ô,��øÝ"¥JÐ/ð "ð "ð "å”z���ð"øøøð ð Øˆtà�JŠJ•r”zÑ"Ô"€EØð ð ˆÝŒG�LŠL˜˜JÑ'Ô'ˆÝŒ7�>Š>˜!ÑÔð 	àˆHˆHˆHð	ð ˆ4s   ÂB ÂB9Â8B9)r   r   r   N)N)Ú__doc__r   r   r   Úerrorsr   Údebugr   Ú_logr   r(   r   © ó    r'   ú<module>rC      s˜   ððð ð €
€
€
Ø 	€	€	€	Ø Ð Ð Ð à &Ð &Ð &Ð &Ð &Ð &Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð ð6
ð 6
ð 6
ð 6
ðr"ð "ð "ð "ð "ð "rB   