3 F\9@sjddlZddlZddlZddlZddlmZddlmZejddkrRe Z e fZ n e Z e efZ ddZdS)N)errors)utilc Cs|sdSt|tr tjj|}n tjjd}tjj|sFtjd|ytj ||j }WnBt k rt j d}tjdtjd||jj|fYnXd }|rJx|jD]\}}t|jd |rt|jd ||qt|j|rt|j||qt||rt|||q||kr0t|j||qd t|} tj| qWyt|j|jWn(tk r|jjd j|YnXt|jjt t!frt"|jj|j_dS)a=Implements the actual pbr setup() keyword. When used, this should be the only keyword in your setup() aside from `setup_requires`. If given as a string, the value of pbr is assumed to be the relative path to the setup.cfg file to use. Otherwise, if it evaluates to true, it simply assumes that pbr should be used, and the default 'setup.cfg' is used. This works by reading the setup.cfg file, parsing out the supported metadata and command options, and using them to rebuild the `DistributionMetadata` object and set the newly added command options. The reason for doing things this way is that a custom `Distribution` class will not play nicely with setup_requires; however, this implementation may not work well with distributions that do use a `Distribution` subclass. Nz setup.cfgz%The setup.cfg file %s does not exist.z Error parsingzError parsing %s: %s: %slong_description_content_type project_urlsprovides_extrasset_zUnknown distribution option: %s)rrr)# isinstance string_typeospathabspathexistsrDistutilsFileErrorrZ cfg_to_args script_args Exceptionsysexc_infologging exceptionDistutilsSetupError __class____name__itemshasattrmetadatagetattrsetattrreprwarningswarnsuperfinalize_options TypeError __bases__version integer_typesfloatstr) distattrvaluerattrseZ_DISTUTILS_UNSUPPORTED_METADATAkeyvalmsgr3]/private/var/folders/pf/wv4htv3x0qs2c2mp0dnn0kchsvlck3/T/pip-install-emcbgzcf/pbr/pbr/core.pypbr@sD         r5)rr rr! distutilsrr5r version_infor*r intr( basestringlongr3r3r3r4.s