^i8Rf2 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 ddZ!dxa"xa#a$d Z%d Z&ddZ'd Z( ddZ)d Z*dS ) 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 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 posixunameNr aixr )aix_platform)sysversion_infoosnameversionlowerhasattrr py38compatr sysconfigget_platform)osnamehostreleaser machiner s /builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/_distutils/util.pyget_host_platformr# s & 7d??#+++----"{CK--////"{ & 7g'"g"6"668hjj3FD'7GbqbzU""444444#|FGW===!### c t j dk rIddddd} t j d }| | p t S t S )Nr win32z win-amd64r r )x86x64armarm64VSCMD_ARG_TGT_ARCH)r r environgetr# )TARGET_TO_PLATtargets r" r r 3 sg w$ 455!!&))@->-@-@@r$ darwinMACOSX_DEPLOYMENT_TARGETc da dS )zFor testing only. Do not call.N)_syscfg_macosx_ver r$ r" _clear_cached_macosx_verr5 E s r$ c ` t !ddlm} | j t pd}|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.Nr )r )r3 distutilsr get_config_varMACOSX_VERSION_VAR)r vers r" !get_macosx_target_ver_from_syscfgr<