U
    hK                     @   sV   d dl Z d dlmZ d dlmZ d dlmZ G dd dZe jdk rRG dd dZdS )	    N)DistutilsOptionError)	strtobool)DEBUGc                   @   s   e Zd ZdZdddZdS )Distribution_parse_config_filesz
    Mix-in providing forward-compatibility for functionality to be
    included by default on Python 3.7.

    Do not edit the code in this class except to update functionality
    as implemented in distutils.
    Nc                 C   s  ddl m} tjtjkr8ddddddd	d
dddddg}ng }t|}|d krT|  }trb| d |d d}|D ]}tr| d|  |	| |
 D ]V}||}| |}|D ]8}	|	dkr|	|kr|||	}
|	dd}	||
f||	< qq|  qpd| jkr| jd  D ]\}	\}}
| j|	}zF|rHt| |t|
  n(|	dkrdt| |	t|
 nt| |	|
 W n, tk
r } zt|W 5 d }~X Y nX qd S )Nr   )ConfigParserzinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataprefixzexec-prefixhomeuserrootz"Distribution.parse_config_files():)interpolationz  reading %s__name__-_global)verbosedry_run)configparserr   sysr   base_prefix	frozensetfind_config_filesr   announcereadsectionsoptionsget_option_dictgetreplace__init__command_optionsitemsnegative_optsetattrr   
ValueErrorr   )self	filenamesr   ignore_optionsparserfilenamesectionr   opt_dictoptvalsrcaliasmsg r0   ;/tmp/pip-build-2aersu7t/setuptools/setuptools/py36compat.pyparse_config_files   s^             






z2Distribution_parse_config_files.parse_config_files)N)r   
__module____qualname____doc__r2   r0   r0   r0   r1   r      s   r   )   c                   @   s   e Zd ZdS )r   N)r   r3   r4   r0   r0   r0   r1   r   J   s   )	r   Zdistutils.errorsr   distutils.utilr   distutils.debugr   r   version_infor0   r0   r0   r1   <module>   s   A
