HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/setuptools/_distutils/__pycache__/spawn.cpython-38.pyc
U

<D�g8�@sndZddlZddlZddlZddlmZmZddlmZddl	m
Z
ejdkrVdada
ddd	�Zd
d
d�ZdS)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)�DistutilsPlatformError�DistutilsExecError)�DEBUG)�log�darwin�c
Csxt|�}t�d�|��|r dS|r@t|d�}|dk	r@||d<|dk	rL|nttj�}tj	dkr�t
dkr�ddlm}|�
d�p�da
t
r�dd	�t
�d
�D�at
r�tj�dt
�}tdd	�|�d
�D�kr�d|t
f}t|��|j|d
�z tj||d�}	|	��|	j}
WnJtk
�rN}z*t�s&|d}td||jdf�|�W5d}~XYnX|
�rtt�sd|d}td||
f��dS)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.
    � Nrr)�	sysconfig�MACOSX_DEPLOYMENT_TARGET�cSsg|]}t|��qS���int��.0�xrr�H/opt/cppython/lib/python3.8/site-packages/setuptools/_distutils/spawn.py�
<listcomp>=szspawn.<locals>.<listcomp>�.cSsg|]}t|��qSrr
rrrrrCszF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure)r
)�envzcommand %r failed: %s���z#command %r failed with exit code %s)�listr�info�join�find_executable�dict�os�environ�sys�platform�_cfg_target�	distutilsr	�get_config_var�split�_cfg_target_split�getr�update�
subprocess�Popen�wait�
returncode�OSErrorrr�args)�cmd�search_path�verbose�dry_runr�
executabler	�
cur_target�my_msg�proc�exitcode�excrrr�spawnsZ
���
��
�r7c	Cs�tj�|�\}}tjdkr*|dkr*|d}tj�|�r:|S|dkr�tj�dd�}|dkr�zt�d�}Wnt	t
fk
r�tj}YnX|s�dS|�tj
�}|D]&}tj�||�}tj�|�r�|Sq�dS)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�splitextrr�isfilerr%�confstr�AttributeError�
ValueError�defpathr#�pathsepr)r1r;�_�ext�paths�p�frrrr[s(
r)rrrN)N)�__doc__rrr'�distutils.errorsrr�distutils.debugrr!rrr r$r7rrrrr�<module>s

D