관리-도구
편집 파일: egg_info.cpython-36.pyc
3 K�Re�` � @ s� d Z ddlmZ ddlmZ ddlmZ ddlm Z ddlZddlZddl Z ddlZddlZddl Z ddlZddlZddlZddlmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZ ddlmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z& ddl'j(Z(ddl)m*Z* ddl+m,Z, dd� Z-G dd� de�Z.G dd� de�ZG dd� de�Z/dd� Z0dd� Z1dd� Z2dd � Z3d!d"� Z4d#d$� Z5d%d&� Z6d'd(� Z7d0d*d+�Z8d,d-� Z9d.d/� Z:dS )1zUsetuptools.command.egg_info Create a distribution's .egg-info directory and contents� )�FileList)�DistutilsInternalError)�convert_path)�logN)�six)�map)�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)� packagingc C s� d}| j tjj�}tjtj�}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|tj| �7 }nR||d |� }d} |d dk�r�d } |dd� }| tj|�7 } |d| f 7 }|}n|tj| �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# Z valid_char�c�chunk� last_chunk�iZ chunk_len�charZinner_i�inner� char_class� r4 ��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/command/egg_info.py�translate_pattern$ sV r6 c @ s� e Zd ZdZd)d*d+d,gZdgZddiZdd� Zedd� �Z e j dd� �Z dd� Zdd� Zd-dd�Z dd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(S ).�egg_infoz+create a distribution's .egg-info directory� egg-base=�e�Ldirectory containing .egg-info directories (default: top of the source tree)�tag-date�d�0Add date stamp (e.g. 20050528) to version number� tag-build=�b�-Specify explicit tag to add to version number�no-date�D�"Don't include date stamp [default]c C s4 d | _ d | _d | _d | _d | _d| _d| _d | _d S )Nr F)�egg_name�egg_version�egg_baser7 � tag_build�tag_date�broken_egg_info�vtags)�selfr4 r4 r5 �initialize_options� s zegg_info.initialize_optionsc C s d S )Nr4 )rK r4 r4 r5 �tag_svn_revision� s zegg_info.tag_svn_revisionc C s d S )Nr4 )rK �valuer4 r4 r5 rM � s c C s0 t j� }| j� |d<