Ë
    
_ßd§  ã                   óT   — 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y)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                 ól  — t        | «      } t        j                  t        j                  | «      «       |ry|rt        | d   «      }|�|| d<   |�|nt        t        j                  «      }t        j                  dk(  rddlm}m}  |«       }|r|||<   	 t        j                  | |¬«      }	|	j                  «        |	j                   }
|
r&t$        s| d   } t'        dj)                  | |
«      «      ‚y# t"        $ r9}t$        s| d   } t'        dj)                  | |j*                  d   «      «      |‚d}~ww 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.
    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               ú=/usr/lib/python3/dist-packages/setuptools/_distutils/spawn.pyÚspawnr(      s&  € ô$ ˆs‹)€Cä‡H�HŒZ×$Ñ$ SÓ)Ô*ÙØáÜ$ S¨¡VÓ,ˆ
ØÐ!ØˆC�‰Fà�‰#¤d¬2¯:©:Ó&6€Cä
‡|�|�xÒßLá1Ó3ÐÙØ&7ˆCÐ"Ñ#ð	Ü×Ñ ¨Ô-ˆØ�	‰	ŒØ—?‘?ˆñ ÝØ�a‘&ˆCÜ Ø3×:Ñ:¸3ÀÓIó
ð 	
ð øô ò ÝØ�a‘&ˆCÜ Ø%×,Ñ,¨S°#·(±(¸2±,Ó?ó
àð	ûðús   Â3C1 Ã1	D3Ã:4D.Ä.D3c                 óZ  — 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.
    Ú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‰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 ÄD*Ä)D*)r   r   r   N)N)Ú__doc__r   r   r   Úerrorsr   Údebugr   Ú_logr   r(   r   © ó    r'   ú<module>rC      s)   ðñó Û 	Û å &Ý Ý ó6
ôr"rB   