Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
B

ÓVã¾È|ã@s²dgZddlZddlZddlZddlZddlZddlZddlZddl	Zddl
ZddlZddlZddl
mZddlmZddlmZddlmZddlZddlZddlmZmZmZddlmZdd	lmZdd
lm Z m!Z!ddl
m"Z"ddl#m$Z$dd
l%m&Z&ddl%m'Z'ddl(m)Z)ddl*m+Z+ddl,Z,ddl-Z,ddl,m.Z.ddl/m0Z0ddl1m2Z2ddl3Z3erpddl4m5Z5e6dƒe6dƒdd„Z7dd„Z8e9e9dœdd„Z:de9ee9d œd!d"„Z;de9ee9d œd#d$„Z<de9eee9d œd%d&„Z=dee9d'œd(d)„Z>d*d+„Z?d,d-„Z@d.d/„ZAeBeCfZDd0d1„ZEd2d3„ZFd4d5„ZGd6d7„ZHd8d9„ZId:d;„ZJd<d=„ZKd>d?„ZLd@dA„ZMdBdC„ZNdDdE„ZOdFdG„ZPdHdI„ZQe0ejRjSƒZTGdJd„deTƒZSGdKdL„dLe+ƒZUdS)MÚDistributionéN)Ú	strtobool)ÚDEBUG)Útranslate_longopt)Úiglob)ÚListÚOptionalÚ
TYPE_CHECKING)Údefaultdict)Úmessage_from_file)ÚDistutilsOptionErrorÚDistutilsSetupError)Ú
rfc822_escape)Ú
StrictVersion)Ú	packaging)Úordered_set)Úunique_everseené)ÚSetuptoolsDeprecationWarning)Úwindows_support)Ú
get_unpatched)Úparse_configuration)ÚMessagez&setuptools.extern.packaging.specifiersz#setuptools.extern.packaging.versioncCst dt¡t|ƒS)NzDo not call this function)ÚwarningsÚwarnÚDistDeprecationWarningr)Úcls©rú/build/wlanpi-profiler-FHoT2X/wlanpi-profiler-1.0.9/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/setuptools/dist.pyÚ_get_unpatched2srcCs&t|ddƒ}|dkr"tdƒ}||_|S)NÚmetadata_versionz2.1)Úgetattrrr )ÚselfÚmvrrrÚget_metadata_version7s
r$)ÚcontentÚreturnc
CsJ| ¡}t|ƒdkr |d ¡Sd |d ¡t d |dd…¡¡f¡S)zFReverse RFC-822 escaping by removing leading whitespaces from content.rrÚ
N)Ú
splitlinesÚlenÚlstripÚjoinÚtextwrapÚdedent)r%ÚlinesrrrÚrfc822_unescape?sr/r)ÚmsgÚfieldr&cCs||}|dkrdS|S)zRead Message header field.ÚUNKNOWNNr)r0r1ÚvaluerrrÚ_read_field_from_msgGsr4cCst||ƒ}|dkr|St|ƒS)z4Read Message header field and apply rfc822_unescape.N)r4r/)r0r1r3rrrÚ_read_field_unescaped_from_msgOs
r5cCs| |d¡}|gkrdS|S)z9Read Message header field and return all results as list.N)Úget_all)r0r1ÚvaluesrrrÚ_read_list_from_msgWsr8)r0r&cCs| ¡ ¡}|dkrdS|S)Nr2)Úget_payloadÚstrip)r0r3rrrÚ_read_payload_from_msg_sr;cCsVt|ƒ}t|dƒ|_t|dƒ|_t|dƒ|_t|dƒ|_t|dƒ|_d|_t|dƒ|_	d|_
t|dƒ|_t|d	ƒ|_
d
|krŒt|d
ƒ|_nd|_t|dƒ|_|jdkrÀ|jtdƒkrÀt|ƒ|_t|dƒ|_d
|kræt|d
ƒ d¡|_t|dƒ|_t|dƒ|_|jtdƒkr4t|dƒ|_t|dƒ|_t|dƒ|_nd|_d|_d|_t|dƒ|_dS)z-Reads the metadata values from a file object.zmetadata-versionÚnameÚversionÚsummaryÚauthorNzauthor-emailz	home-pageÚlicensezdownload-urlÚdescriptionz2.1Úkeywordsú,ÚplatformÚ
classifierz1.1ÚrequiresÚprovidesÚ	obsoleteszlicense-file)rrr r4r<r=rAr?Ú
maintainerÚauthor_emailÚmaintainer_emailÚurlr5r@Údownload_urlÚlong_descriptionr;ÚsplitrBr8Ú	platformsÚclassifiersrFrGrHÚ
license_files)r"Úfiler0rrrÚ
read_pkg_filefs<
rTcCs(d|kr$t d¡| ¡ d¡d}|S)Nr'z1newlines not allowed and will break in the futurer)rrr:rO)ÚvalrrrÚsingle_line“s
rVc
sÚ| ¡}‡fdd„}|dt|ƒƒ|d| ¡ƒ|d| ¡ƒ|dt| ¡ƒƒ|d| ¡ƒd}x.|D]&\}}t||d	ƒ}|d	k	rh|||ƒqhWt| 	¡ƒ}|d
|ƒ|j
rº|d|j
ƒx |j ¡D]}	|dd
|	ƒqÆWd 
| ¡¡}
|
rø|d|
ƒx| ¡D]}|d|ƒqW| ˆd| ¡¡| ˆd| ¡¡| ˆd| ¡¡| ˆd| ¡¡t|dƒrv|d|jƒ|jrŠ|d|jƒ|jr®x|jD]}|d|ƒqšW| ˆd|jpÀg¡ˆ d| ¡¡d	S)z0Write the PKG-INFO format data to a file object.csˆ d||f¡dS)Nz%s: %s
)Úwrite)Úkeyr3)rSrrÚwrite_field¡sz#write_pkg_file.<locals>.write_fieldzMetadata-VersionÚNameÚVersionZSummaryz	Home-page))ZAuthorr?)zAuthor-emailrJ)Z
MaintainerrI)zMaintainer-emailrKNZLicensezDownload-URLzProject-URLz%s, %srCZKeywordsÚPlatformÚ
ClassifierÚRequiresÚProvidesÚ	ObsoletesÚpython_requireszRequires-PythonzDescription-Content-TypezProvides-ExtrazLicense-Filez
%s

)r$ÚstrÚget_nameÚget_versionrVÚget_descriptionÚget_urlr!rÚget_licenserMÚproject_urlsÚitemsr+Úget_keywordsÚ
get_platformsÚ_write_listÚget_classifiersÚget_requiresÚget_providesÚ
get_obsoletesÚhasattrraÚlong_description_content_typeÚprovides_extrasrRrWÚget_long_description)
r"rSr=rYZoptional_fieldsr1ÚattrZattr_valr@Úproject_urlrBrDÚextrar)rSrÚwrite_pkg_filesH

