�
���c�F � �R � d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZmZ ddl
mZ ddlmZ ddlmZ d� Zd � Zej d
k rdadZd� Zd
� Zd� Zd� Zd� Zd� Z e j � � d� � � Zd� Zd� Z dd�Z!dxa"xa#a$d� Z%d� Z&dd�Z'd� Z( dd�Z)d� Z*dS ) zudistutils.util
Miscellaneous utility functions -- anything that doesn't fit into
one of the other *util.py modules.
� N� )�DistutilsPlatformError�DistutilsByteCompileError)�newer)�spawn)�logc �� � t j dk rTt j dk rDdt j � � � v rdS dt j � � � v rdS t j dk r_t j dk rOt
t d � � r:t j � � \ } }}}}| d
d� dk rd
dlm } || ||� � S t j � � 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)� win-arm32z(arm64)� win-arm64)r
� �posix�unameNr
�aixr )�aix_platform)�sys�version_info�os�name�version�lower�hasattrr �
py38compatr � sysconfig�get_platform)�osname�host�releaser �machiner s �</usr/lib/python3/dist-packages/setuptools/_distutils/util.py�get_host_platformr# s� � � ��&� � �
�7�d�?�?��#�+�+�+�-�-�-�-�"�{��C�K�-�-�/�/�/�/�"�{�
��&� � �
�7�g���'�"�g�"6�"6��68�h�j�j�3�F�D�'�7�G��b�q�b�z�U�"�"�4�4�4�4�4�4�#�|�F�G�W�=�=�=��!�#�#�#� c �� � t j dk rIddddd�} t j � d� � }| � |� � p
t � � S t � � S )Nr �win32z win-amd64r
r )�x86�x64�arm�arm64�VSCMD_ARG_TGT_ARCH)r r �environ�getr# )�TARGET_TO_PLAT�targets r" |