0x1949 Team - FAZEMRX - MANAGER
Edit File: package_index.cpython-310.pyc
o �C�f� � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlZddlZddl Z ddlZddlZddlZddlZddlmZ ddlZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- dd l.m/Z/ e�0d �Z1e�0dej2�Z3e�0d�Z4e�0d ej2�j5Z6d�7� Z8g d�Z9dZ:dZ;e;j<dj<ej=� ed�Z>dd� Z?dd� Z@dd� ZAdBdd�ZBdBdd�ZCdBdd�ZDdedfd d!�ZEd"d#� ZFe�0d$ej2�ZGeFd%d&� �ZHG d'd(� d(�ZIG d)d*� d*eI�ZJG d+d,� d,e�ZKe�0d-�jLZMd.d/� ZNd0d1� ZOdCd2d3�ZPd4d5� ZQG d6d7� d7�ZRG d8d9� d9ejS�ZTejUjVfd:d;�ZWd<d=� ZXePe:�eW�ZWd>d?� ZYd@dA� ZZdS )Dz#PyPI and direct package downloading� N��wraps)� CHECKOUT_DIST�Distribution�BINARY_DIST�normalize_path�SOURCE_DIST�Environment�find_distributions� safe_name�safe_version�to_filename�Requirement�DEVELOP_DIST�EGG_DIST� parse_version)�log)�DistutilsError)� translate)�Wheel��unique_everseenz^egg=([-A-Za-z0-9_.+!]+)$zhref\s*=\s*['"]?([^'"> ]+)z�<a href="([^"#]+)">([^<]+)</a>\n\s+\(<a (?:title="MD5 hash"\n\s+)href="[^?]+\?:action=show_md5&digest=([0-9a-f]{32})">md5</a>\)z([-+.a-z0-9]{2,}):z.tar.gz .tar.bz2 .tar .zip .tgz)�PackageIndex�distros_for_url�parse_bdist_wininst�interpret_distro_name� z<setuptools/{setuptools.__version__} Python-urllib/{py_major}z{}.{})�py_major� setuptoolsc C s6 zt �| �W S ty } ztd| f �|�d }~ww )Nz1Not a URL, existing file, or requirement spec: %r)r �parse� ValueErrorr )�spec�e� r# �:/usr/lib/python3/dist-packages/setuptools/package_index.py�parse_requirement_arg7 s ����r% c C s� | � � }d\}}}|�d�rS|�d�r| dd� }d}n7|�dd�r1| d d � }| dd� }d}n"|�d�r?| dd� }d }n|�dd�rS| d d � }| dd� }d }|||fS )z=Return (base,pyversion) or (None,None) for possible .exe name)NNN�.exez .win32.exeNi�����win32z .win32-pyi�i�������z.win-amd64.exei�z win-amd64z .win-amd64-pyi��)�lower�endswith� startswith)�namer) �base�py_ver�platr# r# r$ r @ s$ r c C sx t j�| �}|\}}}}}}t j�|�d�d �}|dkr,|dkr,t j�|�d�d �}d|v r8|�dd�\}}||fS )N�/���zsourceforge.net�download����#� )�urllibr �urlparse�unquote�split) �url�parts�scheme�server�path� parameters�query�fragmentr- r# r# r$ �egg_info_for_urlX s rB c c sf � t | �\}}t| ||�D ]}|V q |r-t�|�}|r/t| |�d�|td�D ] }|V q'dS dS dS )zEYield egg or source distribution objects that might be found at a URLr5 )� precedenceN)rB �distros_for_location�EGG_FRAGMENT�matchr �groupr )r: �metadatar- rA �distrF r# r# r$ r c s � ��r c C s� |� d�r|dd� }|� d�rd|v rt�| ||�gS |� d�r<d|v r<t|�}|�� s/g S t| |j|jtd d�gS |� d �rUt|�\}}}|durUt | |||t |�S tD ]}|� |�ro|dt|� � }t | ||� S qWg S ) z:Yield egg or source distribution objects based on basename�.egg.zipNr( z.egg�-z.whlr5 )�location�project_name�versionrC r&