grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026o ®û|jÆ ã@spdZddlZddlZzddlZWn eyddlZYnwdd„Zdd„Zdd„Zd d „Z d d „Z d d„Z dS)zShared AIX support functions.éNcCs0tjdkrdnd}d |d|d|d||¡S)Niÿÿÿé é@zaix-{:1x}{:1d}{:02d}-{:04d}-{}réé)ÚsysÚmaxsizeÚformat)ZvrtlÚbdZ_sz©r ú3/opt/alt/python310/lib64/python3.10/_aix_support.pyÚ_aix_tagsr cCs2| d¡dd…\}}}t|dƒt|ƒt|ƒgS)NÚ.ééÿÿÿÿ)ÚsplitÚint)ÚvrmfÚvÚrZtlr r r Ú _aix_vrtlsrcCs>t gd¢¡}| d¡}| ¡ d¡}t|dƒt|dƒfS)z¾ Return a Tuple[str, int] e.g., ['7.1.4.34', 1806] The fileset bos.mp64 is the AIX kernel. It's VRMF and builddate reflect the current ABI levels of the runtime environment. )z/usr/bin/lslppz-Lqczbos.mp64zutf-8ú:rr)Ú subprocessZ check_outputÚdecodeÚstriprÚstrr)Úoutr r r Ú _aix_bosmp64s rcCstƒ\}}tt|ƒ|ƒS)aª AIX filesets are identified by four decimal values: V.R.M.F. V (version) and R (release) can be retreived using ``uname`` Since 2007, starting with AIX 5.3 TL7, the M value has been included with the fileset bos.mp64 and represents the Technology Level (TL) of AIX. The F (Fix) value also increases, but is not relevant for comparing releases and binary compatibility. For binary compatibility the so-called builddate is needed. Again, the builddate of an AIX release is associated with bos.mp64. AIX ABI compatibility is described as guaranteed at: https://www.ibm.com/ support/knowledgecenter/en/ssw_aix_72/install/binary_compatability.html For pep425 purposes the AIX platform tag becomes: "aix-{:1x}{:1d}{:02d}-{:04d}-{}".format(v, r, tl, builddate, bitsize) e.g., "aix-6107-1415-32" for AIX 6.1 TL7 bd 1415, 32-bit and, "aix-6107-1415-64" for AIX 6.1 TL7 bd 1415, 64-bit )rr r)rr r r r Ú aix_platform,s rcCs t d¡}|s tdƒ‚t|d�S)NZBUILD_GNU_TYPEzBUILD_GNU_TYPE is not defined)r)Ú sysconfigÚget_config_varÚ ValueErrorr)Zgnu_typer r r Ú_aix_bgtDs  r!c CsDt d¡}zt|ƒ}Wnttfytd|›�ƒ‚wttƒ|ƒS)zD Return the platform_tag of the system Python was built on. Z AIX_BUILDDATEz)AIX_BUILDDATE is not defined or invalid: )rrrr Ú TypeErrorr r!)Z build_dater r r Ú aix_buildtagLs  ÿÿ r#) Ú__doc__rrrÚ ImportErrorZ_bootsubprocessr rrrr!r#r r r r Ús   ý