�
���c� � � � d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl Z n
# e
$ r dZ Y nw xY wddlmZm
Z
mZmZ ddlmZmZ ddlmZmZmZ ddlmZ dd lmZ ej d
� � Zd� Z G d� d
� � Z G d� d� � Zd� Z dS )z}distutils.dist
Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
� N)�message_from_file� )�DistutilsOptionError�DistutilsModuleError�DistutilsArgError�DistutilsClassError)�FancyGetopt�translate_longopt)�
check_environ� strtobool�
rfc822_escape��log)�DEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$c � � t | t � � rngt | t � � sRt | � � j }d} |j di t
� � ��}t j |� � t | � � } | S )Nz>Warning: '{fieldname}' should be a list, got type '{typename}'� ) �
isinstance�str�list�type�__name__�format�localsr �warning)�value� fieldname�typename�msgs �</usr/lib/python3/dist-packages/setuptools/_distutils/dist.py�_ensure_listr & |