rxcCs`ytj d|¡}|jrt‚Wn<ttttfk
rZ}ztd||fƒ|‚Wdd}~XYnXdS)Nzx=z4%r must be importable 'module:attrs' string (got %r))	Ú
pkg_resourcesÚ
EntryPointÚparseÚextrasÚAssertionErrorÚ	TypeErrorÚ
ValueErrorÚAttributeErrorr
)Údistrur3ÚepÚerrrÚcheck_importableÞsr„cCsjy(t|ttfƒst‚d |¡|ks&t‚Wn<ttttfk
rd}ztd||fƒ|‚Wdd}~XYnXdS)z"Verify that value is a string listÚz%%r must be a list of strings (got %r)N)	Ú
isinstanceÚlistÚtupler}r+r~rr€r
)rrur3rƒrrrÚassert_string_listèsr‰cCsh|}t|||ƒxR|D]J}| |¡s4tdd|ƒ‚| d¡\}}}|r||krtj d||¡qWdS)z(Verify that namespace packages are validz1Distribution contains no modules or packages for znamespace package %rÚ.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyN)r‰Úhas_contents_forr
Ú
rpartitionÚ	distutilsÚlogr)rrur3Zns_packagesÚnspÚparentÚsepÚchildrrrÚ	check_nspös

r“c
CsPytt t| ¡¡ƒWn2tttfk
rJ}ztdƒ|‚Wdd}~XYnXdS)z+Verify that extras_require mapping is validz‹'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)	r‡Ú	itertoolsÚstarmapÚ_check_extrarir~rr€r
)rrur3rƒrrrÚcheck_extras
sr—cCs<| d¡\}}}|r*t |¡r*td|ƒ‚tt |¡ƒdS)Nú:zInvalid environment marker: )Ú	partitionryÚinvalid_markerr
r‡Úparse_requirements)rwÚreqsr<r‘Úmarkerrrrr–sr–cCs&t|ƒ|kr"d}t|j||dƒ‚dS)z)Verify that value is True, False, 0, or 1z0{attr!r} must be a boolean value (got {value!r}))rur3N)Úboolr
Úformat)rrur3ÚtmplrrrÚassert_boolsr¡cCs,|st |›dt¡dSt|›dƒ‚dS)Nz is ignored.z is invalid.)rrrr
)rrur3rrrÚinvalid_unless_false$sr¢c
Csly(tt |¡ƒt|ttfƒr&tdƒ‚Wn>ttfk
rf}zd}t|j	||dƒ|‚Wdd}~XYnXdS)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzm{attr!r} must be a string or list of strings containing valid project/version requirement specifiers; {error})ruÚerrorN)
r‡ryr›r†ÚdictÚsetr~rr
rŸ)rrur3r£r rrrÚcheck_requirements+sr¦c
CsXytj |¡WnBtjjtfk
rR}zd}t|j||dƒ|‚Wdd}~XYnXdS)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error})rur£N)rÚ
specifiersÚSpecifierSetÚInvalidSpecifierr€r
rŸ)rrur3r£r rrrÚcheck_specifier9s
rªc
CsBytj |¡Wn,tk
r<}zt|ƒ|‚Wdd}~XYnXdS)z)Verify that entry_points map is parseableN)ryrzÚ	parse_maprr
)rrur3rƒrrrÚcheck_entry_pointsDsr¬cCst|tƒstdƒ‚dS)Nztest_suite must be a string)r†rbr
)rrur3rrrÚcheck_test_suiteLs
r­cCs^t|tƒstd |¡ƒ‚x@| ¡D]4\}}t|tƒsDtd ||¡ƒ‚t|d |¡|ƒq"WdS)z@Verify that value is a dictionary of package names to glob listszT{!r} must be a dictionary mapping package names to lists of string wildcard patternsz,keys of {!r} dict must be strings (got {!r})zvalues of {!r} dictN)r†r¤r
rŸrirbr‰)rrur3ÚkÚvrrrÚcheck_package_dataQs

r°cCs,x&|D]}t d|¡stj d|¡qWdS)Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)ÚreÚmatchrrŽr)rrur3ÚpkgnamerrrÚcheck_packages`s

