Your IP : 13.59.58.68


Current Path : /opt/alt/python35/lib64/python3.5/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/__pycache__/spawn.cpython-35.opt-2.pyc



���]��@s�ddlZddlZddlmZmZddlmZddlmZddddd�Z	dd	�Z
dddd
d�Zejdkr�dd
lm
Z
dadaddddd�Zddd�ZdS)�N)�DistutilsPlatformError�DistutilsExecError)�DEBUG)�log�cCsmt|�}tjdkr1t||d|�n8tjdkrVt||d|�ntdtj��dS)N�posix�dry_run�ntz1don't know how to spawn programs on platform '%s')�list�os�name�_spawn_posix�	_spawn_ntr)�cmd�search_path�verboser�r�*/opt/alt/python35/lib64/python3.5/spawn.py�spawnsrcCs;x4t|�D]&\}}d|kr
d|||<q
W|S)N� z"%s")�	enumerate)�args�i�argrrr�_nt_quote_args+srcCs�|d}t|�}|r.t|�p+|}tjdj|g|dd���|s�ytjtj||�}WnNtk
r�}z.t	s�|}t
d||jdf��WYdd}~XnX|dkr�t	s�|}t
d||f��dS)Nrrrzcommand %r failed: %sz%command %r failed with exit status %d���)r�find_executabler�info�joinr�spawnv�P_WAIT�OSErrorrrr)rrrr�
executable�rc�excrrrr;s$
'-r�darwin)�	sysconfigcCs5tjdj|��|r dS|d}|r9tjp?tj}d}tjdkr tdkr�t	j
d�pudatr�dd�tjd�D�atr tj
jdt�}td	d�|jd�D�kr�d
|tf}t|��ttj
d|�}|rtjptj}tj�}	|	dkr�y0|dkrW|||�n||||�Wn[tk
r�}
z;ts�|}tjjd||
jf�tjd�WYdd}
~
XnXts�|}tjjd
|�tjd�n;x8ytj|	d�\}	}WnNtk
re}z.ts6|}td||jdf��WYdd}~XnXtj|�r�ts�|}td|tj|�f��q�tj|�r�tj |�}
|
dkr�dSts�|}td||
f��q�tj!|�rq�q�ts|}td||f��q�WdS)Nrrr%�MACOSX_DEPLOYMENT_TARGET�cSsg|]}t|��qSr)�int)�.0�xrrr�
<listcomp>es	z _spawn_posix.<locals>.<listcomp>�.cSsg|]}t|��qSr)r))r*r+rrrr,ks	zF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configurezunable to execute %r: %s
rz(unable to execute %r for unknown reasonszcommand %r failed: %sz"command %r terminated by signal %dz%command %r failed with exit status %dz1unknown error executing %r: termination status %dr)"rrrr�execvp�execv�sys�platform�_cfg_targetr&�get_config_var�split�_cfg_target_split�environ�getr�dict�execvpe�execve�forkr!r�stderr�write�strerror�_exit�waitpidrr�WIFSIGNALED�WTERMSIG�	WIFEXITED�WEXITSTATUS�
WIFSTOPPED)rrrrr"Zexec_fn�envZ
cur_targetZmy_msg�pid�e�statusr$�exit_statusrrrr
Xs�
"
	 -r
cCs�|dkrtjd}|jtj�}tjj|�\}}tjdkrh|dkrh|d}tjj|�s�x9|D]1}tjj	||�}tjj|�r�|Sq�WdS|SdS)N�PATH�win32z.exe)
rr6r4�pathsep�path�splitextr0r1�isfiler)r"rN�paths�base�ext�p�frrrr�s


r)r0rZdistutils.errorsrrZdistutils.debugrZ	distutilsrrrrr1r&r2r5r
rrrrr�<module>	sQ

?>