Hacked By AnonymousFox

Current Path : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/_aix_support.cpython-311.pyc

�

c��f=
��h�dZddlZddlZ	ddlZn#e$rddlZYnwxYwd�Zd�Zd�Zd�Z	d�Z
d�ZdS)	zShared AIX support functions.�Nc��tjdkrdnd}|dkr|nd}d�|d|d|d||��S)	Ni���� �@r�'zaix-{:1x}{:1d}{:02d}-{:04d}-{}��)�sys�maxsize�format)�vrtl�bd�_sz�_bds    �3/opt/alt/python311/lib64/python3.11/_aix_support.py�_aix_tagrsS�����(�(�"�"�b�C��a���"�"�T�C�+�2�2�4��7�D��G�T�!�W�c�SV�W�W�W�c��|�d��dd�\}}}t|d��t|��t|��gS)N�.����)�split�int)�vrmf�v�r�tls    r�	_aix_vrtlrsC���z�z�#���r��r�"�H�A�q�"���"��J�J��A����B���(�(rc��tjgd���}|�d��}|����d��}|ddkrt|d��nd}t
|d��|fS)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-Lqczbos.rtezutf-8�:r�rr)�
subprocess�check_output�decode�striprr�str)�outrs  r�_aix_bos_rter's{���
!�"G�"G�"G�
H�
H�C�

�*�*�W�
�
�C�

�)�)�+�+�
�
�C�
 �
 �C��b�'�R�-�-�#�c�"�g�,�,�,�T�C���A��K�K���rc�^�t��\}}tt|��|��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'rr)rr
s  r�aix_platformr).s'��&�~�~�H�D�"��I�d�O�O�R�(�(�(rc�l�tjd��}|std���t|���S)N�BUILD_GNU_TYPEzBUILD_GNU_TYPE is not defined)r)�	sysconfig�get_config_var�
ValueErrorr)�gnu_types r�_aix_bgtr0Fs;���'�(8�9�9�H��:��8�9�9�9��(�#�#�#�#rc���tjd��}	t|��}n'#ttf$rtd|�����wxYwtt
��|��S)zD
    Return the platform_tag of the system Python was built on.
    �
AIX_BUILDDATEz)AIX_BUILDDATE is not defined or invalid: )r,r-rr.�	TypeErrorrr0)�
build_dates r�aix_buildtagr5Ns����)�/�:�:�J�,���_�_�
�
���	�"�,�,�,��+�&�+�+�,�,�	,�,�����H�J�J�
�+�+�+s	�&�$A
)�__doc__r	r,r!�ImportError�_bootsubprocessrrr'r)r0r5�rr�<module>r:s���#�#�
�
�
�
�����)��������)�)�)�)�(�(�(�(�(�)����X�X�X�)�)�)�
�
�
� )�)�)�0$�$�$�
,�
,�
,�
,�
,s��	�

Hacked By AnonymousFox1.0, Coded By AnonymousFox