관리-도구
편집 파일: package_index.cpython-36.opt-1.pyc
3 �K]Ȝ � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddlmZ ddl mZmZmZmZ ddlZddlmZmZmZmZmZmZmZmZmZmZmZmZm Z ddlm!Z! ddl"m#Z# dd l$m%Z% dd l&m'Z' ddl(m)Z) ddl*m+Z+ dd l,m-Z- ej.d�Z/ej.dej0�Z1ej.d�Z2ej.dej0�j3Z4dj5� Z6ddddgZ7dZ8dZ9e9j:ej;dd� ed�Z<dd� Z=dd� Z>dd� Z?dEd d�Z@dFd!d"�ZAdGd#d$�ZBdedfd%d�ZCdHd&d'�ZDd(d)� ZEej.d*ej0�ZFeEd+d,� �ZGG d-d.� d.eH�ZIG d/d0� d0eI�ZJG d1d� de�ZKej.d2�jLZMd3d4� ZNd5d6� ZOdId7d8�ZPd9d:� ZQG d;d<� d<eH�ZRG d=d>� d>ejS�ZTejUjVfd?d@�ZWePe8�eW�ZWdAdB� ZXdCdD� ZYdS )Jz#PyPI and direct package downloading� N)�wraps)�six)�urllib�http_client�configparser�map) � CHECKOUT_DIST�Distribution�BINARY_DIST�normalize_path�SOURCE_DIST�Environment�find_distributions� safe_name�safe_version�to_filename�Requirement�DEVELOP_DIST�EGG_DIST)�ssl_support)�log)�DistutilsError)� translate)�get_all_headers)�unescape)�Wheelz^egg=([-A-Za-z0-9_.+!]+)$zhref\s*=\s*['"]?([^'"> ]+)z�<a href="([^"#]+)">([^<]+)</a> \s+\(<a (?:title="MD5 hash" \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}� )Zpy_major� setuptoolsc C s2 y t j| �S tk r, td| f ��Y nX d S )Nz1Not a URL, existing file, or requirement spec: %r)r �parse� ValueErrorr )�spec� r&