_iF V 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 ddZ!dxa"xa#a$d Z%d Z&ddZ'd Z( ddZ)d Z*y)zudistutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. N )DistutilsPlatformErrorDistutilsByteCompileError)newer)spawn)logc t j dk rUt j dk( rBdt j j v rydt j j v ryt j dk rUt j dk( rBt t d r2t 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 posixunameNr aixr )aix_platform)sysversion_infoosnameversionlowerhasattrr py38compatr sysconfigget_platform)osnamehostreleaser machiner s /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/_distutils/util.pyget_host_platformr# s & 77d?#++++--"CKK--//" & 77g'"g"668hhj3FD'7GbqzU"4#FGW==!!## c t j dk( rCddddd} t j j d }| j | xs t S t S )Nr win32z win-amd64r r )x86x64armarm64VSCMD_ARG_TGT_ARCH)r r environgetr# )TARGET_TO_PLATtargets r" r r 3 sX ww$ 45!!&)@->-@@r$ darwinMACOSX_DEPLOYMENT_TARGETc da y)zFor testing only. Do not call.N)_syscfg_macosx_ver r$ r" _clear_cached_macosx_verr5 E s r$ c b t $ddlm} | j t xs d}|r|a t S )zGet the version of macOS latched in the Python interpreter configuration. Returns the version as a string or None if can't obtain one. Cached.r )r )r3 distutilsr get_config_varMACOSX_VERSION_VAR)r vers r" !get_macosx_target_ver_from_syscfgr<