r´c@s~eZdZdZdd„eejdd„dd„dœZdZdd	„Z	dUd
d„Z
dd
„Zedd„ƒZ
edd„ƒZdd„Zdd„Zedd„ƒZdd„Zdd„Zdd„Zedd„ƒZdVd d!„Zd"d#„Zd$d%„Zd&d'„ZdWd(d)„ZdXd+d,„Zd-d.„Zd/d0„Zed1d2„ƒZd3d4„Zd5d6„Z d7d8„Z!d9d:„Z"d;d<„Z#d=d>„Z$d?d@„Z%dAdB„Z&dCdD„Z'dEdF„Z(dGdH„Z)dIdJ„Z*dKdL„Z+dMdN„Z,dOdP„Z-dQdR„Z.dSdT„Z/dS)YraGDistribution with support for tests and package data

    This is an enhanced version of 'distutils.dist.Distribution' that
    effectively adds the following new optional keyword arguments to 'setup()':

     'install_requires' -- a string or sequence of strings specifying project
        versions that the distribution requires when installed, in the format
        used by 'pkg_resources.require()'.  They will be installed
        automatically when the package is installed.  If you wish to use
        packages that are not available in PyPI, or want to give your users an
        alternate download location, you can add a 'find_links' option to the
        '[easy_install]' section of your project's 'setup.cfg' file, and then
        setuptools will scan the listed web pages for links that satisfy the
        requirements.

     'extras_require' -- a dictionary mapping names of optional "extras" to the
        additional requirement(s) that using those extras incurs. For example,
        this::

            extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])

        indicates that the distribution can optionally provide an extra
        capability called "reST", but it can only be used if docutils and
        reSTedit are installed.  If the user installs your package using
        EasyInstall and requests one of your extras, the corresponding
        additional requirements will be installed if needed.

     'test_suite' -- the name of a test suite to run for the 'test' command.
        If the user runs 'python setup.py test', the package will be installed,
        and the named test suite will be run.  The format is the same as
        would be used on a 'unittest.py' command line.  That is, it is the
        dotted name of an object to import and call to generate a test suite.

     'package_data' -- a dictionary mapping package names to lists of filenames
        or globs to use to find data files contained in the named packages.
        If the dictionary has filenames or globs listed under '""' (the empty
        string), those names will be searched for in every package, in addition
        to any names for the specific package.  Data files found using these
        names/globs will be installed along with the package, in the same
        location as the package.  Note that globs are allowed to reference
        the contents of non-package subdirectories, as long as you use '/' as
        a path separator.  (Globs are automatically converted to
        platform-specific paths at runtime.)

    In addition to these new keywords, this class also has several new methods
    for manipulating the distribution's contents.  For example, the 'include()'
    and 'exclude()' methods can be thought of as in-place add and subtract
    commands that add or remove packages, modules, extensions, and so on from
    the distribution.
    cCsdS)NrrrrrÚ<lambda>¢ózDistribution.<lambda>cCsdS)Nrrrrrrµ¥r¶cCsdS)Nrrrrrrµ¦r¶)rrrhrsÚlicense_filerRNcCsl|rd|ksd|krdSt t|dƒ¡ ¡}tjj |¡}|dk	rh| d¡sht t|dƒ¡|_	||_
