ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/dist.cpython-36.pyc |
3 �t^'� � @ 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 �/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 ZUNKNOWNzDescription-Content-Type: %s zDescription: %s �,z Keywords: %s ZPlatformZ ClassifierZRequiresZProvidesZ ObsoleteszRequires-Python: %s N)Zprovides�requiresZ obsoletesZclassifiersZdownload_url�hasattr�project_urls�writeZget_nameZget_versionZget_descriptionZget_urlZget_contactZget_contact_emailZget_license�items�long_description_content_typer Zget_long_description�joinZget_keywordsZ_write_listZ get_platformsZget_classifiersZget_requiresZget_providesZ get_obsoletesr )�self�file�versionZproject_urlZlong_desc_content_typeZ long_desc�keywordsr r r �write_pkg_file'