AlkantarClanX12
Current Path : /opt/alt/python38/lib64/python3.8/distutils/__pycache__/ |
Current File : //opt/alt/python38/lib64/python3.8/distutils/__pycache__/util.cpython-38.opt-2.pyc |
U i�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�� krdS dtj�� kr.dS dtj�� kr@dS tjS dt jkrZt 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�rLd| ||f 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.%sZaixz%s-%s.%s� �cygwinz[\d.]+�darwinz%s-%s-%s)�os�name�sys�version�lower�platform�environ�hasattrr �replace�int�maxsize�re�compile�ASCII�match�group�_osx_supportZdistutils.sysconfigZget_platform_osxZ sysconfigZget_config_vars) ZosnameZhost�releaser �machineZbitnessZrel_re�mr( � distutils� r- �3/opt/alt/python38/lib64/python3.8/distutils/util.py�get_host_platform sR � r/ 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 r/ )ZTARGET_TO_PLATr- r- r. �get_platforma s �r1 c C sz t jdkr| S | s| S | d dkr.td| ��| d dkrFtd| ��| �d�}d|krd|�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_pathl s r= c C s� t jdkr<t j�|�s$t j�| |�S t j�| |dd � �S nNt jdkr|t j�|�\}}|d dkrn|dd � }t j�| |�S tdt j ��d S )Nr � r r �\z!nothing known about platform '%s')r r r9 �isabsr: � splitdriver )Znew_rootr; Zdriver9 r- r- r. �change_root� s rB c C sx t rd S tjdkrZdtjkrZz$dd l} | �t�� �d tjd<