dS)Nr<r=zPKG-INFO)ryÚ	safe_namerbÚlowerÚworking_setÚby_keyÚgetÚhas_metadataÚsafe_versionÚ_versionÚ
_patched_dist)r"ÚattrsrXrrrrÚpatch_missing_pkg_info«sz#Distribution.patch_missing_pkg_infocsÈtˆdƒ}|siˆ_|pi}gˆ_| dd¡ˆ_ˆ |¡| dg¡ˆ_| dg¡ˆ_x$t 	d¡D]}t
ˆƒ |jd¡qbWt
 ˆ‡fdd„| ¡Dƒ¡ˆ |¡ˆ ˆ ˆjj¡¡ˆj_ˆ ¡dS)NÚpackage_dataÚsrc_rootÚdependency_linksÚsetup_requireszdistutils.setup_keywordscs i|]\}}|ˆjkr||“qSr)Ú_DISTUTILS_UNSUPPORTED_METADATA)Ú.0r®r¯)r"rrú
<dictcomp>Çsz)Distribution.__init__.<locals>.<dictcomp>)rqrÃÚ
dist_filesÚpoprÄrÂrÅrÆryÚiter_entry_pointsÚvarsÚ
setdefaultr<Ú
_DistributionÚ__init__riÚ_set_metadata_defaultsÚ_normalize_versionÚ_validate_versionÚmetadatar=Ú_finalize_requires)r"rÁZhave_package_datar‚r)r"rrиs&



zDistribution.__init__cCs8x2|j ¡D]$\}}t|jƒ || ||ƒ¡¡qWdS)zä
        Fill-in missing metadata fields not supported by distutils.
        Some fields may have been set by other tools (e.g. pbr).
        Those fields (vars(self.metadata)) take precedence to
        supplied attrs.
        N)rÇrirÍrÔrÎr¼)r"rÁÚoptionÚdefaultrrrrÑÕsz#Distribution._set_metadata_defaultscCsPt|tjƒs|dkr|Sttj |¡ƒ}||krLd}t |j	ft
ƒŽ¡|S|S)Nz)Normalizing '{version}' to '{normalized}')r†Ú
setuptoolsÚsicrbrr=r[rrrŸÚlocals)r=Ú
normalizedr rrrrÒßszDistribution._normalize_versionc	Csbt|tjƒrt|ƒ}|dk	r^ytj |¡Wn0tjjtfk
r\t	 
d|¡t |¡SX|S)Nz¦The version specified (%r) is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.)
r†ÚnumbersÚNumberrbrr=r[ÚInvalidVersionr~rrrØrÙ)r=rrrrÓëszDistribution._validate_versioncCsjt|ddƒr|j|j_t|ddƒrVx2|j ¡D]$}| d¡d}|r.|jj |¡q.W| ¡| 	¡dS)z€
        Set `metadata.python_requires` and fix environment markers
        in `install_requires` and `extras_require`.
        raNÚextras_requirer˜r)
r!rarÔrßÚkeysrOrsÚaddÚ_convert_extras_requirementsÚ"_move_install_requirements_markers)r"rwrrrrÕþs
zDistribution._finalize_requirescCspt|ddƒpi}ttƒ|_xP| ¡D]D\}}|j|x0t |¡D]"}| |¡}|j|| |¡qBWq$WdS)z¡
        Convert requirements in `extras_require` of the form
        `"extra": ["barbazquux; {marker}"]` to
        `"extra:{marker}": ["barbazquux"]`.
        rßN)	r!r
r‡Ú_tmp_extras_requireriryr›Ú_suffix_forÚappend)r"Z
spec_ext_reqsÚsectionr¯ÚrÚsuffixrrrrâs


z)Distribution._convert_extras_requirementscCs|jrdt|jƒSdS)ze
        For a requirement, return the 'extras_require' suffix for
        that requirement.
        r˜r…)rrb)Úreqrrrrå!szDistribution._suffix_forcs–dd„}tˆddƒpd}tt |¡ƒ}t||ƒ}t ||¡}ttt|ƒƒˆ_	x&|D]}ˆj
