Your IP : 3.21.12.122


Current Path : /opt/alt/python310/lib64/python3.10/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/distutils/__pycache__/spawn.cpython-310.opt-2.pyc

o

6��f4�@sl	ddlZddlZddlZddlmZmZddlmZddlm	Z	ej
dkr*dadaddd�Z
dd	d
�ZdS)
�N)�DistutilsPlatformError�DistutilsExecError)�DEBUG)�log�darwin�c

Cs|	t|�}t�d�|��|rdS|r!t|d�}|dur!||d<d}tjdkr}tdurEddlm	}|�
d�p8datrEdd�t�d	�D�atr}t
j�dt�}d
d�|�d	�D�}tdd�dd
gkrv|dd�dd
gkrvd|tf}	t|	��tt
j|d�}ztj||d�}
|
��|
j}Wnty�}zts�|d}td||jdf�|�d}~ww|r�ts�|d}td||f��dS)N� rr)�	sysconfig�MACOSX_DEPLOYMENT_TARGET�cS�g|]}t|��qS���int��.0�xr
r
�6/opt/alt/python310/lib64/python3.10/distutils/spawn.py�
<listcomp><�zspawn.<locals>.<listcomp>�.cSrr
rrr
r
rrDr��
�z]$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configure;must use 10.3 or later)r
)�envzcommand %r failed: %s���z#command %r failed with exit code %s)�listr�info�join�find_executable�sys�platform�_cfg_target�	distutilsr	Zget_config_var�split�_cfg_target_split�os�environ�getr�dict�
subprocess�Popen�wait�
returncode�OSErrorrr�args)
�cmdZsearch_path�verboseZdry_run�
executablerr	Z
cur_targetZcur_target_splitZmy_msg�procZexitcode�excr
r
r�spawnsh
��(��
����
��r5c	Cs�	tj�|�\}}tjdkr|dkr|d}tj�|�r|S|durCtj�dd�}|durCzt�d�}Wnt	t
fyBtj}Ynw|sGdS|�tj
�}|D]}tj�||�}tj�|�rb|SqOdS)NZwin32z.exe�PATH�CS_PATH)r&�path�splitextr r!�isfiler'r(�confstr�AttributeError�
ValueError�defpathr$�pathsepr)r2r8�_Zext�paths�p�fr
r
rr_s.
��r)rrr)N)r r&r*Zdistutils.errorsrrZdistutils.debugrr#rr!r"r%r5rr
r
r
r�<module>s

H

?>