관리-도구
편집 파일: egg_info.cpython-37.pyc
B ��Re�b � @ s� d Z ddlmZ ddlmZ ddlmZ ddlm Z ddlZddlZddl Z ddlZddlZddl Z ddlZddlZddlZddlZddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z% dd l&m'Z' ddl(m)Z) ddlm*Z* dd� Z+G dd� d�Z,G dd� de,e�Z-G dd� de�ZG dd� de�Z.dd� Z/dd� Z0dd� Z1d d!� Z2d"d#� Z3d$d%� Z4d&d'� Z5d(d)� Z6d3d+d,�Z7d-d.� Z8d/d0� Z9G d1d2� d2e*�Z:dS )4zUsetuptools.command.egg_info Create a distribution's .egg-info directory and contents� )�FileList)�DistutilsInternalError)�convert_path)�logN)�Command)�sdist)�walk_revctrl)�edit_config)� bdist_egg)�parse_requirements� safe_name� parse_version�safe_version�yield_lines� EntryPoint�iter_entry_points�to_filename)�glob)� packaging)�SetuptoolsDeprecationWarningc C s� d}| � tjj�}t�tj�}d|f }�x�t|�D �]�\}}|t|�d k}|dkrv|rd|d7 }q4|d||f 7 }q4d}t|�} �x:|| k �r�|| } | dkr�||d 7 }�n| d kr�||7 }n�| d k�r�|d }|| k r�|| dkr�|d }|| k �r|| dk�r|d }x&|| k �r6|| dk�r6|d }�qW || k�rR|t�| �7 }nR||d |� }d} |d dk�r�d } |dd� }| t�|�7 } |d| f 7 }|}n|t�| �7 }|d7 }q�W |s4||7 }q4W |d7 }tj|tj tj B d�S )z� Translate a file path glob like '*.txt' in to a regular expression. This differs from fnmatch.translate which allows wildcards to match directory separators. It also knows about '**/' which matches any number of directories. � z[^%s]� z**z.*z (?:%s+%s)*r �*�?�[�!�]�^Nz[%s]z\Z)�flags)�split�os�path�sep�re�escape� enumerate�len�compile� MULTILINE�DOTALL)r �pat�chunksr"