dt|jƒ |¡qRWt
‡fdd„ˆj
 ¡Dƒƒˆ_dS)	zv
        Move requirements in `install_requires` that are using environment
        markers `extras_require`.
        cSs|jS)N)r)rêrrrÚ
is_simple_req3szFDistribution._move_install_requirements_markers.<locals>.is_simple_reqÚinstall_requiresNrr˜c3s,|]$\}}|dd„tˆj|ƒDƒfVqdS)cSsg|]}t|ƒ‘qSr)rb)rÈrèrrrú
<listcomp>?szMDistribution._move_install_requirements_markers.<locals>.<genexpr>.<listcomp>N)ÚmapÚ
_clean_req)rÈr®r¯)r"rrú	<genexpr>?szBDistribution._move_install_requirements_markers.<locals>.<genexpr>)r!r‡ryr›Úfilterr”Úfilterfalserîrbrìrärrær¤rirß)r"rëZspec_inst_reqsZ	inst_reqsZsimple_reqsZcomplex_reqsrèr)r"rrã)s



z/Distribution._move_install_requirements_markerscCs
d|_|S)zP
        Given a Requirement, remove environment markers and return it.
        N)r)r"rêrrrrïCszDistribution._clean_reqcCs`|jj}|r|ng}|jj}|r2||kr2| |¡|dkrF|dkrFd}tt| |¡ƒƒ|j_dS)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*)rÔrRr·rær‡rÚ_expand_patterns)r"rRÚpatternsr·rrrÚ_finalize_license_filesJs
z$Distribution._finalize_license_filescCsdd„|DƒS)zÂ
        >>> list(Distribution._expand_patterns(['LICENSE']))
        ['LICENSE']
        >>> list(Distribution._expand_patterns(['setup.cfg', 'LIC*']))
        ['setup.cfg', 'LICENSE']
        css:|]2}tt|ƒƒD] }| d¡stj |¡r|VqqdS)ú~N)ÚsortedrÚendswithÚosÚpathÚisfile)rÈÚpatternrúrrrrðfsz0Distribution._expand_patterns.<locals>.<genexpr>r)rôrrrró]s	zDistribution._expand_patternsc
Csàddlm}tjtjkrgnddddddd	d
ddd
ddg
}t|ƒ}|dkrR| ¡}tr`| d¡|ƒ}t	|_
xÆ|D]¾}tj|dd(}trž| dj
ftƒŽ¡| |¡WdQRXxt| ¡D]h}| |¡}| |¡}	xN|D]F}
|
dksÚ|
|krðqÚ| ||
¡}| |
|¡}
| |
|¡}
||f|	|
<qÚWq¼W| ¡qrWd|jkrDdSx–|jd ¡D]„\}
\}}|j |
¡}
|
r~t|ƒ}n|
dkrt|ƒ}yt||
pž|
|ƒWn.tk
rÔ}zt|ƒ|‚Wdd}~XYnXqTWdS)z£
        Adapted from distutils.dist.Distribution.parse_config_files,
        this method provides the same functionality in subtly-improved
        ways.
        r)ÚConfigParserzinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataÚprefixzexec-prefixÚhomeÚuserÚrootNz"Distribution.parse_config_files():zutf-8)Úencodingz  reading {filename}Ú__name__Úglobal)ÚverboseÚdry_run)ÚconfigparserrýÚsysrþÚbase_prefixÚ	frozensetÚfind_config_filesrÚannouncerbÚoptionxformÚioÚopenrŸrÚÚ	read_fileÚsectionsÚoptionsÚget_option_dictr¼Úwarn_dash_deprecationÚmake_option_lowercaserÐÚcommand_optionsriÚnegative_optrÚsetattrrr)r"Ú	filenamesrýÚignore_optionsÚparserÚfilenameÚreaderrçrÚopt_dictÚoptrUÚsrcÚaliasrƒrrrÚ_parse_config_filesmsd





z Distribution._parse_config_filescCsd|dkr|S| dd¡}tjj| ¡}| d¡sF|dkrF||krF|Sd|kr`t d||f¡|S)N)zoptions.extras_requirezoptions.data_filesú-Ú_rrÔzrUsage of dash-separated '%s' will not be supported in future versions. Please use the underscore name '%s' instead)ÚreplacerÚcommandÚ__all__Ú_setuptools_commandsÚ
startswithrr)r"rrçZunderscore_optÚcommandsrrrr¼s
z"Distribution.warn_dash_deprecationcCs4yt d¡}t| d¡ƒStjk
r.gSXdS)NrØzdistutils.commands)ryÚget_distributionr‡Ú
get_entry_mapÚDistributionNotFound)r"rrrrr(Ôs

