관리-도구
편집 파일: util.cpython-37.opt-2.pyc
B YI~d�O � @ 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 ad d� Zdd� Zd'dd�Zd a aadd� Zdd� Zd(dd�Zdd� Zd)dd�Zdd � Zd*d!d"�Zd+d#d$�Z G d%d&� d&�Z!dS ),� N)�DistutilsPlatformError)�newer)�spawn)�log)�DistutilsByteCompileErrorc C s� t jdkr"dtj�� krdS tjS dt jkr6t jd S t jdksJtt d�sPtjS t �� \} }}}}| �� � dd�} |� d d �}|� dd�}| d d� d kr�d| |f S | d d� dk�r|d dk�r�d} dt |d �d |dd � f }ddd�}|d|tj 7 }n�| d d� dk�r(d| ||f S | d d� dk�rfd} t� dtj�}|�|�}|�r�|�� }n>| d d� dk�r�dd l}dd l} |�| j�� | ||�\} }}d | ||f S )!N�ntZamd64z win-amd64Z_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&