uawdijnntqw1x1x1
IP : 3.15.17.60
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
..
/
lib
/
python3.6
/
site-packages
/
pip
/
__pycache__
/
.
/
pep425tags.cpython-36.pyc
/
/
3 ���^�*� @sdZddlmZddlZddlZddlZddlZddlZyddlZWne k rbddl jZYnXddlZddl mZddlZeje�Zejd�Zdd�Zdd �Zd d�Zdd �Zdd�Zd!dd�Zdd�Zdd�Zdd�Zdd�Zdd�Z d"dd�Z!e!�Z"e!dd �Z#e�Z$dS)#z2Generate and work with PEP 425 Compatibility Tags.�)�absolute_importN)�OrderedDictz(.+)_(\d+)_(\d+)_(.+)cCsBy tj|�Stk r<}ztjdj|�t�dSd}~XnXdS)Nz{0})� sysconfig�get_config_var�IOError�warnings�warn�format�RuntimeWarning)�var�e�r � /usr/lib/python3.6/pep425tags.pyrs rcCs:ttd�rd}n&tjjd�r"d}ntjdkr2d}nd}|S)z'Return abbreviated implementation name.�pypy_version_info�pp�javaZjyZcliZip�cp)�hasattr�sys�platform� startswith)Zpyimplr r r� get_abbr_impl!s rcCs.td�}|st�dkr*djttt���}|S)zReturn implementation version.�py_version_nodotr�)rr�join�map�str�get_impl_version_info)Zimpl_verr r r�get_impl_ver.srcCs:t�dkr"tjdtjjtjjfStjdtjdfSdS)zQReturn sys.version_info-like tuple for use in decrementing the minor version.rr�N)rr�version_infor�major�minorr r r rr6s rcCsdjt�t��S)z; Returns the Tag for this specific implementation. z{0}{1})r rrr r r r�get_impl_tagAsr#TcCs.t|�}|dkr&|r tjd|�|�S||kS)zgUse a fallback method for determining SOABI flags if the needed config var is unset or unavailable.Nz>Config variable '%s' is unset, Python ABI tag may be incorrect)r�logger�debug)rZfallback�expectedr�valr r r�get_flagHsr(cs�td�}t��|r��dkr�ttd�r�d}d}d}tddd��dkd �rLd }td�fdd��dkd �rjd }tddd�d�dko�tjdkd�r�tjdkr�d}d�t�|||f}n@|r�|jd�r�d|jd�d}n|r�|j dd�j dd�}nd}|S)zXReturn the ABI tag based on SOABI (if available) or emulate SOABI (CPython 2, PyPy).�SOABIrr� maxunicoder�Py_DEBUGcSs ttd�S)N�gettotalrefcount)rrr r r r�<lambda>^szget_abi_tag.<locals>.<lambda>)r�d� WITH_PYMALLOCcs�dkS)Nrr r )�implr rr-bs�mZPy_UNICODE_SIZEcSs tjdkS)Ni��)rr*r r r rr-fs��)r&r�uz %s%s%s%s%szcpython-�-r�.�_N)rr)r3r3)r3r3) rrrrr(r rr�split�replace)Zsoabir.r1r4�abir )r0r�get_abi_tagTs8 r;cCs tjdkS)Ni���)r�maxsizer r r r�_is_running_32bitvsr=cCs�tjdkr^tj�\}}}|jd�}|dkr6t�r6d}n|dkrHt�rHd}dj|d|d |�Stjj�j dd �j dd �}|dkr�t�r�d }|S)z0Return our platform name 'win32', 'linux_x86_64'�darwinr6�x86_64�i386�ppc64�ppczmacosx_{0}_{1}_{2}rrr7r5�linux_x86_64� linux_i686) rrZmac_verr8r=r � distutils�util�get_platformr9)�releaser7�machineZ split_ver�resultr r rrGzs rGcCsJt�dkrdSyddl}t|j�Sttfk r8YnXtjjj dd�S)NrCrDFr��)rCrD) rG� _manylinux�boolZmanylinux1_compatible�ImportError�AttributeError�pipZutilsZglibcZhave_compatible_glibc)rMr r r�is_manylinux1_compatible�s rRcsvg}��fdd��td dddg���|||�r8|j|�x.�D]&}|�|kr>�|||�r>|j|�q>W|jd�|S)z�Return a list of supported arches (including group arches) for the given major, minor and machine architecture of an macOS machine. cs~|dkr||fd kS|dkr(||fdkS|dkr<||fdkS|dkrP||fd kS|�krzx �|D]}�|||�rbdSqbWd S)NrB� rLrAr@r2r?TF)rSrL)rSrL)rSr2)rSrLr )r!r"�arch�garch)�_supports_arch�groupsr rrV�sz)get_darwin_arches.<locals>._supports_arch�fatr@rB�intelr?�fat64rA�fat32Z universal�r@rB)rXr\�r?r@)rYr]�r?rA)rZr^�r?r@rB)r[r_)r�append)r!r"rI�archesrUr )rVrWr�get_darwin_arches�s$ rbFcCsg}|dkrXg}t�}|dd�}x4t|ddd�D] }|jdjtt||f���q4W|p`t�}g} |pnt�}|r�|g| dd�<t�} ddl }x8|j �D],}|djd�r�| j|dj dd�d�q�W| jtt| ���| jd�|�sx|p�t�} | jd ��r�tj| �}|�r�|j�\}}}}d j||�}g}xTttt|�d��D]4}x,tt|�||�D]}|j|||f��q^W�qHWn| g}n*|dk�r�t��r�| jdd�| g}n| g}x:| D]2}x*|D]"} |jd ||df|| f��q�W�q�WxZ|dd�D]J}|dk�rPx6| D].}x&|D]} |jd ||f|| f��qW�qW�q�Wx*|D]"} |jd|ddd| f��qRW|jd ||dfddf�|jd ||ddfddf�xNt|�D]B\}}|jd|fddf�|dk�r�|jd|dddf��q�W|S)acReturn a list of supported tags for each version specified in `versions`. :param versions: a list of string versions, of the form ["33", "32"], or None. The first version will be assumed to support our ABI. :param platform: specify the exact platform you want valid tags for, or None. If None, use the local system platform. :param impl: specify the exact implementation you want valid tags for, or None. If None, use the local interpreter impl. :param abi: specify the exact abi you want valid tags for, or None. If None, use the local interpreter abi. Nrrrz.abir6rKZnoneZmacosxz {0}_{1}_%i_%s�linuxZ manylinux1z%s%s�31�30zpy%s�any���rgrgrg)rdre)r�ranger`rrrrr;�set�impZget_suffixesr�addr8�extend�sorted�listrG� _osx_arch_pat�matchrWr �reversed�intrbrRr9� enumerate)Zversions�noarchrr0r:Z supportedr r!r"ZabisZabi3srj�suffixrTrp�nameZactual_archZtplrar1�a�version�ir r r� get_supported�sh ( * " rz)rt)TT)NFNNN)%�__doc__Z __future__r�rerrrZloggingrrOZdistutils.sysconfigZdistutils.utilrEZ pip.compatrZpip.utils.glibcrQZ getLogger�__name__r$�compilerorrrrr#r(r;r=rGrRrbrzZsupported_tagsZsupported_tags_noarchZimplementation_tagr r r r�<module>s> "= ^
/home/../lib/python3.6/site-packages/pip/__pycache__/./pep425tags.cpython-36.pyc