z!Distribution._setuptools_commandscCs4|dks| ¡r|S| ¡}t d|||f¡|S)NrÔzlUsage of uppercase key '%s' in '%s' will be deprecated in future versions. Please use lowercase '%s' instead)Úislowerr¹rr)r"rrçZ
lowercase_optrrrrÜsz"Distribution.make_option_lowercasecCsd| ¡}|dkr| |¡}tr,| d|¡x0| ¡D]"\}\}}tr^| d|||f¡ydd„|jDƒ}Wntk
rŠg}YnXy
|j}Wntk
r®i}YnXy|t|t	ƒ}	||krà|	ràt
|||t|ƒƒnJ||krþ|	rþt
||t|ƒƒn,t||ƒrt
|||ƒnt
d|||fƒ‚Wq8tk
rZ}
zt
|
ƒ|
‚Wdd}
~
XYq8Xq8WdS)aË
        Set the options for 'command_obj' from 'option_dict'.  Basically
        this means copying elements of a dictionary ('option_dict') to
        attributes of an instance ('command').

        'command_obj' must be a Command instance.  If 'option_dict' is not
        supplied, uses the standard option dictionary for this command
        (from 'self.command_options').

        (Adopted from distutils.dist.Distribution._set_command_options)
        Nz#  setting options for '%s' command:z    %s = %s (from %s)cSsg|]}t|ƒ‘qSr)r)rÈÚorrrríÿsz5Distribution._set_command_options.<locals>.<listcomp>z1error in %s: command '%s' has no such option '%s')Úget_command_namerrrriÚboolean_optionsr€rr†rbrrrqrr)r"Úcommand_objÚoption_dictÚcommand_namerÖÚsourcer3Ú	bool_optsÚneg_optÚ	is_stringrƒrrrÚ_set_command_optionsés:




z!Distribution._set_command_optionsFcCs0|j|dt||j|d| ¡| ¡dS)zYParses configuration files from various levels
        and loads configuration.

        )r)Úignore_option_errorsN)r"rrrÕrõ)r"rr:rrrÚparse_config_filess
zDistribution.parse_config_filescCs<tjjt |¡|jdd}x|D]}tjj|ddq W|S)zResolve pre-setup requirementsT)Ú	installerÚreplace_conflicting)r%)ryrºÚresolver›Úfetch_build_eggrá)r"rFZresolved_distsrrrrÚfetch_build_eggs$s
zDistribution.fetch_build_eggscCsTd}dd„}t |¡}t |j|¡}tdd„|ƒ}xt||dD]}||ƒq@WdS)zè
        Allow plugins to apply arbitrary operations to the
        distribution. Each hook may optionally define a 'order'
        to influence the order of execution. Smaller numbers
        go first and the default is 0.
        z(setuptools.finalize_distribution_optionscSst|ddƒS)NÚorderr)r!)ÚhookrrrÚby_order8sz/Distribution.finalize_options.<locals>.by_ordercSs| ¡S)N)Úload)rƒrrrrµ=r¶z/Distribution.finalize_options.<locals>.<lambda>)rXN)ryrÌr”ròÚ_removedrîr÷)r"ÚgrouprCZdefinedÚfilteredZloadedr‚rrrÚfinalize_options/s
zDistribution.finalize_optionscCsdh}|j|kS)zà
        When removing an entry point, if metadata is loaded
        from an older version of Setuptools, that removed
        entry point will attempt to be loaded and will fail.
        See #2765 for more details.
        Z
2to3_doctests)r<)r‚ÚremovedrrrrEAs
zDistribution._removedcCsNxHt d¡D]:}t||jdƒ}|dk	r|j|jd| ¡||j|ƒqWdS)Nzdistutils.setup_keywords)r<)ryrÌr!r<Úrequirer?rD)r"r‚r3rrrÚ_finalize_setup_keywordsOs
z%Distribution._finalize_setup_keywordsc	Csvtj tjd¡}tj |¡srt |¡t |¡tj |d¡}t|dƒ$}| 	d¡| 	d¡| 	d¡WdQRX|S)Nz.eggsz
README.txtÚwzcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

zAThis directory caches those eggs to prevent repeated downloads.

z/However, it is safe to delete this directory.

)
rùrúr+ÚcurdirÚexistsÚmkdirrZ	hide_filerrW)r"Z
egg_cache_dirZreadme_txt_filenameÚfrrrÚget_egg_cache_dirVs

