§
    (¶Õi=  ã                   óh   — d Z ddlZddlZ	 ddlZn# e$ r ddlZY nw xY wd„ Zd„ Zd„ Zd„ Z	d„ Z
d„ ZdS )	zShared AIX support functions.é    Nc                 ó”   — t           j        dk    rdnd}|dk    r|nd}d                     | d         | d         | d         ||¦  «        S )	Niÿÿÿé    é@   r   é'  zaix-{:1x}{:1d}{:02d}-{:04d}-{}é   é   )ÚsysÚmaxsizeÚformat)ÚvrtlÚbdÚ_szÚ_bds       ú#/usr/lib/python3.11/_aix_support.pyÚ_aix_tagr      sS   € õ ” Ò(Ð(ˆ"ˆ"¨b€CØ�a’�ˆ"ˆ"˜T€Cà+×2Ò2°4¸´7¸DÀ¼GÀTÈ!ÄWÈcÐSVÑWÔWÐWó    c                 ó¨   — |                       d¦  «        d d…         \  }}}t          |d         ¦  «        t          |¦  «        t          |¦  «        gS )Nú.é   éÿÿÿÿ)ÚsplitÚint)ÚvrmfÚvÚrÚtls       r   Ú	_aix_vrtlr      sC   € à�zŠz˜#‰Œ˜r ˜rÔ"�H€A€qˆ"Ý��"”‰JŒJ�˜A™œ¥ B¡¤Ð(Ð(r   c                  ó  — t          j        g d¢¦  «        } |                      d¦  «        } |                      ¦   «                              d¦  «        } | d         dk    rt          | d         ¦  «        nd}t          | d         ¦  «        |fS )a(  
    Return a Tuple[str, int] e.g., ['7.1.4.34', 1806]
    The fileset bos.rte represents the current AIX run-time level. It's VRMF and
    builddate reflect the current ABI levels of the runtime environment.
    If no builddate is found give a value that will satisfy pep425 related queries
    )z/usr/bin/lslppz-Lqczbos.rtezutf-8ú:r   Ú r   r   )Ú
subprocessÚcheck_outputÚdecodeÚstripr   r   Ústr)Úoutr   s     r   Ú_aix_bos_rter'      s{   € õ Ô
!Ð"GÐ"GÐ"GÑ
HÔ
H€CØ
�*Š*�WÑ
Ô
€CØ
�)Š)‰+Œ+×
Ò
˜CÑ
 Ô
 €CØ˜bœ' Rš-˜-�#ˆc�"Œg‰,Œ,ˆ,¨T€CÝ��A”‰KŒK˜ÐÐr   c                  ó^   — t          ¦   «         \  } }t          t          | ¦  «        |¦  «        S )a¨  
    AIX filesets are identified by four decimal values: V.R.M.F.
    V (version) and R (release) can be retrieved using ``uname``
    Since 2007, starting with AIX 5.3 TL7, the M value has been
    included with the fileset bos.rte 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.rte.
    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
    )r'   r   r   )r   r   s     r   Úaix_platformr)   .   s'   € õ& ‰~Œ~�H€Dˆ"Ý•I˜d‘O”O RÑ(Ô(Ð(r   c                  ól   — t          j        d¦  «        } | st          d¦  «        ‚t          | ¬¦  «        S )NÚBUILD_GNU_TYPEzBUILD_GNU_TYPE is not defined)r   )Ú	sysconfigÚget_config_varÚ
ValueErrorr   )Úgnu_types    r   Ú_aix_bgtr0   F   s;   € åÔ'Ð(8Ñ9Ô9€HØð :ÝÐ8Ñ9Ô9Ð9Ý˜(Ð#Ñ#Ô#Ð#r   c                  óÒ   — t          j        d¦  «        } 	 t          | ¦  «        } n'# t          t          f$ r t          d| ›�¦  «        ‚w xY wt          t          ¦   «         | ¦  «        S )zD
    Return the platform_tag of the system Python was built on.
    ÚAIX_BUILDDATEz)AIX_BUILDDATE is not defined or invalid: )r,   r-   r   r.   Ú	TypeErrorr   r0   )Ú
build_dates    r   Úaix_buildtagr5   N   s€   € õ Ô)¨/Ñ:Ô:€Jð,Ý˜‘_”_ˆ
ˆ
øÝ�	Ð"ð ,ð ,ð ,Ýð +Ø&ð+ð +ñ ,ô ,ð 	,ð,øøøõ •H‘J”J 
Ñ+Ô+Ð+s	   –& ¦$A
)Ú__doc__r	   r,   r!   ÚImportErrorÚ_bootsubprocessr   r   r'   r)   r0   r5   © r   r   ú<module>r:      sÊ   ðØ #Ð #à 
€
€
€
Ø Ð Ð Ð ð)ØÐÐÐÐøØð )ð )ð )ð )Ð(Ð(Ð(Ð(Ð(ð)øøøðXð Xð Xð)ð )ð )ðð ð ð )ð )ð )ð0$ð $ð $ð,ð ,ð ,ð ,ð ,s   Œ ‘	œ