403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/pip/_internal/utils/__pycache__/wheel.cpython-39.pyc
a

X��e��@s�dZddlZddlmZddlmZddlmZddlm	Z	m
Z
ddlmZddl
mZd	Ze�e�Ze
eeeefd
�dd�Ze
eed
�dd�Ze
eed�dd�Ze
eed�dd�Zeeedfd�dd�Zeedfedd�dd�ZdS)z0Support functions for working with wheel files.
�N)�Message)�Parser)�Tuple)�
BadZipFile�ZipFile)�canonicalize_name)�UnsupportedWheel)�r)�	wheel_zip�name�returnc
Csnz t||�}t||�}t|�}Wn:tyZ}z"t|�dt|�����WYd}~n
d}~00t||�||fS)z�Extract information from the provided wheel, ensuring it meets basic
    standards.

    Returns the name of the .dist-info directory and the parsed WHEEL metadata.
    z has an invalid wheel, N)�wheel_dist_info_dir�wheel_metadata�
wheel_versionr�str�check_compatibility)r
r�info_dir�metadata�version�e�r�=/usr/lib/python3.9/site-packages/pip/_internal/utils/wheel.py�parse_wheels

,
r)�sourcerrcCs�dd�|��D�}dd�|D�}|s,td��t|�dkrLtd�d�|����|d	}t|�}t|�}|�|�s�td
|�d|����|S)z�Returns the name of the contained .dist-info directory.

    Raises AssertionError or UnsupportedWheel if not found, >1 found, or
    it doesn't match the provided name.
    cSsh|]}|�dd�d�qS)�/r	r)�split)�.0�prrr�	<setcomp>-�z&wheel_dist_info_dir.<locals>.<setcomp>cSsg|]}|�d�r|�qS)z
.dist-info)�endswith)r�srrr�
<listcomp>/rz'wheel_dist_info_dir.<locals>.<listcomp>z.dist-info directory not foundr	z)multiple .dist-info directories found: {}z, rz.dist-info directory z does not start with )Znamelistr�len�format�joinr�
startswith)rr�subdirsZ	info_dirsrZ
info_dir_nameZcanonical_namerrrr
&s �
�r
)r�pathrc
CsPz|�|�WStttfyJ}z td|�d|����WYd}~n
d}~00dS)Nzcould not read z file: )�readr�KeyError�RuntimeErrorr)rr(rrrr�read_wheel_metadata_fileEsr,)r�
dist_info_dirrc
Csf|�d�}t||�}z|��}Wn8tyX}z td|�d|����WYd}~n
d}~00t��|�S)ziReturn the WHEEL metadata of an extracted wheel, if possible.
    Otherwise, raise UnsupportedWheel.
    z/WHEELzerror decoding z: N)r,�decode�UnicodeDecodeErrorrrZparsestr)rr-r(Zwheel_contentsZ
wheel_textrrrrrNs

*r.)�
wheel_datarcCs\|d}|durtd��|��}zttt|�d���WStyVtd|����Yn0dS)zbGiven WHEEL metadata, return the parsed Wheel-Version.
    Otherwise, raise UnsupportedWheel.
    z
Wheel-VersionNzWHEEL is missing Wheel-Version�.zinvalid Wheel-Version: )r�strip�tuple�map�intr�
ValueError)r0Zversion_textrrrrrasr)rrrc	CsR|dtdkr.td�|d�tt|�����n |tkrNt�dd�tt|���dS)a�Raises errors or warns if called with an incompatible Wheel-Version.

    pip should refuse to install a Wheel-Version that's a major series
    ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
    installing a version only minor version ahead (e.g 1.2 > 1.1).

    version: a 2-tuple representing a Wheel-Version (Major, Minor)
    name: name of wheel or package to raise exception about

    :raises UnsupportedWheel: when an incompatible Wheel-Version is given
    rzB{}'s Wheel-Version ({}) is not compatible with this version of pipr1z*Installing from a newer Wheel-Version (%s)N)�VERSION_COMPATIBLErr$r%r4r�loggerZwarning)rrrrrrqs���r)�__doc__ZloggingZ
email.messagerZemail.parserr�typingr�zipfilerrZpip._vendor.packaging.utilsrZpip._internal.exceptionsrr7Z	getLogger�__name__r8rrr
�bytesr,rr5rrrrrr�<module>s
	

Youez - 2016 - github.com/yon3zu
LinuXploit