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/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

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

��e�!�@s�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlZddlm
ZddlmZddlmZddlmZmZddlmZe�d	ej�jZd
Zejdd�dd
��Zdd�Zej dd��Z!Gdd�d�Z"dS)zWheels support.�N)�get_platform)�Version��sys_tags)�canonicalize_name)�write_requirements�
_egg_basename)�_unpack_zipfile_objz�^(?P<project_name>.+?)-(?P<version>\d.*?)
    ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
    )\.whl$z8__import__('pkg_resources').declare_namespace(__name__)
)�maxsizecCsdd�t�D�S)NcSsh|]}|j|j|jf�qS�)Zinterpreter�abi�platform��.0�trr�4/usr/lib/python3.9/site-packages/setuptools/wheel.py�	<setcomp>%�z&_get_supported_tags.<locals>.<setcomp>rrrrr�_get_supported_tags srcCs�t�|�D]�\}}}tj�||�}|D].}tj�||�}tj�|||�}t�||�q&ttt|���D]D\}	}
tj�||
�}tj�|||
�}tj�	|�sft�||�||	=qfq
tj|dd�D]\}}}|r�J�t�
|�q�dS)zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)�topdownN)�os�walk�path�relpath�join�renames�reversed�list�	enumerate�exists�rmdir)Zsrc_dirZdst_dir�dirpath�dirnames�	filenames�subdir�f�src�dst�n�drrr�unpack(s
r*c	cs>ddlm}|�|j�}zdVW|�|�n|�|�0dS)z*
    Temporarily disable info traces.
    r)�logN)�	distutilsr+Z
set_thresholdZWARN)r+Zsavedrrr�disable_info_traces>s
r-c@sheZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	e
dd��Ze
dd��Ze
dd��Z
dS)�WheelcCsPttj�|��}|dur$td|��||_|����D]\}}t|||�q6dS)Nzinvalid wheel name: %r)	�
WHEEL_NAMErr�basename�
ValueError�filename�	groupdict�items�setattr)�selfr2�match�k�vrrr�__init__MszWheel.__init__cCs&t�|j�d�|j�d�|j�d��S)z>List tags (py_version, abi, platform) supported by this wheel.�.)�	itertools�productZ
py_version�splitrr
�r6rrr�tagsUs



�z
Wheel.tagscCstdd�|��D�d�S)z2Is the wheel compatible with the current platform?css|]}|t�vrdVqdS)TN)rrrrr�	<genexpr>_rz&Wheel.is_compatible.<locals>.<genexpr>F)�nextr@r?rrr�
is_compatible]szWheel.is_compatiblecCs&t|j|j|jdkrdnt�d�dS)N�any)r
z.egg)r�project_name�versionr
rr?rrr�egg_nameas���zWheel.egg_namecCsJ|��D]4}t�|�}|�d�rt|��t|j��r|Sqtd��dS)Nz
.dist-infoz.unsupported wheel format. .dist-info not found)Znamelist�	posixpath�dirname�endswithr�
startswithrEr1)r6�zf�memberrIrrr�
get_dist_infoks
�
zWheel.get_dist_infocCs<t�|j��}|�||�Wd�n1s.0YdS)z"Install wheel as an egg directory.N)�zipfile�ZipFiler2�_install_as_egg)r6�destination_eggdirrLrrr�install_as_egguszWheel.install_as_eggcCs\d|j|jf}|�|�}d|}tj�|d�}|�||||�|�||�|�||�dS)Nz%s-%sz%s.data�EGG-INFO)	rErFrNrrr�_convert_metadata�_move_data_entries�_fix_namespace_packages)r6rRrLZ
dist_basename�	dist_info�	dist_data�egg_inforrrrQzs
zWheel._install_as_eggcsHddl}��fdd�}|d�}t|�d��}td�|koFtd�kn}|s\td|��t�|�tj�|���|jj	|�|�
|��d	��d
d��tt���
�������fdd
��jD�}	t��|�t�tj�|d�tj�|d��tjt�|	d�d�}
t��,t|
�d�dtj�|d��Wd�n1�s:0YdS)NrcsT��t��|���.}|���d�}tj���|�Wd�S1sF0YdS)Nzutf-8)	�openrHr�read�decode�email�parserZParserZparsestr)�name�fp�value)rXrLrr�get_metadata�sz-Wheel._convert_metadata.<locals>.get_metadataZWHEELz
Wheel-Versionz1.0z2.0dev0z$unsupported wheel format version: %s)�metadatacSsd|_t|�S�N)Zmarker�str)�reqrrr�raw_req�sz(Wheel._convert_metadata.<locals>.raw_reqc	s.i|]&}|�fdd�t���|f��D��qS)csg|]}|�vr|�qSrr)rrg)�install_requiresrr�
<listcomp>�s�z6Wheel._convert_metadata.<locals>.<dictcomp>.<listcomp>)�map�requires)rZextra)�distrirhrr�
<dictcomp>�s��z+Wheel._convert_metadata.<locals>.<dictcomp>ZMETADATAzPKG-INFO)ri�extras_require)�attrsrZzrequires.txt)�
pkg_resources�
parse_version�getr1r	rrrZDistributionZ
from_locationZPathMetadatarrkrl�extras�rename�
setuptools�dictr-rZget_command_obj)rLrRrXrZrqrcZwheel_metadataZ
wheel_versionZwheel_v1roZ
setup_distr)rmrXrirhrLrrU�sH 

�	�����zWheel._convert_metadatacs�tj�|���tj��d�}tj�|�r�tj�|dd�}t�|�t�|�D]D}|�d�rpt�tj�||��qLt�tj�||�tj�||��qLt�	|�t
tjj�fdd�dD��D]}t||�q�tj���r�t�	��dS)z,Move data entries to their correct location.ZscriptsrTz.pycc3s|]}tj��|�VqdSre)rrr)rr)�rYrrrA�s�z+Wheel._move_data_entries.<locals>.<genexpr>)�dataZheadersZpurelibZplatlibN)rrrr�mkdir�listdirrJ�unlinkrur �filterr*)rRrYZdist_data_scriptsZegg_info_scripts�entryr$rrxrrV�s,

�

��zWheel._move_data_entriesc	Cs�tj�|d�}tj�|�r�t|��}|����}Wd�n1sD0Y|D]�}tjj|g|�d��R�}tj�|d�}tj�|�s�t�|�tj�|�sRt|d��}|�t	�Wd�qR1s�0YqRdS)Nznamespace_packages.txtr;z__init__.py�w)
rrrrr[r\r>rz�write�NAMESPACE_PACKAGE_INIT)rZrRZnamespace_packagesra�modZmod_dirZmod_initrrrrW�s
*
zWheel._fix_namespace_packagesN)�__name__�
__module__�__qualname__r:r@rCrGrNrSrQ�staticmethodrUrVrWrrrrr.Ls



:
r.)#�__doc__r^r<�	functoolsrrH�rerO�
contextlibZdistutils.utilrrvZ#setuptools.extern.packaging.versionrrrZ setuptools.extern.packaging.tagsrZ!setuptools.extern.packaging.utilsrZsetuptools.command.egg_inforrZsetuptools.archive_utilr	�compile�VERBOSEr7r/r��	lru_cacherr*�contextmanagerr-r.rrrr�<module>s4�




Youez - 2016 - github.com/yon3zu
LinuXploit