File: //usr/local/lib/python3.7/site-packages/setuptools/_distutils/__pycache__/util.cpython-37.pyc
B
N��g�F � @ s8 d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZmZ ddl
mZ ddlmZ ddlmZ dd � Zd
d� Zejdkr�dad
Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Ze �� dd� �Zdd� Zdd� Z d/d!d"�Z!d a" a#a$d#d$� Z%d%d&� Z&d0d'd(�Z'd)d*� Z(d1d+d,�Z)d-d.� Z*dS )2zudistutils.util
Miscellaneous utility functions -- anything that doesn't fit into
one of the other *util.py modules.
� N� )�DistutilsPlatformError�DistutilsByteCompileError)�newer)�spawn)�logc C s� t jdk r8tjdkr8dt j�� kr&dS dt j�� kr8dS t jdk r�tjdkr�ttd �r�t�� \} }}}}| d
d� dkr�d
dlm } || ||�S t
�� S )z�
Return a string that identifies the current platform. Use this
function to distinguish platform-specific build directories and
platform-specific built distributions.
)� � �ntz(arm)z win-arm32z(arm64)z win-arm64)r � �posix�unameNr �aixr )�aix_platform)�sys�version_info�os�name�version�lower�hasattrr
Z
py38compatr � sysconfig�get_platform)�osname�host�releaser �machiner � r �>/tmp/pip-unpacked-wheel-yrlplx0q/setuptools/_distutils/util.py�get_host_platform s
r c C s: t jdkr4ddddd�} t j�d�}| �|�p2t� S t� S )Nr
�win32z win-amd64z win-arm32z win-arm64)Zx86Zx64ZarmZarm64ZVSCMD_ARG_TGT_ARCH)r r �environ�getr )ZTARGET_TO_PLAT�targetr r r r 3 s
r �darwin�MACOSX_DEPLOYMENT_TARGETc C s da dS )zFor testing only. Do not call.N)�_syscfg_macosx_verr r r r �_clear_cached_macosx_verE s r'