zDistribution.get_egg_cache_dircCsddlm}|||ƒS)z Fetch an egg needed for buildingr)r?)Zsetuptools.installerr?)r"rêr?rrrr?iszDistribution.fetch_build_eggcCs`||jkr|j|St d|¡}x:|D]&}|j|jd| ¡|j|<}|SWt ||¡SdS)z(Pluggable version of get_command_class()zdistutils.commands)r<N)ÚcmdclassryrÌrJr?rDrÏÚget_command_class)r"r&Zepsr‚rRrrrrSos


zDistribution.get_command_classcCs>x2t d¡D]$}|j|jkr| ¡}||j|j<qWt |¡S)Nzdistutils.commands)ryrÌr<rRr>rÏÚprint_commands)r"r‚rRrrrrT|s
zDistribution.print_commandscCs>x2t d¡D]$}|j|jkr| ¡}||j|j<qWt |¡S)Nzdistutils.commands)ryrÌr<rRr>rÏÚget_command_list)r"r‚rRrrrrU„s
zDistribution.get_command_listcKsDx>| ¡D]2\}}t|d|dƒ}|r0||ƒq
| ||¡q
WdS)aôAdd items to distribution that are named in keyword arguments

        For example, 'dist.include(py_modules=["x"])' would add 'x' to
        the distribution's 'py_modules' attribute, if it was not already
        there.

        Currently, this method only supports inclusion for attributes that are
        lists or tuples.  If you need to add support for adding to other
        attributes in this or a subclass, you can add an '_include_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'
        will try to call 'dist._include_foo({"bar":"baz"})', which can then
        handle whatever special inclusion logic is needed.
        Z	_include_N)rir!Ú
_include_misc)r"rÁr®r¯ÚincluderrrrWŒs

zDistribution.includecsfˆd‰|jr&‡‡fdd„|jDƒ|_|jrD‡‡fdd„|jDƒ|_|jrb‡‡fdd„|jDƒ|_dS)z9Remove packages, modules, and extensions in named packagerŠcs"g|]}|ˆkr| ˆ¡s|‘qSr)r))rÈÚp)ÚpackageÚpfxrrrí¨sz0Distribution.exclude_package.<locals>.<listcomp>cs"g|]}|ˆkr| ˆ¡s|‘qSr)r))rÈrX)rYrZrrrí­scs&g|]}|jˆkr|j ˆ¡s|‘qSr)r<r))rÈrX)rYrZrrrí²sN)ÚpackagesÚ
py_modulesÚext_modules)r"rYr)rYrZrÚexclude_package¢szDistribution.exclude_packagecCs4|d}x&| ¡D]}||ks(| |¡rdSqWdS)z<Return true if 'exclude_package(package)' would do somethingrŠTN)Úiter_distribution_namesr))r"rYrZrXrrrr‹·szDistribution.has_contents_forc
sœtˆtƒstd|ˆfƒ‚yt||ƒ}Wn0tk
rX}ztd|ƒ|‚Wdd}~XYnX|dk	rzt|tƒszt|dƒ‚n|r˜t||‡fdd„|DƒƒdS)zAHandle 'exclude()' for list/tuple attrs without a special handlerz(%s: setting must be a list or tuple (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecsg|]}|ˆkr|‘qSrr)rÈÚitem)r3rrríÏsz.Distribution._exclude_misc.<locals>.<listcomp>)r†Úsequencer
r!r€r)r"r<r3Úoldrƒr)r3rÚ
_exclude_miscÀs
 zDistribution._exclude_miscc
s®t|tƒstd||fƒ‚yt||ƒ‰Wn0tk
rX}ztd|ƒ|‚Wdd}~XYnXˆdkrpt|||ƒn:tˆtƒsˆt|dƒ‚n"‡fdd„|Dƒ}t||ˆ|ƒdS)zAHandle 'include()' for list/tuple attrs without a special handlerz%s: setting must be a list (%r)z %s: No such distribution settingNz4: this setting cannot be changed via include/excludecsg|]}|ˆkr|‘qSrr)rÈr`)rbrrríász.Distribution._include_misc.<locals>.<listcomp>)r†rar
r!r€r)r"r<r3rƒÚnewr)rbrrVÑs
 
zDistribution._include_misccKsDx>| ¡D]2\}}t|d|dƒ}|r0||ƒq
| ||¡q
WdS)aRemove items from distribution that are named in keyword arguments

        For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from
        the distribution's 'py_modules' attribute.  Excluding packages uses
        the 'exclude_package()' method, so all of the package's contained
        packages, modules, and extensions are also excluded.

        Currently, this method only supports exclusion from attributes that are
        lists or tuples.  If you need to add support for excluding from other
        attributes in this or a subclass, you can add an '_exclude_X' method,
        where 'X' is the name of the attribute.  The method will be called with
        the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'
        will try to call 'dist._exclude_foo({"bar":"baz"})', which can then
        handle whatever special exclusion logic is needed.
        Z	_exclude_N)rir!rc)r"rÁr®r¯Úexcluderrrreäs

