Re? @ s d d l m Z m Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l
m Z m Z d d l
m Z d d l m Z d d d d
Z d d Z d d
d Z Gd d d e Z Gd d d e Z Gd d d e Z d S) )absolute_importunicode_literalsN)defaultdict)partial)DistutilsOptionErrorDistutilsFileError)
import_module)string_typesFc C s d d l m } m } t j j | } t j j | sJ t d | t j } t j t j j
| zi | } | r | j n g } | | k r | j | | j
| d | t | | j d | } Wd t j | Xt | S)a, Read given configuration file and returns options from it as a dict.
:param str|unicode filepath: Path to configuration file
to get options from.
:param bool find_others: Whether to search for other configuration files
which could be on in various places.
:param bool ignore_option_errors: Whether to silently ignore
options, values of which could not be resolved (e.g. due to exceptions
in directives such as file:, attr:, etc.).
If False exceptions are propagated as expected.
:rtype: dict
r )Distribution
_Distributionz%Configuration file %s does not exist. filenamesignore_option_errorsN)Zsetuptools.distr
r ospathabspathisfiler getcwdchdirdirnamefind_config_filesappendparse_config_filesparse_configurationcommand_optionsconfiguration_to_dict) filepathZfind_othersr
r
r Zcurrent_directorydistr handlers r /builddir/build/BUILDROOT/alt-python35-setuptools-36.3.0-4.el8.x86_64/opt/alt/python35/lib/python3.5/site-packages/setuptools/config.pyread_configuration
s$
r c C s t t } x | D]w } | j } | j } x\ | j D]Q } t | d | d } | d k ro t | | } n | } | | | |