관리-도구
편집 파일: dist.cpython-36.pyc
3 K�Re'� � @ s� d gZ ddlZddlZddlZddlZddlZddlZddlZddl Zddl Z ddlmZ ddl mZmZmZ ddlmZ ddlmZ ddlmZmZmZ ddlmZ dd lmZ dd lmZ ddlm Z ddl!m"Z" ddl#Z#d dl$m%Z% e&d� e&d� dd� Z'dd� Z(dd� Z)e*e+fZ,dd� Z-dd� Z.dd� Z/dd� Z0dd � Z1d!d"� Z2d#d$� Z3d%d&� Z4d'd(� Z5d)d*� Z6d+d,� Z7d-d.� Z8e ej9j:�Z;G d/d � d e%e;�Z:G d0d1� d1�Z<dS )2�Distribution� N)�defaultdict)�DistutilsOptionError�DistutilsPlatformError�DistutilsSetupError)� rfc822_escape)�six)�map�filter�filterfalse)� packaging)�Require)�windows_support)� get_unpatched)�parse_configuration� )�Distribution_parse_config_filesz)pkg_resources.extern.packaging.specifiersz&pkg_resources.extern.packaging.versionc C s t jdt� t| �S )NzDo not call this function)�warnings�warn�DeprecationWarningr )�cls� r ��/builddir/build/BUILDROOT/alt-python36-setuptools-38.5.2-7.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/setuptools/dist.py�_get_unpatched! s r c C s� d}| j s"| js"| js"| js"| jr&d}t| d�s6| jr:d}|jd| � |jd| j� � |jd| j � � |jd| j � � |jd | j� � |jd | j� � |jd| j � � |jd| j� � | jr�|jd | j � x | jj� D ]}|jd| � q�W | j�pd}|jd| � t| j� �}|jd| � dj| j� �}|�rT|jd| � | j|d| j� � | j|d| j� � | j|d| j� � | j|d| j� � | j|d| j� � t| d��r�|jd| j � dS )z5Write the PKG-INFO format data to a file object. z1.0z1.1�python_requiresz1.2zMetadata-Version: %s z Name: %s zVersion: %s zSummary: %s zHome-page: %s zAuthor: %s zAuthor-email: %s zLicense: %s zDownload-URL: %s zProject-URL: %s, %s �UNKNOWNzDescription-Content-Type: %s zDescription: %s �,z Keywords: %s �Platform� Classifier�Requires�Provides� ObsoleteszRequires-Python: %s N)�provides�requires� obsoletes�classifiers�download_url�hasattr�project_urls�write�get_name�get_version�get_description�get_url�get_contact�get_contact_email�get_license�items�long_description_content_typer �get_long_description�join�get_keywords�_write_list� get_platforms�get_classifiers�get_requires�get_provides� get_obsoletesr )�self�file�version�project_urlZlong_desc_content_type� long_desc�keywordsr r r �write_pkg_file'