Ë
    ¨Õ°jÀ
  ã                  ó–   — d Z ddlmZ ddlZddl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 ej                  d„ «       Zdd	„Zddd
„Zy)z–distutils.spawn

Provides the 'spawn()' function, a front-end to various platform-
specific functions for launching another program in a sub-process.
é    )ÚannotationsN)ÚMutableSequenceé   )Úlog)ÚDistutilsExecErrorc              #  óæ   K  — 	 d–— y# t         $ r'}t        d| d   ›d|j                  d   › �«      |‚d}~wt        j                  $ r$}t        d| d   ›d|j
                  › �«      |‚d}~ww xY w­w)zCReraise a subprocess failure running 'cmd' as a DistutilsExecError.Nzcommand r   z	 failed: éÿÿÿÿz failed with exit code )ÚOSErrorr   ÚargsÚ
subprocessÚCalledProcessErrorÚ
returncode)ÚcmdÚexcÚerrs      úQ/var/www/mission/venv/lib/python3.12/site-packages/setuptools/_distutils/spawn.pyÚ_translate_errorsr      s~   è ø€ ðÜøÜò XÜ  8¨C°©F¨:°Y¸s¿x¹xÈ¹|¸nÐ!MÓNÐTWÐWûÜ×(Ñ(ò Ü Ø�s˜1‘v�jÐ 7¸¿¹Ð7GÐHó
àð	ûðüs.   ‚A1„	 ˆA1‰	A.’"4´A.Á
A)Á)A.Á.A1c                óÀ   — t        j                  t        j                  | «      «       t	        | «      5  t        j
                  | fi |¤Ž ddd«       y# 1 sw Y   yxY w)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.
    Any keyword arguments are passed through to ``subprocess.check_call``.

    Raise DistutilsExecError if running the program fails in any way; just
    return on success.
    N)r   Úinfor   Úlist2cmdliner   Ú
check_call)r   Úkwargss     r   Úspawnr   !   sK   € ô ‡H�HŒZ×$Ñ$ SÓ)Ô*Ü	˜3Ó	ñ -Ü×Ñ˜cÑ, VÒ,÷-÷ -ñ -ús   ´AÁAc                ó’  — t        j                  dt        d¬«       t        j                  j                  | «      \  }}t        j                  dk(  r
|dk7  r| dz   } t        j                  j                  | «      r| S |€8t        j                  j                  dd«      }|€	 t        j                  d«      }|sy|j                  t        j                   «      }|D ]E  }t        j                  j#                  || «      }t        j                  j                  |«      sŒC|c S  y# t        t        f$ r t        j                  }Y ŒŽw xY w)	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.
    z+Use shutil.which instead of find_executableé   )Ú
stacklevelÚwin32z.exeNÚPATHÚCS_PATH)ÚwarningsÚwarnÚDeprecationWarningÚosÚpathÚsplitextÚsysÚplatformÚisfileÚenvironÚgetÚconfstrÚAttributeErrorÚ
ValueErrorÚdefpathÚsplitÚpathsepÚjoin)Ú
executabler$   Ú_ÚextÚpathsÚpÚfs          r   Úfind_executabler8   0   s  € ô ‡M�MØ5Ô7IÐVWõô �W‰W×Ñ˜jÓ)�F€A€sÜ�‰˜Ò c¨V¢mØ &Ñ(ˆ
ä	‡w�w‡~�~�jÔ!ØÐà€|Ü�z‰z�~‰~˜f dÓ+ˆàˆ<ð"Ü—z‘z )Ó,�ñ Øà�J‰J”r—z‘zÓ"€EØò ˆÜ�G‰G�L‰L˜˜JÓ'ˆÜ�7‰7�>‰>˜!ÕàŠHð	ð
 øô #¤JÐ/ò "ä—z‘z’ð"ús   Â"D$ Ä$EÅE)r   z/MutableSequence[bytes | str | os.PathLike[str]]ÚreturnÚNone)N)r2   Ústrr$   ú
str | Noner9   r<   )Ú__doc__Ú
__future__r   Ú
contextlibr#   r   r&   r    Úcollections.abcr   Ú_logr   Úerrorsr   Úcontextmanagerr   r   r8   © ó    r   ú<module>rF      sK   ðñõ #ã Û 	Û Û 
Û Ý +å Ý &ð ×Ññ	ó ð	ó-õ$rE   