zDistribution.excludecCs,t|tƒstd|fƒ‚tt|j|ƒƒdS)Nz.packages: setting must be a list or tuple (%r))r†rar
r‡rîr^)r"r[rrrÚ_exclude_packagesûs
zDistribution._exclude_packagesc
Cs°|jj|_|jj|_|d}| d¡}xB||krh||\}}||=ddl}| |d¡|dd…<|d}q(Wt |||¡}| |¡}	t	|	ddƒr¬d|f| |¡d<|dk	r¬gS|S)NrÚaliasesTrZcommand_consumes_argumentszcommand lineÚargs)
Ú	__class__Úglobal_optionsrrÚshlexrOrÏÚ_parse_command_optsrSr!)
r"rrhr&rgr r!rkÚnargsÚ	cmd_classrrrrls"




z Distribution._parse_command_optscCsÌi}xÂ|j ¡D]´\}}xª| ¡D]ž\}\}}|dkr8q"| dd¡}|dkr¤| |¡}|j ¡}| t|diƒ¡x<| ¡D]\}	}
|
|kr||	}d}Pq|Wtdƒ‚n|dkr°d}|| 	|i¡|<q"WqW|S)	ahReturn a '{cmd: {opt:val}}' map of all command-line options

        Option names are all long, but do not include the leading '--', and
        contain dashes rather than underscores.  If the option doesn't take
        an argument (e.g. '--quiet'), the 'val' is 'None'.

        Note that options provided by config files are intentionally excluded.
        zcommand liner$r#rrNzShouldn't be able to get herer)
rrir%Úget_command_objrÚcopyÚupdater!r}rÎ)r"ÚdÚcmdÚoptsrr rUZcmdobjr7ÚnegÚposrrrÚget_cmdline_optionss(



z Distribution.get_cmdline_optionsccs‚x|jp
dD]
}|VqWx|jp$dD]
}|Vq&WxH|jp>dD]:}t|tƒrX|\}}n|j}| d¡rt|dd…}|Vq@WdS)z@Yield all packages, modules, and extension names in distributionrÚmoduleNiúÿÿÿ)r[r\r]r†rˆr<rø)r"ÚpkgrxÚextr<Z	buildinforrrr_Es




z$Distribution.iter_distribution_namesc
CsÂddl}|jrt ||¡St|jtjƒs4t ||¡S|jj 	¡dkrPt ||¡S|jj}|jj
}|jdkrndppd}|jj}t |j 
¡d|||¡|_zt ||¡St |j 
¡||||¡|_XdS)zÚIf there were any non-global "display-only" options
        (--help-commands or the metadata display options) on the command
        line, display the requested info and return true; else return
        false.
        rN)zutf-8Úutf8Úwin32r'zutf-8)rÚ
help_commandsrÏÚhandle_display_optionsr†ÚstdoutrÚ
TextIOWrapperrr¹ÚerrorsrDÚline_bufferingÚdetach)r"Úoption_orderrrrÚnewliner‚rrrr~Ws"z#Distribution.handle_display_options)N)N)N)NF)0rÚ
__module__Ú__qualname__Ú__doc__r¤rZ
OrderedSetrÇrÀrÂrÐrÑÚstaticmethodrÒrÓrÕrârårãrïrõrór"rr(rr9r;r@rHrErKrQr?rSrTrUrWr^r‹rcrVrerfrlrwr_r~rrrrrmsZ2


O
.


	(c@seZdZdZdS)rzrClass for warning about deprecations in dist in
    setuptools. Not ignored by default, unlike DeprecationWarning.N)rr†r‡rˆrrrrr|sr)Vr'rrr±rùrrÜZ
distutils.logrÚdistutils.coreÚ
distutils.cmdÚdistutils.distÚdistutils.commandÚdistutils.utilrÚdistutils.debugrÚdistutils.fancy_getoptrÚglobrr”r,Útypingrrr	Úcollectionsr
ÚemailrÚdistutils.errorsrr
rZdistutils.versionrZsetuptools.externrrZ setuptools.extern.more_itertoolsrr…rrØZsetuptools.commandrZsetuptools.monkeyrZsetuptools.configrryÚ
email.messagerÚ
__import__rr$rbr/r4r5r8r;rTrVrxrˆr‡rar„r‰r“r—r–r¡r¢r¦rªr¬r­r°r´ÚcorerrÏrrrrrÚ<module>sŒ-
>