/usr/lib/python3.9/site-packages/setuptools/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc57800644editdlrm
archive_util.cpython-39.pyc57800644editdlrm
build_meta.cpython-39.opt-1.pyc88670644editdlrm
build_meta.cpython-39.pyc88850644editdlrm
config.cpython-39.opt-1.pyc192290644editdlrm
config.cpython-39.pyc192290644editdlrm
depends.cpython-39.opt-1.pyc52150644editdlrm
depends.cpython-39.pyc52150644editdlrm
dep_util.cpython-39.opt-1.pyc8230644editdlrm
dep_util.cpython-39.pyc8230644editdlrm
dist.cpython-39.opt-1.pyc337520644editdlrm
dist.cpython-39.pyc338330644editdlrm
errors.cpython-39.opt-1.pyc8160644editdlrm
errors.cpython-39.pyc8160644editdlrm
extension.cpython-39.opt-1.pyc19100644editdlrm
extension.cpython-39.pyc19100644editdlrm
glob.cpython-39.opt-1.pyc36310644editdlrm
glob.cpython-39.pyc36600644editdlrm
installer.cpython-39.opt-1.pyc27040644editdlrm
installer.cpython-39.pyc27370644editdlrm
launch.cpython-39.opt-1.pyc8670644editdlrm
launch.cpython-39.pyc8670644editdlrm
lib2to3_ex.cpython-39.opt-1.pyc26690644editdlrm
lib2to3_ex.cpython-39.pyc26690644editdlrm
monkey.cpython-39.opt-1.pyc45790644editdlrm
monkey.cpython-39.pyc45790644editdlrm
msvc.cpython-39.opt-1.pyc432360644editdlrm
msvc.cpython-39.pyc432360644editdlrm
namespaces.cpython-39.opt-1.pyc35660644editdlrm
namespaces.cpython-39.pyc35660644editdlrm
package_index.cpython-39.opt-1.pyc331120644editdlrm
package_index.cpython-39.pyc331120644editdlrm
py34compat.cpython-39.opt-1.pyc4460644editdlrm
py34compat.cpython-39.pyc4460644editdlrm
sandbox.cpython-39.opt-1.pyc157400644editdlrm
sandbox.cpython-39.pyc157400644editdlrm
ssl_support.cpython-39.opt-1.pyc68270644editdlrm
ssl_support.cpython-39.pyc68270644editdlrm
unicode_utils.cpython-39.opt-1.pyc10800644editdlrm
unicode_utils.cpython-39.pyc10800644editdlrm
version.cpython-39.opt-1.pyc2900644editdlrm
version.cpython-39.pyc2900644editdlrm
wheel.cpython-39.opt-1.pyc72360644editdlrm
wheel.cpython-39.pyc72460644editdlrm
windows_support.cpython-39.opt-1.pyc9890644editdlrm
windows_support.cpython-39.pyc9890644editdlrm
_deprecation_warning.cpython-39.opt-1.pyc5160644editdlrm
_deprecation_warning.cpython-39.pyc5160644editdlrm
_imp.cpython-39.opt-1.pyc20510644editdlrm
_imp.cpython-39.pyc20510644editdlrm
__init__.cpython-39.opt-1.pyc85900644editdlrm
__init__.cpython-39.pyc85900644editdlrm
Edit: /usr/lib/python3.9/site-packages/setuptools/__pycache__/dist.cpython-39.pyc (33833B)
a ˆåÏhKŸã@sdgZddlZddlZddlZddlZddlZddlZddlZddl Zddl Zddl Zddl m Z ddlmZddlmZddlmZddlZddlmZddlmZdd lmZmZdd l mZdd lmZdd lm Z dd lm!Z!ddl"m#Z#ddl$Z$ddl$m%Z%ddl&m'Z'ddl(m)Z)ddl*Z*e+dƒe+dƒdd„Z,dd„Z-dd„Z.dd„Z/dd„Z0e1e2fZ3dd „Z4d!d"„Z5d#d$„Z6d%d&„Z7d'd(„Z8d)d*„Z9d+d,„Z:d-d.„Z;d/d0„Zd5d6„Z?e'ej@jAƒZBGd7d„deBƒZAGd8d9„d9e#ƒZCd._read_fieldcsˆ |d¡}|gkrdS|S©N)Zget_all)r.Úvaluesr0rrÚ _read_listOs z!read_pkg_file.._read_listzmetadata-versionr.ÚversionZsummaryÚauthorNz author-emailz home-pageÚlicensez download-urlÚ descriptionÚkeywordsú,ÚplatformZ classifierrr'r&r(z license-file)r r rr.r6r9r7r#Ú author_emailr$Úurlr8r*Zlong_descriptionÚsplitr:Z platformsr)r'r&r(Ú license_files)r+Úfiler2r5rr0rÚ read_pkg_fileEs<                 rBcCs"d|vrt d¡| dd¡}|S)NÚ z1newlines not allowed and will break in the futureú )rrÚreplace)ÚvalrrrÚ single_line|s  rGc s| ¡}‡fdd„}|dt|ƒƒ|d| ¡ƒ|d| ¡ƒ|dt| ¡ƒƒ|d| ¡ƒ|tdƒkrˆ|d | ¡ƒ|d |  ¡ƒn.d }|D]$\}}t ||ƒ}|d ur�|||ƒq�|d |  ¡ƒ|j rÖ|d|j ƒ|j  ¡D]}|dd|ƒqàt| ¡ƒ} |d| ƒd | ¡¡} | �r(|d| ƒ|tdƒk�rR| ¡D]} |d| ƒ�q>n| ˆd| ¡¡| ˆd| ¡¡| ˆd| ¡¡| ˆd| ¡¡| ˆd| ¡¡t|dƒ�rÄ|d|jƒ|j�rØ|d|jƒ|j�rø|jD]} |d| ƒ�qæ| ˆd|j�p g¡d S)z5Write the PKG-INFO format data to a file object. csˆ d||f¡dS)Nz%s: %s )Úwrite)Úkeyr/©rArrÚ write_field‹sz#write_pkg_file..write_fieldzMetadata-VersionÚNameÚVersionZSummaryz Home-pagerÚAuthorú Author-email))rNr7)rOr=)Z Maintainerr#)zMaintainer-emailr$NZLicensez Download-URLz Project-URLz%s, %sZ Descriptionr;ZKeywordsZPlatformZ ClassifierZRequiresZProvidesZ ObsoletesrzRequires-PythonzDescription-Content-TypezProvides-Extraz License-File)r-ÚstrZget_nameZ get_versionrGZget_descriptionZget_urlr Z get_contactZget_contact_emailr Z get_licenser*r%Úitemsr Zget_long_descriptionÚjoinZ get_keywordsZ get_platformsZ _write_listZget_classifiersZ get_requiresZ get_providesZ get_obsoletesÚhasattrrr!r"r@) r+rAr6rKZoptional_fieldsZfieldÚattrZattr_valZ project_urlZ long_descr:r<ÚextrarrJrÚwrite_pkg_file†sX            þ rVc Csbztj d|¡}|jrJ‚Wn>ttttfy\}ztd||fƒ|‚WYd}~n d}~00dS)Nzx=z4%r must be importable 'module:attrs' string (got %r)) Ú pkg_resourcesÚ EntryPointÚparseÚextrasÚ TypeErrorÚ ValueErrorÚAttributeErrorÚAssertionErrorr )ÚdistrTr/ÚepÚerrrÚcheck_importableÒsÿÿýrbc Cslz(t|ttfƒsJ‚d |¡|ks&J‚Wn>ttttfyf}ztd||fƒ|‚WYd}~n d}~00dS)z"Verify that value is a string listÚz%%r must be a list of strings (got %r)N) Ú isinstanceÚlistÚtuplerRr[r\r]r^r ©r_rTr/rarrrÚassert_string_listÝs ÿþrhcCsd|}t|||ƒ|D]J}| |¡s2tdd|ƒ‚| d¡\}}}|r||vrtj d||¡qdS)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)rhÚhas_contents_forr Ú rpartitionÚ distutilsÚlogr)r_rTr/Z ns_packagesZnspÚparentÚsepÚchildrrrÚ check_nspës  ÿÿ þrqc CsRztt t| ¡¡ƒWn4tttfyL}ztdƒ|‚WYd}~n d}~00dS)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) reÚ itertoolsÚstarmapÚ _check_extrarQr[r\r]r rgrrrÚ check_extrasýsÿürucCs<| d¡\}}}|r*t |¡r*td|ƒ‚tt |¡ƒdS)Nú:zInvalid environment marker: )Ú partitionrWZinvalid_markerr reÚparse_requirements)rUZreqsr.roÚmarkerrrrrt s rtcCs&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}))rTr/N)Úboolr Úformat)r_rTr/ÚtmplrrrÚ assert_bools r}c Csnz(tt |¡ƒt|ttfƒr&tdƒ‚Wn@ttfyh}z$d}t|j ||d�ƒ|‚WYd}~n d}~00dS)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}©rTÚerrorN) rerWrxrdÚdictÚsetr[r\r r{©r_rTr/rr|rrrÚcheck_requirementss ÿ ÿþrƒc CsVztj |¡Wn@tjjyP}z$d}t|j||d�ƒ|‚WYd}~n d}~00dS)z.Verify that value is a valid version specifierzF{attr!r} must be a string containing valid version specifiers; {error}r~N)rZ specifiersZ SpecifierSetZInvalidSpecifierr r{r‚rrrÚcheck_specifier'sÿ ÿþr„c CsDztj |¡Wn.ty>}zt|ƒ|‚WYd}~n d}~00dS)z)Verify that entry_points map is parseableN)rWrXZ parse_mapr\r rgrrrÚcheck_entry_points5sr…cCst|tƒstdƒ‚dS)Nztest_suite must be a string)rdrPr )r_rTr/rrrÚcheck_test_suite=s r†cCsZt|tƒstd |¡ƒ‚| ¡D]4\}}t|tƒsBtd ||¡ƒ‚t|d |¡|ƒq dS)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)rdr€r r{rQrPrh)r_rTr/ÚkÚvrrrÚcheck_package_dataBs ÿÿ ÿÿr‰cCs(|D]}t d|¡stj d|¡qdS)Nz \w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)ÚreÚmatchrlrmr)r_rTr/ZpkgnamerrrÚcheck_packagesQs  þrŒc@sVeZdZdZdeejdd„dd„dœZdZdd„Z dLd d „Z e d d „ƒZ e d d„ƒZ dd„Zdd„Ze dd„ƒZdd„Zdd„Zdd„Ze dd„ƒZdMdd„ZdNdd „ZdOd"d#„Zd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Z d6d7„Z!d8d9„Z"d:d;„Z#dd?„Z%d@dA„Z&dBdC„Z'dDdE„Z(dFdG„Z)dHdI„Z*dJdK„Z+dS)PraG Distribution 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. NcCsdSr3rrrrrÚ•ózDistribution.cCsdSr3rrrrrr�–rŽ)r!r%r"Ú license_filer@cCsl|rd|vsd|vrdSt t|dƒ¡ ¡}tjj |¡}|durh| d¡sht t|dƒ¡|_ ||_ dS)Nr.r6zPKG-INFO) rWZ safe_namerPÚlowerÚ working_setZby_keyÚgetZ has_metadataZ safe_versionÚ_versionÚ _patched_dist)r+ÚattrsrIr_rrrÚpatch_missing_pkg_info›sz#Distribution.patch_missing_pkg_infocstˆdƒ}|siˆ_|pi}gˆ_| dd¡ˆ_ˆ |¡| dg¡ˆ_| dg¡ˆ_t  d¡D]}t ˆƒ  |j d¡q`t  ˆ‡fdd„| ¡Dƒ¡ˆj ¡D]J\}}ˆjj|fD]}||vr´||}qÜq´|rØ|ƒnd}tˆj||ƒq ˆ ˆ ˆjj¡¡ˆj_ˆ ¡dS)NÚ package_dataÚsrc_rootÚdependency_linksÚsetup_requiresúdistutils.setup_keywordscs i|]\}}|ˆjvr||“qSr)Ú_DISTUTILS_UNSUPPORTED_METADATA©Ú.0r‡rˆ©r+rrÚ µs ÿz)Distribution.__init__..)rSr—Z dist_filesÚpopr˜r–r™ršrWÚiter_entry_pointsÚvarsÚ setdefaultr.Ú _DistributionÚ__init__rQrœÚmetadataÚ__dict__ÚsetattrÚ_normalize_versionÚ_validate_versionr6Ú_finalize_requires)r+r•Zhave_package_datar`ÚoptionÚdefaultÚsourcer/rrŸrr¦¨s2  ÿ ÿzDistribution.__init__cCsTt|tjƒs|dur|Sttj |¡ƒ}||krPd}t |j fit ƒ¤Ž¡|S|S)Nz)Normalizing '{version}' to '{normalized}') rdÚ setuptoolsÚsicrPrr6rMrrr{Úlocals)r6Z normalizedr|rrrrªÊszDistribution._normalize_versionc Csdt|tjƒrt|ƒ}|dur`ztj |¡Wn2tjjtfy^t   d|¡t   |¡YS0|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.) rdÚnumbersÚNumberrPrr6rMZInvalidVersionr[rrr°r±)r6rrrr«Ös ýÿzDistribution._validate_versioncCsft|ddƒr|j|j_t|ddƒrR|j ¡D]$}| d¡d}|r,|jj |¡q,| ¡|  ¡dS)z€ Set `metadata.python_requires` and fix environment markers in `install_requires` and `extras_require`. rNÚextras_requirervr) r rr§rµÚkeysr?r"ÚaddÚ_convert_extras_requirementsÚ"_move_install_requirements_markers)r+rUrrrr¬és   zDistribution._finalize_requirescCsht|ddƒpi}ttƒ|_| ¡D]@\}}|j|t |¡D]"}| |¡}|j|| |¡q>q"dS)z¡ Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. rµN) r rreÚ_tmp_extras_requirerQrWrxÚ _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. rvrc)ryrP©Úreqrrrr» szDistribution._suffix_forcs’dd„}tˆddƒpd}tt |¡ƒ}t||ƒ}t ||¡}ttt|ƒƒˆ_ |D]}ˆj dt|j ƒ  |¡qPt ‡fdd„ˆj  ¡Dƒƒˆ_dS) zv Move requirements in `install_requires` that are using environment markers `extras_require`. cSs|j Sr3©ryrÀrrrÚ is_simple_reqszFDistribution._move_install_requirements_markers..is_simple_reqÚinstall_requiresNrrvc3s,|]$\}}|dd„tˆj|ƒDƒfVqdS)cSsg|] }t|ƒ‘qSr)rP)ržr¾rrrÚ *rŽzMDistribution._move_install_requirements_markers...N)ÚmapÚ _clean_reqr�rŸrrÚ )sÿzBDistribution._move_install_requirements_markers..)r rerWrxÚfilterrrÚ filterfalserÆrPrÄrºryr¼r€rQrµ)r+rÃZspec_inst_reqsZ inst_reqsZ simple_reqsZ complex_reqsr¾rrŸrr¹s    þz/Distribution._move_install_requirements_markerscCs d|_|S)zP Given a Requirement, remove environment markers and return it. NrÂ)r+rÁrrrrÇ.szDistribution._clean_reqcCs`|jj}|r|ng}|jj}|r2||vr2| |¡|durF|durFd}tt| |¡ƒƒ|j_dS)z.r)rÍrrrrÌGsþzDistribution._expand_patternsc CsÈddlm}tjtjkrgngd¢}t|ƒ}|dur<| ¡}trJ| d¡|ƒ}t |_ |D]Â}t j |dd��6}trŠ| dj fitƒ¤Ž¡| |¡Wdƒn1s¨0Y| ¡D]X}| |¡}| |¡} |D]:} | d ksÖ| |vrìqÖ| || ¡} |  d d ¡} || f| | <qÖqº| ¡qZd |jv�r.dS|jd  ¡D]†\} \} } |j | ¡} | �rft| ƒ } n| d v�rxt| ƒ} zt|| �p†| | ƒWn0t�y¾}zt|ƒ|‚WYd}~n d}~00�q.z1error in %s: command '%s' has no such option '%s')Zget_command_namerérrårQZboolean_optionsr]rërdrPr©rrSr r\) r+Z command_objZ option_dictZ command_namer­r¯r/Z bool_optsÚneg_optZ is_stringrarrrÚ_set_command_options”sF   ÿÿ          ÿÿ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órrêr¬rÎ)r+rìr÷rrrÚparse_config_filesÃs  ÿzDistribution.parse_config_filescCs8tjjt |¡|jdd�}|D]}tjj|dd�q|S)zResolve pre-setup requirementsT)Ú installerZreplace_conflicting)rE)rWr‘ÚresolverxÚfetch_build_eggr·)r+r'Zresolved_distsr_rrrÚfetch_build_eggsÏsýzDistribution.fetch_build_eggscCs>d}dd„}tdd„t |¡ƒ}t||d�D] }||ƒq,dS)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_orderãsz/Distribution.finalize_options..by_ordercSs| ¡Sr3)Úload)rarrrr�årŽz/Distribution.finalize_options..)rIN)rÆrWr¢Úsorted)r+ÚgrouprÿÚepsr`rrrÚfinalize_optionsÚs zDistribution.finalize_optionscCsJt d¡D]:}t||jdƒ}|dur |j|jd�| ¡||j|ƒq dS)Nr›©rù)rWr¢r r.Úrequirerûr)r+r`r/rrrÚ_finalize_setup_keywordsés z%Distribution._finalize_setup_keywordscCs*t|ddƒr dd„|jDƒ|_ng|_dS)NÚconvert_2to3_doctestscSsg|]}tj |¡‘qSr)rÑrÒÚabspath©ržÚprrrrÅósÿz8Distribution._finalize_2to3_doctests..)r rrŸrrrÚ_finalize_2to3_doctestsðs  þ z$Distribution._finalize_2to3_doctestscCsŠtj tjd¡}tj |¡s†t |¡t |¡tj |d¡}t|dƒ�.}|  d¡|  d¡|  d¡Wdƒn1s|0Y|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ÒrRÚcurdirÚexistsÚmkdirrZ hide_filerçrH)r+Z egg_cache_dirZreadme_txt_filenameÚfrrrÚget_egg_cache_dirús      (zDistribution.get_egg_cache_dircCsddlm}|||ƒS)z Fetch an egg needed for buildingr)rû)Zsetuptools.installerrû)r+rÁrûrrrrû s zDistribution.fetch_build_eggcCs\||jvr|j|St d|¡}|D]*}|j|jd�| ¡|j|<}|St ||¡S)z(Pluggable version of get_command_class()údistutils.commandsrN)ÚcmdclassrWr¢rrûrr¥Úget_command_class)r+Úcommandrr`rrrrrs   zDistribution.get_command_classcCs:t d¡D]$}|j|jvr | ¡}||j|j<q t |¡S©Nr)rWr¢r.rrúr¥Úprint_commands©r+r`rrrrrs  zDistribution.print_commandscCs:t d¡D]$}|j|jvr | ¡}||j|j<q t |¡Sr)rWr¢r.rrúr¥Úget_command_listrrrrr#s  zDistribution.get_command_listcKs@| ¡D]2\}}t|d|dƒ}|r.||ƒq| ||¡qdS)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)rQr Ú _include_misc)r+r•r‡rˆÚincluderrrr+s  zDistribution.includecsfˆd‰|jr&‡‡fdd„|jDƒ|_|jrD‡‡fdd„|jDƒ|_|jrb‡‡fdd„|jDƒ|_dS)z9Remove packages, modules, and extensions in named packagerics"g|]}|ˆkr| ˆ¡s|‘qSr©Ú startswithr ©ÚpackageÚpfxrrrÅFsÿz0Distribution.exclude_package..cs"g|]}|ˆkr| ˆ¡s|‘qSrrr rrrrÅLsÿcs&g|]}|jˆkr|j ˆ¡s|‘qSr)r.rr rrrrÅRsÿN)ÚpackagesÚ py_modulesÚ ext_modules)r+r rrrÚexclude_packageAs ÿ ÿ ÿzDistribution.exclude_packagecCs2|d}| ¡D]}||ks&| |¡rdSqdS)z.©rdÚsequencer r r]r©)r+r.r/Úoldrarr+rÚ _exclude_misc`s$  ÿÿþÿzDistribution._exclude_miscc s°t|tƒstd||fƒ‚zt||ƒ‰Wn2tyZ}ztd|ƒ|‚WYd}~n d}~00ˆdurrt|||ƒ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)r'Nr(csg|]}|ˆvr|‘qSrrr)©r.rrrŇrŽz.Distribution._include_misc..r,)r+r.r/raÚnewrr0rrss(  ÿÿþ ÿzDistribution._include_misccKs@| ¡D]2\}}t|d|dƒ}|r.||ƒq| ||¡qdS)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)rQr r/)r+r•r‡rˆÚexcluderrrr2Šs  zDistribution.excludecCs,t|tƒstd|fƒ‚tt|j|ƒƒdS)Nz.packages: setting must be a list or tuple (%r))rdr-r rerÆr%)r+r"rrrÚ_exclude_packages¡s  ÿzDistribution._exclude_packagesc Cs¬|jj|_|jj|_|d}| d¡}||vrf||\}}||=ddl}| |d¡|dd…<|d}q&t |||¡}| |¡} t | ddƒr¨d|f| |¡d<|dur¨gS|S)NrÚaliasesTrZcommand_consumes_argumentsú command lineÚargs) Ú __class__Zglobal_optionsrëréÚshlexr?r¥Ú_parse_command_optsrr ) r+rír6rr4rñròr8ÚnargsZ cmd_classrrrr9¨s"       z Distribution._parse_command_optsc CsÂi}|j ¡D]®\}}| ¡D]œ\}\}}|dkr4q| dd¡}|dkrž| |¡}|j ¡}| t|diƒ¡| ¡D]\} } | |krv| }d}qªqvtdƒ‚n |dkrªd}||  |i¡|<qq|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. r5rÞrÝrrëNzShouldn't be able to get herer) rêrQrEZget_command_objrëÚcopyÚupdater r^r¤) r+ÚdÚcmdZoptsrðrñrFZcmdobjrõÚnegÚposrrrÚget_cmdline_optionsÂs(     z Distribution.get_cmdline_optionsccsv|jpdD] }|Vq |jpdD] }|Vq |jp4dD]:}t|tƒrN|\}}n|j}| d¡rj|dd…}|Vq6dS)z@Yield all packages, modules, and extension names in distributionrÚmoduleNiúÿÿÿ)r"r#r$rdrfr.rÐ)r+ÚpkgrBÚextr.Z buildinforrrr&ês    z$Distribution.iter_distribution_namesc CsÞddl}|jrt ||¡St|jtjƒs4t ||¡S|jj  ¡dvrPt ||¡S|jj}|jj }|j dkrndppd}|jj }t |j  ¡d|||¡|_z(t ||¡Wt |j  ¡||||¡|_St |j  ¡||||¡|_0dS)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)rÚÚutf8Úwin32rCrÚ)râZ help_commandsr¥Úhandle_display_optionsrdÚstdoutræÚ TextIOWrapperrÛr�Úerrorsr<Úline_bufferingÚdetach)r+Z option_orderrârÛrJÚnewlinerKrrrrGüs2   ÿ ÿþÿÿz#Distribution.handle_display_options)N)N)N)NF),rÜÚ __module__Ú __qualname__Ú__doc__r€rZ OrderedSetrœr”r–r¦Ú staticmethodrªr«r¬r¸r»r¹rÇrÎrÌrórörørürrr rrûrrrrr%rjr/rr2r3r9rAr&rGrrrrr]s\4û "    B /     (c@seZdZdZdS)rzrClass for warning about deprecations in dist in setuptools. Not ignored by default, unlike DeprecationWarning.N)rÜrNrOrPrrrrrsrccsdtƒ}|j}|dur8t |j|¡D]}||ƒ|Vq"n(|D]"}||ƒ}||vr<||ƒ|Vqsr              7 I   G