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.6/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.6/site-packages/setuptools/__pycache__/wheel.cpython-36.pyc
3

��a` �@s�dZddlmZddlmZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddlm
Z
ddlmZddlmZddlmZe	jd	e	j�jZd
Zdd�ZGd
d�d�ZdS)zWheels support.�)�get_platform)�logN)�
parse_version)�sys_tags)�canonicalize_name)�write_requirementsz�^(?P<project_name>.+?)-(?P<version>\d.*?)
    ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
    )\.whl$z8__import__('pkg_resources').declare_namespace(__name__)
cCs�x�tj|�D]�\}}}tjj||�}x6|D].}tjj||�}tjj|||�}tj||�q*WxXttt|���D]D\}	}
tjj||
�}tjj|||
�}tjj	|�sntj||�||	=qnWqWx0tj|dd�D]\}}}|s�t
�tj|�q�WdS)zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)�topdownN)�os�walk�path�relpath�join�renames�reversed�list�	enumerate�exists�AssertionError�rmdir)Zsrc_dirZdst_dir�dirpathZdirnames�	filenames�subdir�f�src�dst�n�d�r�/usr/lib/python3.6/wheel.py�unpacks

rc@sheZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	e
dd��Ze
dd��Ze
dd��Z
dS)�WheelcCsTttjj|��}|dkr$td|��||_x$|j�j�D]\}}t|||�q8WdS)Nzinvalid wheel name: %r)	�
WHEEL_NAMEr	r�basename�
ValueError�filename�	groupdict�items�setattr)�selfr$�match�k�vrrr�__init__6szWheel.__init__cCs&tj|jjd�|jjd�|jjd��S)z>List tags (py_version, abi, platform) supported by this wheel.�.)�	itertools�product�
py_version�split�abi�platform)r(rrr�tags>s

z
Wheel.tagscs0tdd�t�D���t�fdd�|j�D�d�S)z5Is the wheel is compatible with the current platform?css|]}|j|j|jfVqdS)N)Zinterpreterr2r3)�.0�trrr�	<genexpr>Isz&Wheel.is_compatible.<locals>.<genexpr>c3s|]}|�krdVqdS)TNr)r5r6)�supported_tagsrrr7JsF)�setr�nextr4)r(r)r8r�
is_compatibleFszWheel.is_compatiblecCs,tj|j|j|jdkrdnt�d�j�dS)N�any)�project_name�versionr3z.egg)�
pkg_resources�Distributionr=r>r3r�egg_name)r(rrrrALszWheel.egg_namecCsJx<|j�D]0}tj|�}|jd�r
t|�jt|j��r
|Sq
Wtd��dS)Nz
.dist-infoz.unsupported wheel format. .dist-info not found)Znamelist�	posixpath�dirname�endswithr�
startswithr=r#)r(�zf�memberrCrrr�
get_dist_infoRs

zWheel.get_dist_infoc
Cs(tj|j��}|j||�WdQRXdS)z"Install wheel as an egg directory.N)�zipfileZZipFiler$�_install_as_egg)r(�destination_eggdirrFrrr�install_as_egg\szWheel.install_as_eggcCs\d|j|jf}|j|�}d|}tjj|d�}|j||||�|j||�|j||�dS)Nz%s-%sz%s.datazEGG-INFO)	r=r>rHr	rr
�_convert_metadata�_move_data_entries�_fix_namespace_packages)r(rKrFZ
dist_basename�	dist_info�	dist_data�egg_inforrrrJas
zWheel._install_as_eggcsL��fdd�}|d�}t|jd��}td�|ko>td�kn}|sTtd|��tj|��j|�tjj|���tj	j
|�tj|��d��d	d
��tt
t��j��������fdd��jD�}tj�|�tjtjj|d
�tjj|d��tj	t�|d�d�}	tjj}
tjtj�z t|	jd�dtjj|d��Wdtj|
�XdS)Nc	s<�jtj�|��� }|j�jd�}tjj�j|�SQRXdS)Nzutf-8)	�openrBr
�read�decode�email�parserZParserZparsestr)�name�fp�value)rPrFrr�get_metadatamsz-Wheel._convert_metadata.<locals>.get_metadataZWHEELz
Wheel-Versionz1.0z2.0dev0z$unsupported wheel format version: %s)ZmetadatacSsd|_t|�S)N)Zmarker�str)�reqrrr�raw_req�sz(Wheel._convert_metadata.<locals>.raw_reqcs2i|]*}t�fdd�t��j|f��D��|�qS)c3s|]}|�kr|VqdS)Nr)r5r])�install_requiresrrr7�sz5Wheel._convert_metadata.<locals>.<dictcomp>.<genexpr>)�sorted�map�requires)r5Zextra)�distr_r^rr�
<dictcomp>�sz+Wheel._convert_metadata.<locals>.<dictcomp>ZMETADATAzPKG-INFO)r_�extras_require)ZattrsrRzrequires.txt)r�getr#r	�mkdirZ
extractallrr
r?r@Z
from_locationZPathMetadatarr`rarb�extras�rename�
setuptools�dictrZ_global_logZ	thresholdZ
set_thresholdZWARNrZget_command_obj)rFrKrPrRr[Zwheel_metadataZ
wheel_versionZwheel_v1reZ
setup_distZ
log_thresholdr)rcrPr_r^rFrrMksB 



zWheel._convert_metadatacs�tjj|���tjj�d�}tjj|�r�tjj|dd�}tj|�xRtj|�D]D}|jd�rrtjtjj||��qNtjtjj||�tjj||��qNWtj	|�x.t
tjj�fdd�dD��D]}t||�q�Wtjj��r�tj	��d
S)z,Move data entries to their correct location.�scriptszEGG-INFOz.pycc3s|]}tjj�|�VqdS)N)r	rr
)r5r)rQrrr7�sz+Wheel._move_data_entries.<locals>.<genexpr>�data�headers�purelib�platlibN)rmrnrorp)r	rr
rrg�listdirrD�unlinkrir�filterr)rKrQZdist_data_scriptsZegg_info_scripts�entryrr)rQrrN�s&





zWheel._move_data_entriescCs�tjj|d�}tjj|�r�t|��}|j�j�}WdQRXxt|D]l}tjj|f|jd���}tjj|d�}tjj|�s�tj|�tjj|�s@t|d��}|jt	�WdQRXq@WdS)Nznamespace_packages.txtr-z__init__.py�w)
r	rr
rrSrTr1rg�write�NAMESPACE_PACKAGE_INIT)rRrKZnamespace_packagesrY�modZmod_dirZmod_initrrrrO�s


zWheel._fix_namespace_packagesN)�__name__�
__module__�__qualname__r,r4r;rArHrLrJ�staticmethodrMrNrOrrrrr 4s

@r )�__doc__Zdistutils.utilrZ	distutilsrrVr.r	rB�rerIr?rjrZ setuptools.extern.packaging.tagsrZ!setuptools.extern.packaging.utilsrZsetuptools.command.egg_infor�compile�VERBOSEr)r!rwrr rrrr�<module>s(


Youez - 2016 - github.com/yon3zu
LinuXploit