Your IP : 18.222.91.173
o
6��f(R � @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZ d dl m
Z
d dlmZ d dlm
Z
d dlmZ dd� Zd d
� Zdd� Zd
d� Zd add� Zdd� Zd)dd�Zd a aadd� Zdd� Zd*dd�Zdd� Z d+dd �Zd!d"� Zd,d#d$�Z d-d%d&�Z!G d'd(� d(�Z"dS ).� N)�DistutilsPlatformError)�newer)�spawn)�log)�DistutilsByteCompileErrorc C s� t jdkr$dtj�� v rdS dtj�� v rdS dtj�� v r!dS tjS dt jv r.t jd S t jd ks8tt d
�s;tjS t �� \} }}}}| �� � dd�} |� d
d�}|� dd�}| d d� dkrfd| |f S | d d� dkr�|d dkr�d} dt
|d �d |dd � f }ddd�}|d|tj 7 }nL| d d� dkr�ddlm
} |� S | d d � d!kr�d!} t�d"tj�}|�|�}|r�|�� }n| d d � d#kr�dd l} dd l}
| �|
j�� | ||�\} }}d$| ||f S )%N�ntZamd64� win-amd64z(arm)� win-arm32z(arm64)z win-arm64Z_PYTHON_HOST_PLATFORM�posix�uname�/� � �_�-� Zlinuxz%s-%sZsunosr �5Zsolarisz%d.%s� � Z32bitZ64bit)i���l ���� z.%sZaix)�aix_platform� �cygwinz[\d.]+�darwinz%s-%s-%s)�os�name�sys�version�lower�platform�environ�hasattrr �replace�int�maxsizeZ_aix_supportr �re�compile�ASCII�match�group�_osx_supportZdistutils.sysconfigZget_platform_osxZ sysconfigZget_config_vars)ZosnameZhost�releaser �machineZbitnessr Zrel_re�mr) � distutils� r. �5/opt/alt/python310/lib64/python3.10/distutils/util.py�get_host_platform sV
�
�
�r0 c C s4 t jdkrdddd�} | �t j�d��pt� S t� S )Nr Zwin32r r )Zx86Zx64ZarmZVSCMD_ARG_TGT_ARCH)r r �getr r0 )ZTARGET_TO_PLATr. r. r/ �get_platformc s
�r2 c C s� t jdkr| S | s| S | d dkrtd| ��| d dkr$td| ��| �d�}d|v r6|�d� d|v s-|s;t jS t jj|� S )Nr r zpath '%s' cannot be absolute���zpath '%s' cannot end with '/'�.)r �sep�
ValueError�split�remove�curdir�path�join)�pathname�pathsr. r. r/ �convert_pathn s
�r>