관리-도구
편집 파일: util.cpython-39.opt-2.pyc
a R�f�Q � @ s d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlm Z d dl mZ d dlm Z d dlmZ dd� Zd d � Zdd� Zd d� Zd add� Zdd� Zd)dd�Zd a aadd� Zdd� Zd*dd�Zdd� Zd+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 jdkrFdtj�� v rdS dtj�� v r.dS dtj�� v r@dS tjS dt jv rZt jd S t jd ksntt d �sttjS t �� \} }}}}| �� � dd�} |� d d�}|� dd�}| d d� dkr�d| |f S | d d� dk�r,|d dk�r�d} dt |d �d |dd � f }ddd�}|d|tj 7 }n�| d d� dk�rPddlm } |� S | d d � d!k�r�d!} t�d"tj�}|�|�}|�r�|�� }n>| d d � d#k�r�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. �3/opt/alt/python39/lib64/python3.9/distutils/util.py�get_host_platform sP � r0 c C s8 t jdkr.dddd�} | �t j�d��p,t� S t� S d S )Nr Zwin32r r )Zx86Zx64ZarmZVSCMD_ARG_TGT_ARCH)r r �getr r0 )ZTARGET_TO_PLATr. r. r/ �get_platformb s �r2 c C sz t jdkr| S | s| S | d dkr.td| ��| d dkrFtd| ��| �d�}d|v rd|�d� qP|snt 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_pathm s r>