HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.7/site-packages/setuptools/_distutils/__pycache__/spawn.cpython-37.pyc
B

N��g�
�@sXdZddlZddlZddlZddlmZddlmZddlm	Z	ddd�Z
d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�)�DistutilsExecError)�DEBUG)�logc
Cst|�}t�t�|��|r dS|r@t|d�}|dk	r@||d<|dk	rL|nttj�}t	j
dkr�ddlm}m
}|�}|r�|||<y tj||d�}	|	��|	j}
WnFtk
r�}z(ts�|d}td�||jd��|�Wdd}~XYnX|
�rts�|d}td�||
���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.
    Nr�darwin)�MACOSX_VERSION_VAR�get_macosx_target_ver)�envzcommand {!r} failed: {}���z%command {!r} failed with exit code {})�listr�info�
subprocess�list2cmdline�find_executable�dict�os�environ�sys�platform�distutils.utilrr�Popen�wait�
returncode�OSErrorrr�format�args)�cmd�search_path�verbose�dry_runr	�
executablerrZmacosx_target_ver�proc�exitcode�exc�r$�?/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/_distutils/spawn.py�spawns:

r&c	Cs�tj�|�\}}tjdkr*|dkr*|d}tj�|�r:|S|dkr�tj�dd�}|dkr�yt�d�}Wnt	t
fk
r�tj}YnX|s�dS|�tj
�}x*|D]"}tj�||�}tj�|�r�|Sq�WdS)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�isfiler�get�confstr�AttributeError�
ValueError�defpath�split�pathsep�join)r r*�_�ext�paths�p�fr$r$r%rKs(
r)rrrN)N)�__doc__rrr
�errorsr�debugr�_logrr&rr$r$r$r%�<module>s
9