/opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__
NameSizeModeActions
compat.cpython-311.pyc524130644editdlrm
database.cpython-311.pyc721940644editdlrm
index.cpython-311.pyc266750644editdlrm
locators.cpython-311.pyc658000644editdlrm
manifest.cpython-311.pyc170250644editdlrm
markers.cpython-311.pyc85590644editdlrm
metadata.cpython-311.pyc474400644editdlrm
resources.cpython-311.pyc190010644editdlrm
scripts.cpython-311.pyc212530644editdlrm
util.cpython-311.pyc982040644editdlrm
version.cpython-311.pyc348230644editdlrm
wheel.cpython-311.pyc594860644editdlrm
__init__.cpython-311.pyc14760644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/distlib/__pycache__/database.cpython-311.pyc (72194B)
§ Ôê¸Ë±Ö¥ãóò—dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z mZddlmZddlmZmZddlmZmZmZmZdd lmZmZmZmZmZmZm Z gd ¢Z!ej"e#¦«Z$d Z%d Z&d eddde%dfZ'dZ(Gd„de)¦«Z*Gd„de)¦«Z+Gd„de)¦«Z,Gd„de,¦«Z-Gd„de-¦«Z.Gd„de-¦«Z/e.Z0e/Z1Gd„d e)¦«Z2d&d"„Z3d#„Z4d$„Z5d%„Z6dS)'zPEP 376 implementation.é)Úunicode_literalsNé)ÚDistlibExceptionÚ resources)ÚStringIO)Ú get_schemeÚUnsupportedVersionError)ÚMetadataÚMETADATA_FILENAMEÚWHEEL_METADATA_FILENAMEÚLEGACY_METADATA_FILENAME)Úparse_requirementÚcached_propertyÚparse_name_and_versionÚ read_exportsÚ write_exportsÚ CSVReaderÚ CSVWriter)Ú DistributionÚBaseInstalledDistributionÚInstalledDistributionÚEggInfoDistributionÚDistributionPathzpydist-exports.jsonzpydist-commands.jsonÚ INSTALLERÚRECORDÚ REQUESTEDÚ RESOURCESÚSHAREDz .dist-infocó$—eZdZdZd„Zd„Zd„ZdS)Ú_CachezL A simple cache mapping names and .dist-info paths to distributions có0—i|_i|_d|_dS)zZ Initialise an instance. There is normally one for each DistributionPath. FN)ÚnameÚpathÚ generated©Úselfs úb/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/distlib/database.pyÚ__init__z_Cache.__init__1s€ðˆŒ ؈Œ ؈Œˆˆócóx—|j ¦«|j ¦«d|_dS)zC Clear the cache, setting it to its initial state. FN)r"Úclearr#r$r%s r'r+z _Cache.clear9s3€ð Œ �ŠÑÔÐØ Œ �ŠÑÔÐØˆŒˆˆr)cóª—|j|jvrD||j|j<|j |jg¦« |¦«dSdS)z` Add a distribution to the cache. :param dist: The distribution to add. N)r#r"Ú setdefaultÚkeyÚappend©r&Údists r'Úaddz _Cache.addAsW€ð Œ9˜DœIÐ %Ð %Ø#'ˆDŒI�d”iÑ Ø ŒI× Ò  ¤¨2Ñ .Ô .× 5Ò 5°dÑ ;Ô ;Ð ;Ð ;Ð ;ð &Ð %r)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r(r+r2©r)r'r r ,sK€€€€€ððððððððð<ð<ð<ð<ðr+r?r%s r'Ú clear_cachezDistributionPath.clear_cachels2€ð Œ ×ÒÑÔÐØ Œ×ÒÑÔÐÐÐr)c#óØK—t¦«}|jD�]P}tj|¦«}|€Œ| d¦«}|r|jsŒ9t |j¦«}|D�]ÿ}| |¦«}|r |j|vrŒ$ |j�r| t¦«rëtttg}|D]0}tj||¦«} | | ¦«} | rnŒ1Œ�tj|  ¦«¦«5} t%| d¬¦«} ddd¦«n #1swxYwYt& d|j¦«| |j¦«t-|j| |¬¦«V—nm|jrf| d¦«rQt& d|j¦«| |j¦«t1|j|¦«V—�Œ¡#t2$rS} d}t& ||j| ¦«d dl}| ||j| fzd ¬ ¦«Yd} ~ �Œùd} ~ wwxYw�ŒRdS) zD Yield .dist-info and/or .egg(-info) distributions. NÚÚlegacy©ÚfileobjÚschemezFound %s)ÚmetadataÚenv)ú .egg-infoú.eggzBUnable to read distribution at %s, perhaps due to bad metadata: %sré)Ú stacklevel)Úsetr#rÚfinder_for_pathÚfindÚ is_containerÚsortedr<ÚendswithÚ DISTINFO_EXTr r r Ú posixpathÚjoinÚ contextlibÚclosingÚ as_streamr ÚloggerÚdebugr2Únew_dist_classr=Úold_dist_classÚ ExceptionÚwarningÚwarningsÚwarn)r&Úseenr#ÚfinderÚrÚrsetÚentryÚpossible_filenamesÚmetadata_filenameÚ metadata_pathÚpydistÚstreamrRÚeÚmsgrjs r'Ú_yield_distributionsz%DistributionPath._yield_distributionsssèè€õ‰uŒuˆØ”Ið, Cñ, CˆDÝÔ.¨tÑ4Ô4ˆF؈~ØØ— ’ ˜B‘”ˆAØð ˜AœNð ØÝ˜!œ+Ñ&Ô&ˆDØð$ Cñ$ C�Ø—K’K Ñ&Ô&�Øð˜AœF d˜N˜NØð CØÔ)ñ;¨e¯nªn½\Ñ.JÔ.Jð;å-Õ/FÝ4ð.Ð*ð2Dð%ð%Ð-Ý,5¬NØ %Ð'8ñ-:ô-:˜Mà%+§[¢[°Ñ%?Ô%?˜FØ%ð&Ø % ð&ð%å'Ô/°×0@Ò0@Ñ0BÔ0BÑCÔCðAÀvÝ'/¸Ø7?ð(Añ(Aô(A˜HðAðAðAñAôAðAðAðAðAðAðAøøøðAðAðAðAõŸ š  Z°´Ñ8Ô8Ð8ØŸš ¤Ñ(Ô(Ð(Ý,¨Q¬VØ6>Ø15ð7ñ7ô7ð7ð7ð7ð7ðÔ*ð;¨u¯~ª~Ø1ñ03ô03ð;åŸ š  Z°´Ñ8Ô8Ð8ØŸš ¤Ñ(Ô(Ð(Ý,¨Q¬V°TÑ:Ô:Ð:Ð:Ð:ùøÝ ðCðCðCØ^�CÝ—N’N 3¨¬°Ñ2Ô2Ð2Ø#�O�O�OØ—M’M #¨¬°¨ Ñ"3À�MÑBÔBÐBÐBÐBÐBÐBÑBøøøøð CøøøñA$ Cð, Cð, CsE A)HÃ6&HÄD:Ä. HÄ:D> Ä>HÅD> ÅCHÈ I%ÈAI É I%cóR—|jj }|jo |jj }|s|r| ¦«D]L}t |t ¦«r|j |¦«Œ2|j |¦«ŒM|r d|j_|rd|j_dSdSdS)zk Scan the path for distributions and populate the cache with those that are found. TN)r>r$r=r?rxÚ isinstancerr2)r&Úgen_distÚgen_eggr1s r'Ú_generate_cachez DistributionPath._generate_cache©sÑ€ð ”{Ô,Ð,ˆØÔ#ÐE¨D¬OÔ,EÐ(EˆØ ð 1�wð 1Ø×1Ò1Ñ3Ô3ð .ð .�ݘdÕ$9Ñ:Ô:ð.Ø”K—O’O DÑ)Ô)Ð)Ð)à”O×'Ò'¨Ñ-Ô-Ð-Ð-àð -Ø(,�” Ô%Øð 1Ø,0�”Ô)Ð)Ð)ð 1ð 1ð 1ð 1r)cól—| dd¦«}d ||g¦«tzS)ao The *name* and *version* parameters are converted into their filename-escaped form, i.e. any ``'-'`` characters are replaced with ``'_'`` other than the one in ``'dist-info'`` and the one separating the name from the version number. :parameter name: is converted to a standard distribution name by replacing any runs of non- alphanumeric characters with a single ``'-'``. :type name: string :parameter version: is converted to a standard version string. Spaces become dots, and all other non-alphanumeric characters (except dots) become dashes, with runs of multiple dashes condensed to a single dash. :type version: string :returns: directory name :rtype: stringú-Ú_)Úreplacer`r^)Úclsr"Úversions r'Údistinfo_dirnamez!DistributionPath.distinfo_dirname¼s2€ð&�|Š|˜C Ñ%Ô%ˆØ�xŠx˜˜w˜Ñ(Ô(­<Ñ7Ð7r)c#ó K—|js| ¦«D]}|V—ŒdS| ¦«|jj ¦«D]}|V—Œ|jr%|jj ¦«D]}|V—ŒdSdS)a5 Provides an iterator that looks for distributions and returns :class:`InstalledDistribution` or :class:`EggInfoDistribution` instances for each one of them. :rtype: iterator of :class:`InstalledDistribution` and :class:`EggInfoDistribution` instances N)r@rxr}r>r#Úvaluesr=r?r0s r'Úget_distributionsz"DistributionPath.get_distributionsÒsÌèè€ðÔ"ð Ø×1Ò1Ñ3Ô3ð ð �Ø� � � � ð ð ð × Ò Ñ "Ô "Ð "àœ Ô(×/Ò/Ñ1Ô1ð ð �Ø� � � � àÔ ð Ø œOÔ0×7Ò7Ñ9Ô9ðð�DØ�J�J�J�Jð ð ððr)có^—d}| ¦«}|js'| ¦«D]}|j|kr|}nŒnh| ¦«||jjvr|jj|d}n-|jr&||jjvr|jj|d}|S)a= Looks for a named distribution on the path. This function only returns the first result found, as no more than one value is expected. If nothing is found, ``None`` is returned. :rtype: :class:`InstalledDistribution`, :class:`EggInfoDistribution` or ``None`` Nr) Úlowerr@rxr.r}r>r"r=r?)r&r"Úresultr1s r'Úget_distributionz!DistributionPath.get_distributionèsÆ€ðˆØ�zŠz‰|Œ|ˆØÔ"ð 7Ø×1Ò1Ñ3Ô3ð ð �Ø”8˜tÒ#Ð#Ø!�FØ�Eð$øð × Ò Ñ "Ô "Ð "à�t”{Ô'Ð'Ð'ØœÔ)¨$Ô/°Ô2��ØÔ"ð 7 t¨t¬Ô/CÐ'CÐ'CØœÔ-¨dÔ3°AÔ6�؈ r)c#ó¾K—d}|�E |j |›d|›d�¦«}n##t$rtd|›d|›�¦«‚wxYw| ¦«D]|}t |d¦«st  d|¦«Œ.|j}|D]D}t|¦«\}}|€ ||kr|V—n#Œ#||kr|  |¦«r|V—nŒEŒ}dS)a Iterates over all distributions to find which distributions provide *name*. If a *version* is provided, it will be used to filter the results. This function only returns the first result found, since no more than one values are expected. If the directory is not found, returns ``None``. :parameter version: a version specifier that indicates the version required, conforming to the format in ``PEP-345`` :type name: string :type version: string Nú (ú)zinvalid name or version: ú, ÚprovideszNo "provides": %s) rAÚmatcherÚ ValueErrorrr‡Úhasattrrdrer�rÚmatch) r&r"rƒr‘r1ÚprovidedÚpÚp_nameÚp_vers r'Úprovides_distributionz&DistributionPath.provides_distributionsBèè€ðˆØ Ð ð 8Øœ,×.Ò.¸D¸D¸DÀ'À'À'Ð/JÑKÔK��øÝð 8ð 8ð 8Ý&Ð&Ø(,¨¨¨g¨gð(7ñ8ô8ð8ð 8øøøð×*Ò*Ñ,Ô,ð "ð "ˆDõ˜4 Ñ,Ô,ð "Ý— ’ Ð0°$Ñ7Ô7Ð7Ð7àœ=�à!ð "ð "�AÝ$:¸1Ñ$=Ô$=‘M�F˜EØ�Ø! Tš>˜>Ø"&˜J˜J˜JØ!˜Eð*ð" Tš>˜>¨g¯mªm¸EÑ.BÔ.B˜>Ø"&˜J˜J˜JØ!˜Eøøð# "ð "s ˆ )© A có~—| |¦«}|€td|z¦«‚| |¦«S)z5 Return the path to a resource file. Nzno distribution named %r found)r‹Ú LookupErrorÚget_resource_path)r&r"Ú relative_pathr1s r'Ú get_file_pathzDistributionPath.get_file_path+sD€ð×$Ò$ TÑ*Ô*ˆØ ˆ<ÝÐ>ÀÑEÑFÔFÐ FØ×%Ò% mÑ4Ô4Ð4r)c#ó¶K—| ¦«D]A}|j}||vr4||}|�||vr ||V—Œ&| ¦«D]}|V—ŒŒBdS)zÙ Return all of the exported entries in a particular category. :param category: The category to search for entries. :param name: If specified, only entries with that name are returned. N)r‡Úexportsr†)r&Úcategoryr"r1rnÚdÚvs r'Úget_exported_entriesz%DistributionPath.get_exported_entries4s†èè€ð×*Ò*Ñ,Ô,ð ð ˆDØ” ˆAؘ1ˆ}ˆ}Ø�h”K�ØÐ#ؘq�y�yØ œg˜ ˜ ˜ øàŸXšX™ZœZð ð ˜Ø˜˜˜˜øð ð r))NFrD)r3r4r5r6r(rFrIÚpropertyÚ cache_enabledrKrxr}Ú classmethodr„r‡r‹r™ržr¤r7r)r'rrKs€€€€€ððð-ð-ð-ð-ð(#ð#ð#ð$ð$ð$ð�HÐ/Ð1CÑDÔD€Mð ð ð ð4Cð4Cð4Cðl1ð1ð1ð&ð8ð8ñ„[ð8ð*ððð,ððð4'"ð'"ð'"ð'"ðR5ð5ð5ð ð ð ð ð ð r)rcóö—eZdZdZdZ dZ d„Zed„¦«ZeZ ed„¦«Z ed„¦«Z d„Z ed„¦«Z ed „¦«Zed „¦«Zed „¦«Zed „¦«Zd „Zd„Zd„Zd„ZdS)rzª A base class for distributions, whether installed or from indexes. Either way, it must have some metadata, so that's all that's needed for construction. Fcóì—||_|j|_|j ¦«|_|j|_d|_d|_d|_d|_t¦«|_ i|_ dS)zŠ Initialise an instance. :param metadata: The instance of :class:`Metadata` describing this distribution. N) rRr"r‰r.rƒÚlocatorÚdigestÚextrasÚcontextrXÚ download_urlsÚdigests)r&rRs r'r(zDistribution.__init__Ysd€ð !ˆŒ Ø”MˆŒ Ø”9—?’?Ñ$Ô$ˆŒØÔ'ˆŒ ؈Œ ؈Œ ؈Œ ؈Œ Ý ™UœUˆÔ؈Œ ˆ ˆ r)có—|jjS)zH The source archive download URL for this distribution. )rRÚ source_urlr%s r'r±zDistribution.source_urljs€ð Œ}Ô'Ð'r)có&—|j›d|j›d�S)zX A utility property which displays the name and version in parentheses. r�rŽ©r"rƒr%s r'Úname_and_versionzDistribution.name_and_versionss€ð !œI˜I˜I t¤| | |Ð4Ð4r)cót—|jj}|j›d|j›d�}||vr| |¦«|S)z� A set of distribution names and versions provided by this distribution. :return: A set of "name (version)" strings. r�rŽ)rRr�r"rƒr/)r&ÚplistÚss r'r�zDistribution.provideszsA€ð ” Ô&ˆØœ˜˜ D¤L L LÐ 1ˆØ �Eˆ>ˆ>Ø �LŠL˜‰OŒOˆO؈ r)cóÒ—|j}t||¦«}t d|j||¦«t | ||j|j¬¦«¦«S)Nz)%s: got requirements %r from metadata: %r)r¬rS) rRÚgetattrrdrer"rXÚget_requirementsr¬r­)r&Úreq_attrÚmdÚreqtss r'Ú_get_requirementszDistribution._get_requirements†sk€Ø Œ]ˆÝ˜˜HÑ%Ô%ˆÝ� Š Ð@À$Ä)ؘuñ &ô &ð &åØ × Ò  ¨d¬k¸t¼|Ð Ñ LÔ LñNôNð Nr)có,—| d¦«S)NÚ run_requires©r¾r%s r'rÀzDistribution.run_requiresŽó€à×%Ò% nÑ5Ô5Ð5r)có,—| d¦«S)NÚ meta_requiresrÁr%s r'rÄzDistribution.meta_requires’ó€à×%Ò% oÑ6Ô6Ð6r)có,—| d¦«S)NÚbuild_requiresrÁr%s r'rÇzDistribution.build_requires–s€à×%Ò%Ð&6Ñ7Ô7Ð7r)có,—| d¦«S)NÚ test_requiresrÁr%s r'rÉzDistribution.test_requiresšrÅr)có,—| d¦«S)NÚ dev_requiresrÁr%s r'rËzDistribution.dev_requiresžrÂr)cóè—t|¦«}t|jj¦«} | |j¦«}nZ#t $rMt d|¦«|  ¦«d}| |¦«}YnwxYw|j }d}|j D]B}t|¦«\}} ||krŒ |  | ¦«}n#t $rYŒ?wxYw|S)z¿ Say if this instance matches (fulfills) a requirement. :param req: The requirement to match. :rtype req: str :return: True if it matches, else False. ú+could not read version %r - using name onlyrF)rrrRrQr‘Ú requirementr rdriÚsplitr.r�rr”) r&ÚreqrnrQr‘r"rŠr–r—r˜s r'Úmatches_requirementz Distribution.matches_requirement¢s€õ ˜cÑ "Ô "ˆÝ˜DœMÔ0Ñ1Ô1ˆð +Ø—n’n Q¤]Ñ3Ô3ˆGˆGøÝ&ð +ð +ð +å �NŠNÐHÈ#Ñ NÔ NÐ NØ—9’9‘;”;˜q”>ˆDØ—n’n TÑ*Ô*ˆGˆGˆGð  +øøøð Œ{ˆàˆØ”ð ð ˆAÝ2°1Ñ5Ô5‰MˆF�EؘŠ~ˆ~Øð Ø Ÿš uÑ-Ô-�Ø�øÝ*ð ð ð Ø�ð øøøàˆ s$ªAÁABÂBà C"Ã" C/Ã.C/cóV—|jr d|jz}nd}d|j›d|j›d|›d�S)zC Return a textual representation of this instance, z [%s]rMz)r±r"rƒ)r&Úsuffixs r'Ú__repr__zDistribution.__repr__Ãs?€ð Œ?ð Ø˜tœÑ.ˆFˆFàˆFøØ-1¬Y¨Y¨Y¸¼ ¸ ¸ ÀfÀfÀfÐMÐMr)có¨—t|¦«t|¦«urd}n0|j|jko|j|jko|j|jk}|S)a< See if this distribution is the same as another. :param other: The distribution to compare with. To be equal to one another. distributions must have the same type, name, version and source_url. :return: True if it is the same, else False. F)Útyper"rƒr±)r&ÚotherrŠs r'Ú__eq__zDistribution.__eq__ÍsZ€õ �‰;Œ;�d 4™jœjÐ (Ð (؈FˆFà”i 5¤:Ò-ð>°$´,À%Ä-Ò2Oð>Øœ/¨UÔ-=Ò=ð àˆ r)có~—t|j¦«t|j¦«zt|j¦«zS)zH Compute hash in a way which matches the equality test. )Úhashr"rƒr±r%s r'Ú__hash__zDistribution.__hash__Üs0€õ�D”I‰Œ¥ d¤lÑ!3Ô!3Ñ3µd¸4¼?Ñ6KÔ6KÑKÐKr)N)r3r4r5r6Úbuild_time_dependencyÚ requestedr(r¥r±Ú download_urlr´r�r¾rÀrÄrÇrÉrËrÑrÕrÙrÜr7r)r'rrGsz€€€€€ððð "Ððð €Ið5ðððð"ð(ð(ñ„Xð(ð €Là ð5ð5ñ„Xð5ð ð ð ñ„Xð ðNðNðNðð6ð6ñ„Xð6ðð7ð7ñ„Xð7ðð8ð8ñ„Xð8ðð7ð7ñ„Xð7ðð6ð6ñ„Xð6ððððBNðNðNð ð ð ðLðLðLðLðLr)rcó0‡—eZdZdZdZdˆfd„ Zdd„ZˆxZS)rz] This is the base class for installed distributions (whether PEP 376 or legacy). Ncót•—tt|¦« |¦«||_||_dS)a Initialise an instance. :param metadata: An instance of :class:`Metadata` which describes the distribution. This will normally have been initialised from a metadata file in the ``path``. :param path: The path of the ``.dist-info`` or ``.egg-info`` directory for the distribution. :param env: This is normally the :class:`DistributionPath` instance where this distribution was found. N)Úsuperrr(r#Ú dist_path)r&rRr#rSÚ __class__s €r'r(z"BaseInstalledDistribution.__init__ës6ø€õ Õ'¨Ñ.Ô.×7Ò7¸ÑAÔAÐA؈Œ ؈Œˆˆr)có.—|€|j}|€tj}d}ntt|¦«}d|jz}||¦« ¦«}t j|¦« d¦« d¦«}|›|›�S)a” Get the hash of some data, using a particular hash algorithm, if specified. :param data: The data to be hashed. :type data: bytes :param hasher: The name of a hash implementation, supported by hashlib, or ``None``. Examples of valid values are ``'sha1'``, ``'sha224'``, ``'sha384'``, '``sha256'``, ``'md5'`` and ``'sha512'``. If no hasher is specified, the ``hasher`` attribute of the :class:`InstalledDistribution` instance is used. If the hasher is determined to be ``None``, MD5 is used as the hashing algorithm. :returns: The hash of the data. If a hasher was explicitly specified, the returned hash will be prefixed with the specified hasher followed by '='. :rtype: str NrMz%s=ó=Úascii) ÚhasherÚhashlibÚmd5r¹r«Úbase64Úurlsafe_b64encodeÚrstripÚdecode)r&ÚdatarèÚprefixr«s r'Úget_hashz"BaseInstalledDistribution.get_hashús’€ð& ˆ>Ø”[ˆFØ ˆ>Ý”[ˆF؈FˆFå�W fÑ-Ô-ˆFؘTœ[Ñ(ˆFØ�˜‘”×$Ò$Ñ&Ô&ˆÝÔ)¨&Ñ1Ô1×8Ò8¸Ñ>Ô>×EÒEÀgÑNÔNˆØ˜  Ð(Ð(r)rD)r3r4r5r6rèr(rñÚ __classcell__©räs@r'rrãsbø€€€€€ððð €Fð ð ð ð ð ð ð)ð)ð)ð)ð)ð)ð)ð)r)rc󺇗eZdZdZdZdˆfd„ Zd„Zd„Zd„Ze d„¦«Z d „Z d „Z d „Z d „Zdd„Zd„Ze d„¦«Zdd„Zd„Zd„Zd„Zd„ZejZˆxZS)ra  Created with the *path* of the ``.dist-info`` directory provided to the constructor. It reads the metadata contained in ``pydist.json`` when it is instantiated., or uses a passed in Metadata instance (useful for when dry-run mode is being used). Úsha256Ncóx•—g|_tj|¦«x|_}|€t d|z¦«‚|r-|jr&||jjvr|jj|j}n¿|€½|  t¦«}|€|  t¦«}|€|  t¦«}|€t dt›d|›�¦«‚tj| ¦«¦«5}t!|d¬¦«}ddd¦«n #1swxYwYt#t$|¦« |||¦«|r!|jr|j |¦«|  d¦«}|du|_t,j |d¦«}t,j |¦«rjt3|d¦«5}| ¦« d ¦«} ddd¦«n #1swxYwY|  ¦«|_dSdS) Nzfinder unavailable for %szno z found in rNrOrú top_level.txtÚrbúutf-8)ÚmodulesrrYrmr’r@r>r#rRrZr r r rarbrcr rârr(r2rÞÚosr`ÚexistsÚopenÚreadrîÚ splitlines) r&r#rRrSrmrnrur–Úfrïräs €r'r(zInstalledDistribution.__init__$s—ø€ØˆŒ Ý(Ô8¸Ñ>Ô>Ð>ˆŒ �fØ ˆ>ÝÐ8¸4Ñ?Ñ@Ô@Ð @Ø ð E�3Ô%ð E¨$°#´*´/Ð*AÐ*AØ”z” tÔ,Ô5ˆHˆHØ Ð Ø— ’ Õ-Ñ.Ô.ˆAàˆyØ—K’KÕ 7Ñ8Ô8�àˆyØ—K’KÕ 8Ñ9Ô9�؈yÝ �jÝ"3Ð"3Ð"3°T°Tð";ñ<ô<ð<åÔ# A§K¢K¡M¤MÑ2Ô2ð E°fÝ#¨F¸8ÐDÑDÔD�ð Eð Eð Eñ Eô Eð Eð Eð Eð Eð Eð Eøøøð Eð Eð Eð Eõ Õ# TÑ*Ô*×3Ò3°H¸dÀCÑHÔHÐHà ð !�3Ô%ð !Ø ŒJ�NŠN˜4Ñ Ô Ð à �KŠK˜ Ñ $Ô $ˆØ $˜ˆŒÝ ŒG�LŠL˜˜Ñ /Ô /ˆÝ Œ7�>Š>˜!Ñ Ô ð -Ý�a˜‘”ð 0 !Ø—v’v‘x”x—’ wÑ/Ô/�ð 0ð 0ð 0ñ 0ô 0ð 0ð 0ð 0ð 0ð 0ð 0øøøð 0ð 0ð 0ð 0àŸ?š?Ñ,Ô,ˆDŒLˆLˆLð -ð -s$Ã=DÄDÄ"DÇ (HÈHÈHcó8—d|j›d|j›d|j›d�S)Nzz6InstalledDistribution._get_records..\s€Ð@Ð@Ð@¨˜tÐ@Ð@Ð@r)éN)Úget_distinfo_resourcerarbrcrÚrangeÚlenr/) r&ÚresultsrnruÚ record_readerÚrowÚmissingr#ÚchecksumÚsizes r'Ú _get_recordsz"InstalledDistribution._get_recordsMsX€ðˆØ × &Ò & xÑ 0Ô 0ˆÝ Ô  § ¢ ¡ ¤ Ñ .Ô .ð ;°&Ý &Ð)Ñ)Ô)ð ;¨]ð)ð;ð;�CØ@Ð@­Uµ3°s±8´8¸QÑ-?Ô-?Ð@Ñ@Ô@�GØ+.°©=Ñ(�D˜( Dð—N’N D¨(°DÐ#9Ñ:Ô:Ð:Ð:ð ;ð ;ð ;ð ;ñ ;ô ;ð ;ð ;ð ;ð ;ð ;ð ;øøøð ;ð ;ð ;ð ;ð ;ð ;ð ;ñ ;ô ;ð ;ð ;ð ;ð ;ð ;ð ;øøøð ;ð ;ð ;ð ;ðˆs6¾CÁAB* CÂ*B. Â.CÂ1B. Â2CÃCÃCcój—i}| t¦«}|r| ¦«}|S)a Return the information exported by this distribution. :return: A dictionary of exports, mapping an export category to a dict of :class:`ExportEntry` instances describing the individual export entries, and keyed by name. )rÚEXPORTS_FILENAMEr)r&rŠrns r'r zInstalledDistribution.exportsds;€ðˆØ × &Ò &Õ'7Ñ 8Ô 8ˆØ ð )Ø×&Ò&Ñ(Ô(ˆF؈ r)cóÜ—i}| t¦«}|rMtj| ¦«¦«5}t |¦«}ddd¦«n #1swxYwY|S)zý Read exports data from a file in .ini format. :return: A dictionary of exports, mapping an export category to a list of :class:`ExportEntry` instances describing the individual export entries. N)rrrarbrcr)r&rŠrnrus r'rz"InstalledDistribution.read_exportsrs¢€ðˆØ × &Ò &Õ'7Ñ 8Ô 8ˆØ ð .ÝÔ# A§K¢K¡M¤MÑ2Ô2ð .°fÝ% fÑ-Ô-�ð .ð .ð .ñ .ô .ð .ð .ð .ð .ð .ð .øøøð .ð .ð .ð .àˆ sÁA!Á!A%Á(A%có¬—| t¦«}t|d¦«5}t||¦«ddd¦«dS#1swxYwYdS)a Write a dictionary of exports to a file in .ini format. :param exports: A dictionary of exports, mapping an export category to a list of :class:`ExportEntry` instances describing the individual export entries. ÚwN)Úget_distinfo_filerrýr)r&r Úrfrs r'rz#InstalledDistribution.write_exports�s—€ð× #Ò #Õ$4Ñ 5Ô 5ˆÝ �"�c‰]Œ]ð &˜aÝ ˜' 1Ñ %Ô %Ð %ð &ð &ð &ñ &ô &ð &ð &ð &ð &ð &ð &ð &øøøð &ð &ð &ð &ð &ð &s«A Á A ÁA cór—| d¦«}tj| ¦«¦«5}t |¬¦«5}|D]'\}}||kr|ccddd¦«cddd¦«SŒ( ddd¦«n #1swxYwYddd¦«n #1swxYwYt d|z¦«‚)aW NOTE: This API may change in the future. Return the absolute path to a resource file with the given relative path. :param relative_path: The path, relative to .dist-info, of the resource of interest. :return: The absolute path where the resource is to be found. rr Nz3no resource file with relative path %r is installed)rrarbrcrÚKeyError)r&r�rnruÚresources_readerÚrelativeÚ destinations r'rœz'InstalledDistribution.get_resource_pathŒs„€ð × &Ò & {Ñ 3Ô 3ˆÝ Ô  § ¢ ¡ ¤ Ñ .Ô .ð +°&Ý &Ð)Ñ)Ô)ð +Ð-=Ø-=ð+ð+Ñ)�H˜kØ =Ò0Ð0Ø*Ð*Ð*ð +ð +ð +ð +ñ +ô +ð +ð +ð +ð +ð +ñ +ô +ð +ð +ð1ð+ð +ð +ð +ñ +ô +ð +ð +ð +ð +ð +ð +øøøð +ð +ð +ð +ð +ð +ð +ñ +ô +ð +ð +ð +ð +ð +ð +øøøð +ð +ð +ð +õ ð&Ø(5ñ6ñ7ô7ð 7sA¼BÁ BÁ BÁ7BÁ9 BÂB  B B  BÂB Â#B c#ó@K—| ¦«D]}|V—ŒdS)zª Iterates over the ``RECORD`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: iterator of (path, hash, size) N)r)r&rŠs r'Úlist_installed_filesz*InstalledDistribution.list_installed_files s8èè€ð×'Ò'Ñ)Ô)ð ð ˆF؈LˆLˆLˆLð ð r)Fcór—tj |d¦«}tj |j¦«}| |¦«}tj |d¦«}| d¦«}t  d|¦«|rdSt|¦«5}|D�]}tj  |¦«s|  d¦«rdx} } nqdtj  |¦«z} t|d¦«5} |  |  ¦«¦«} ddd¦«n #1swxYwY| |¦«s|r5| |¦«r tj ||¦«}| || | f¦«�Œ| |¦«r tj ||¦«}| |ddf¦«ddd¦«n #1swxYwY|S)zÖ Writes the ``RECORD`` file, using the ``paths`` iterable passed in. Any existing ``RECORD`` file is silently overwritten. prefix is used to determine when to write absolute paths. rMrú creating %sN©z.pycz.pyoz%drø)rûr#r`ÚdirnameÚ startswithrrdÚinforÚisdirr]ÚgetsizerýrñrþÚrelpathÚwriterow) r&ÚpathsrðÚdry_runÚbaseÚbase_under_prefixÚ record_pathÚwriterr#Ú hash_valuerÚfps r'Úwrite_installed_filesz+InstalledDistribution.write_installed_filesªsq€õ”—’˜f bÑ)Ô)ˆÝŒw�Š˜tœyÑ)Ô)ˆØ ŸOšO¨FÑ3Ô3ÐÝŒw�|Š|˜D "Ñ%Ô%ˆØ×,Ò,¨XÑ6Ô6ˆ Ý� Š �M ;Ñ/Ô/Ð/Ø ð Ø�4Ý �{Ñ #Ô #ð 3 vØð :ñ :�Ý”7—=’= Ñ&Ô&ð>¨$¯-ª-Ð8HÑ*IÔ*Ið>à(*Ð*�J  à¥"¤'§/¢/°$Ñ"7Ô"7Ñ7�Dݘd DÑ)Ô)ð>¨RØ%)§]¢]°2·7²7±9´9Ñ%=Ô%=˜ ð>ð>ð>ñ>ô>ð>ð>ð>ð>ð>ð>øøøð>ð>ð>ð>à—?’? 4Ñ(Ô(ð7Ð->ð7Ø15·²ÀÑ1HÔ1Hð7åœ7Ÿ?š?¨4°Ñ6Ô6�DØ—’  z°4Ð 8Ñ9Ô9Ð9Ñ9ð×%Ò% dÑ+Ô+ð AÝ œgŸošo¨k¸4Ñ@Ô@� Ø �OŠO˜[¨"¨bÐ1Ñ 2Ô 2Ð 2ð# 3ð 3ð 3ñ 3ô 3ð 3ð 3ð 3ð 3ð 3ð 3øøøð 3ð 3ð 3ð 3ð$Ðs8Â=A1H,Ä.(E"Å H,Å"E& Å&H,Å)E& Å*B6H,È,H0È3H0có¶—g}tj |j¦«}| d¦«}| ¦«D�]‡\}}}tj |¦«s tj ||¦«}||krŒMtj |¦«s| |dddf¦«Œ†tj  |¦«râttj  |¦«¦«}|r ||kr| |d||f¦«Œó|r’d|vr|  dd¦«d}nd }t|d ¦«5} | |  ¦«|¦«} | |kr| |d || f¦«d d d ¦«n #1swxYwY�Œ‰|S) ᨠChecks that the hashes and sizes of the files in ``RECORD`` are matched by the files themselves. Returns a (possibly empty) list of mismatches. Each entry in the mismatch list will be a tuple consisting of the path, 'exists', 'size' or 'hash' according to what didn't match (existence is checked first, then size, then hash), the expected value and the actual value. rrüTFrú=rrNrørÛ)rûr#r+rr'Úisabsr`rür/ÚisfileÚstrr/rÏrýrñrþ) r&Ú mismatchesr4r6r#r8rÚ actual_sizerèrÚ actual_hashs r'Úcheck_installed_filesz+InstalledDistribution.check_installed_filesÍs'€ðˆ ÝŒw�Š˜tœyÑ)Ô)ˆØ×,Ò,¨XÑ6Ô6ˆ Ø&*×&?Ò&?Ñ&AÔ&Að Iñ IÑ "ˆD�*˜dÝ”7—=’= Ñ&Ô&ð 0Ý”w—|’| D¨$Ñ/Ô/�Ø�{Ò"Ð"ØÝ”7—>’> $Ñ'Ô'ð IØ×!Ò! 4¨°4¸Ð"?Ñ@Ô@Ð@Ð@Ý”—’ Ñ%Ô%ð IÝ!¥"¤'§/¢/°$Ñ"7Ô"7Ñ8Ô8� Øð I˜K¨4Ò/Ð/Ø×%Ò% t¨V°T¸;Ð&GÑHÔHÐHÐHØð IؘjÐ(Ð(Ø!+×!1Ò!1°#°qÑ!9Ô!9¸!Ô!<˜˜à!%˜å˜d DÑ)Ô)ðI¨QØ&*§m¢m°A·F²F±H´H¸fÑ&EÔ&E˜ Ø&¨*Ò4Ð4Ø&×-Ò-Ø!% v¨z¸;Ð GñIôIðIðIðIðIñIôIðIðIðIðIðIðIøøøðIðIðIðIùð ÐsÅ8AG Ç G ÇG cóâ—i}tj |jd¦«}tj |¦«r¨t j|dd¬¦«5}| ¦« ¦«}ddd¦«n #1swxYwY|D]P}| dd¦«\}}|dkr*|  |g¦«  |¦«ŒK|||<ŒQ|S) a  A dictionary of shared locations whose keys are in the set 'prefix', 'purelib', 'platlib', 'scripts', 'headers', 'data' and 'namespace'. The corresponding value is the absolute path of that category for this distribution, and takes into account any paths selected by the user at installation time (e.g. via command-line arguments). In the case of the 'namespace' key, this would be a list of absolute paths for the roots of namespace packages in this distribution. The first time this property is accessed, the relevant information is read from the SHARED file in the .dist-info directory. rrnrù©ÚencodingNr=rÚ namespace) rûr#r`r?ÚcodecsrýrþrÿrÏr-r/)r&rŠÚ shared_pathrÚlinesÚliner.rHs r'Úshared_locationsz&InstalledDistribution.shared_locationsñs €ðˆÝ”g—l’l 4¤9¨hÑ7Ô7ˆ Ý Œ7�>Š>˜+Ñ &Ô &ð (Ý”˜[¨#¸Ð@Ñ@Ô@ð .ÀAØŸš™œ×+Ò+Ñ-Ô-�ð .ð .ð .ñ .ô .ð .ð .ð .ð .ð .ð .øøøð .ð .ð .ð .àð (ð (�Ø!ŸZšZ¨¨QÑ/Ô/‘ ��Uؘ+Ò%Ð%Ø×%Ò% c¨2Ñ.Ô.×5Ò5°eÑ<Ô<Ð<Ð<à"'�F˜3‘K�K؈ sÁ'BÂBÂBcó:—tj |jd¦«}t d|¦«|rdSg}dD]I}||}tj ||¦«r| |›d|›�¦«ŒJ| dd¦«D]}| d|z¦«Œtj |d d ¬ ¦«5}|  d  |¦«¦«ddd¦«n #1swxYwY|S) aa Write shared location information to the SHARED file in .dist-info. :param paths: A dictionary as described in the documentation for :meth:`shared_locations`. :param dry_run: If True, the action is logged but no file is actually written. :return: The path of the file written to. rr)N)rðÚlibÚheadersÚscriptsrïr=rHr7z namespace=%srrùrFú ) rûr#r`rdr-r.r/ÚgetrIrýÚwrite) r&r2r3rJrKr.r#Únsrs r'Úwrite_shared_locationsz,InstalledDistribution.write_shared_locations sU€õ”g—l’l 4¤9¨hÑ7Ô7ˆ Ý� Š �M ;Ñ/Ô/Ð/Ø ð Ø�4؈ØBð 4ð 4ˆCؘ”:ˆDÝŒw�}Š}˜U 3œZÑ(Ô(ð 4Ø— ’ ¨¨¨¨T¨TÐ2Ñ3Ô3Ð3øØ—)’)˜K¨Ñ,Ô,ð .ð .ˆBØ �LŠL˜¨"Ñ,Ñ -Ô -Ð -Ð -å Œ[˜ c°GÐ <Ñ <Ô <ð &ÀØ �GŠG�D—I’I˜eÑ$Ô$Ñ %Ô %Ð %ð &ð &ð &ñ &ô &ð &ð &ð &ð &ð &ð &øøøð &ð &ð &ð &àÐsÃ)DÄDÄDcóÖ—|tvrtd|›d|j›�¦«‚tj|j¦«}|€td|jz¦«‚| |¦«S)Nú#invalid path for a dist-info file: rzUnable to get a finder for %s)Ú DIST_FILESrr#rrYrZ)r&r#rms r'rz+InstalledDistribution.get_distinfo_resource%sw€Ø •zÐ !Ð !Ý"Ð"Ø15°°°t´y°yð$BñCôCð CåÔ*¨4¬9Ñ5Ô5ˆØ ˆ>Ý"Ð#BÀTÄYÑ#NÑOÔOÐ OØ�{Š{˜4Ñ Ô Ð r)c óΗ| tj¦«dkr{| tj¦«dd…\}}||j tj¦«dkr#t d|›d|j›d|j›d�¦«‚|tvrt d |›d |j›�¦«‚tj  |j|¦«S) aû Returns a path located under the ``.dist-info`` directory. Returns a string representing the path. :parameter path: a ``'/'``-separated path relative to the ``.dist-info`` directory or an absolute path; If *path* is an absolute path and doesn't start with the ``.dist-info`` directory path, a :class:`DistlibException` is raised :type path: str :rtype: str réþÿÿÿNéÿÿÿÿzdist-info file z does not belong to the rz distributionrXr) rZrûÚseprÏr#rr"rƒrYr`)r&r#r„s r'rz'InstalledDistribution.get_distinfo_file.sæ€ð �9Š9•R”VÑ Ô  Ò !Ð !à%)§Z¢Zµ´Ñ%7Ô%7¸¸¸Ô%<Ñ "Ð ˜dØ 4¤9§?¢?µ2´6Ñ#:Ô#:¸2Ô#>Ò>Ð>Ý&Ð&à&* d d¨D¬I¨I¨I°t´|°|°|ðEñFôFðFð •zÐ !Ð !Ý"Ð"Ø15°°°t´y°yð$BñCôCð CõŒw�|Š|˜DœI tÑ,Ô,Ð,r)c#óBK—tj |j¦«}| ¦«D]c\}}}tj |¦«s tj ||¦«}| |j¦«r|V—ŒddS)zó Iterates over the ``RECORD`` entries and returns paths for each line if the path is pointing to a file located in the ``.dist-info`` directory or one of its subdirectories. :returns: iterator of paths N)rûr#r+rr>r`r,)r&r4r#rrs r'Úlist_distinfo_filesz)InstalledDistribution.list_distinfo_filesKs”èè€õŒw�Š˜tœyÑ)Ô)ˆØ$(×$5Ò$5Ñ$7Ô$7ð ð Ñ ˆD�(˜Då”7—=’= Ñ&Ô&ð 0Ý”w—|’| D¨$Ñ/Ô/�Ø�Š˜tœyÑ)Ô)ð Ø� � � øð  ð r)cóL—t|t¦«o|j|jkSrD)rzrr#©r&rØs r'rÙzInstalledDistribution.__eq__[s&€Ý˜5Õ"7Ñ8Ô8ð,Ø”I ¤Ò+ð -r))NN©F)r3r4r5r6rèr(rÕrrrr rrrœr'r:rDrMrVrrr_rÙÚobjectrÜròrós@r'rrs`ø€€€€€ððð€Fð -ð -ð -ð -ð -ð -ðD0ð0ð0ð3ð3ð3ðððð.ð ð ñ„_ð ð ð ð ð &ð &ð &ð7ð7ð7ð(ððð!ð!ð!ð!ðF"ð"ð"ðHððñ„_ðð4ðððð2!ð!ð!ð-ð-ð-ð:ððð -ð-ð-𠌀H€H€H€H€Hr)rcóf‡—eZdZdZdZiZd ˆfd„ Zd„Zd„Zd„Z d„Z d „Z dd „Z d „Z ejZˆxZS)raCreated with the *path* of the ``.egg-info`` directory or file provided to the constructor. It reads the metadata contained in the file itself, or if the given path happens to be a directory, the metadata is read from the file ``PKG-INFO`` under that directory.TNc󨕗d„}||_||_|rD|jr=||jjvr/|jj|j}|||j|j¦«nO| |¦«}|||j|j¦«|r!|jr|j |¦«tt|¦«  |||¦«dS)NcóT—||_| ¦«|_||_dSrD)r"r‰r.rƒ)r·Únr£s r'Úset_name_and_versionz:EggInfoDistribution.__init__..set_name_and_versionns#€ØˆAŒFØ—G’G‘I”IˆAŒE؈AŒIˆIˆIr)) r#rãr@r?rRr"rƒÚ _get_metadatar2rârr()r&r#rSrhrRräs €r'r(zEggInfoDistribution.__init__lsòø€ð ð ð 𠈌 ؈ŒØ ð )�3Ô%ð )¨$°#´.Ô2EÐ*EÐ*EØ”~Ô*¨4Ô0Ô9ˆHØ Ð   x¤}°hÔ6FÑ GÔ GÐ GÐ Gà×)Ò)¨$Ñ/Ô/ˆHð !Ð   x¤}°hÔ6FÑ GÔ GÐ Gàð )�sÔ)ð )Ø”×"Ò" 4Ñ(Ô(Ð(Ý Õ! 4Ñ(Ô(×1Ò1°(¸DÀ#ÑFÔFÐFÐFÐFr)có4‡—d}d„Šˆfd„}dx}}| d¦«�r†tj |¦«ržtj |d¦«}tj |d¦«}t |d¬¦«}tj |d¦«} tj |d ¦«}|| ¦«}�nŒt j|¦«} t|   d ¦«  d ¦«¦«} t | d¬ ¦«} |   d ¦«} |   d¦«  d¦«}‰|   d¦«¦«}nÕ#t$rd}YnÇwxYw| d¦«rœtj |¦«rktj |d¦«} || ¦«}tj |d¦«}tj |d ¦«}t |d¬¦«}ntd|z¦«‚|r|  |¦«|€p|�ntj |¦«rOt|d¦«5} |  ¦«  d¦«}ddd¦«n #1swxYwY|sg}n| ¦«}||_|S)Ncó:—g}| ¦«}|D�]}| ¦«}|sŒ| d¦«rt d|¦«n¶t |¦«}|st d|¦«Œy|jrt d¦«|js| |j ¦«Œ¼d  d„|jD¦«¦«}| |j ›d|›d�¦«�Œ|S) z’Create a list of dependencies from a requires.txt file. *data*: the contents of a setuptools-produced requires.txt file. ú[z.Unexpected line: quitting requirement scan: %rz#Not recognised as a requirement: %rz4extra requirements in requires.txt are not supportedr�c3ó K—|] }d|zV—Œ dS)z%s%sNr7)r Úcs r'ú zQEggInfoDistribution._get_metadata..parse_requires_data..Ÿs&èè€Ð$GÐ$G°A V¨a¡ZÐ$GÐ$GÐ$GÐ$GÐ$GÐ$Gr)r�rŽ) rÿÚstripr,rdrirr¬Ú constraintsr/r"r`)rïÚreqsrKrLrnÚconss r'Úparse_requires_dataz>EggInfoDistribution._get_metadata..parse_requires_data…s4€ð ˆDØ—O’OÑ%Ô%ˆEØð <ñ <�Ø—z’z‘|”|�àðØØ—?’? 3Ñ'Ô'ðÝ—N’NØHÈ$ñPôPðPà�EÝ% dÑ+Ô+�ØðÝ—N’NÐ#HÈ$ÑOÔOÐOØØ”8ð4Ý—N’Nð$3ñ4ô4ð4à”}ð<Ø—K’K ¤Ñ'Ô'Ð'Ð'àŸ9š9Ð$GÐ$G¸¼Ð$GÑ$GÔ$GÑGÔG�DØ—K’K¨Q¬V¨V¨V°T°T°TÐ :Ñ;Ô;Ð;Ñ;؈Kr)cóÆ•—g} tj|dd¦«5}‰| ¦«¦«}ddd¦«n #1swxYwYn#t$rYnwxYw|S)z’Create a list of dependencies from a requires.txt file. *req_path*: the path to a setuptools-produced requires.txt file. rnrùN)rIrýrþÚIOError)Úreq_pathrrr9rts €r'Úparse_requires_pathz>EggInfoDistribution._get_metadata..parse_requires_path£s³ø€ð ˆDð Ý”[ ¨3°Ñ8Ô8ð:¸BØ.Ð.¨r¯wªw©y¬yÑ9Ô9�Dð:ð:ð:ñ:ô:ð:ð:ð:ð:ð:ð:øøøð:ð:ð:ð:øøåð ð ð Ø�ð øøøàˆKs3…A›A¹ AÁA Á AÁ A Á AÁ AÁArUzEGG-INFOzPKG-INFOrN)r#rQz requires.txtr÷zEGG-INFO/PKG-INFOÚutf8rOzEGG-INFO/requires.txtzEGG-INFO/top_level.txtrùrTz,path must end with .egg-info or .egg, got %rrø)r]rûr#r.r`r Ú zipimportÚ zipimporterrÚget_datarîrvrÚadd_requirementsrürýrþrÿrú)r&r#ÚrequiresrxÚtl_pathÚtl_datar–Ú meta_pathrRrwÚzipfrPrïrrts @r'riz!EggInfoDistribution._get_metadata‚s>ø€Øˆð ð ð ð< ð ð ð ð ð!Ð ˆ�'Ø �=Š=˜Ñ Ô ñ 4ÝŒw�}Š}˜TÑ"Ô"ð $Ý”G—L’L  zÑ2Ô2�ÝœGŸLšL¨¨JÑ7Ô7� Ý#¨¸8ÐDÑDÔD�Ýœ7Ÿ<š<¨¨>Ñ:Ô:�Ýœ'Ÿ,š, q¨/Ñ:Ô:�Ø.Ð.¨xÑ8Ô8�‘õ!Ô,¨TÑ2Ô2�Ý"Ø—M’MÐ"5Ñ6Ô6×=Ò=¸fÑEÔEñGôG�å#¨G¸HÐEÑEÔE�ð$ØŸ=š=Ð)@ÑAÔA�DØ"ŸmšmÐ,DÑEÔE×LÒLØñ!ô!�Gà2Ð2°4·;²;¸wÑ3GÔ3GÑHÔH�H�HøÝð$ð$ð$Ø#�H�H�Hð$øøøà �]Š]˜;Ñ 'Ô 'ð 4ÝŒw�}Š}˜TÑ"Ô"ð >Ýœ7Ÿ<š<¨¨nÑ=Ô=�Ø.Ð.¨xÑ8Ô8�Ý”w—|’| D¨*Ñ5Ô5�Ýœ'Ÿ,š, t¨_Ñ=Ô=�Ý T°(Ð;Ñ;Ô;ˆHˆHå"ð$,Ø.2ñ$3ñ4ô4ð 4ð ð 0Ø × %Ò % hÑ /Ô /Ð /à ˆ?ØÐ"¥r¤w§~¢~°gÑ'>Ô'>Ð"ݘ' 4Ñ(Ô(ð7¨AØŸfšf™hœhŸošo¨gÑ6Ô6�Gð7ð7ð7ñ7ô7ð7ð7ð7ð7ð7ð7øøøð7ð7ð7ð7àð +؈GˆGà×(Ò(Ñ*Ô*ˆG؈Œ ؈s%Ä>AFÆ F)Æ(F)Ê9(K-Ë-K1Ë4K1có8—d|j›d|j›d|j›d�S)NzŠ>˜+Ñ &Ô &ð EØ"×7Ò7Ñ9Ô9ð Eð E‘ ��a˜Ø˜;Ò&Ð&ØÝ”w—~’~ dÑ+Ô+ðEØ×%Ò% t¨X°t¸UÐ&CÑDÔDÐDøØÐr)c ó—d„}d„}tj |jd¦«}g}tj |¦«�r._md5s`€Ý�T˜4Ñ Ô ˆAð ØŸ&š&™(œ(�à—’‘ ” � � ø�—’‘ ” � � øøøÝ”;˜wÑ'Ô'×1Ò1Ñ3Ô3Ð 3s ’;»Acó4—tj|¦«jSrD)rûÚstatÚst_size)r#s r'Ú_sizez7EggInfoDistribution.list_installed_files.._size s€Ý”7˜4‘=”=Ô(Ð (r)r†rnrùrFzNon-existent file: %sr*N) rûr#r`rürIrýrpÚnormpathrdrir]r.r/)r&rŒr�r6rŠrrLr–s r'r'z(EggInfoDistribution.list_installed_filesús«€ð 4ð 4ð 4ð )ð )ð )õ”g—l’l 4¤9Ð.CÑDÔDˆ ØˆÝ Œ7�>Š>˜+Ñ &Ô &ñ 5Ý”˜[¨#¸Ð@Ñ@Ô@ð >ÀAØð >ð >�DØŸ:š:™<œ<�DÝœ×(Ò(­¬¯ª°d´iÀÑ)FÔ)FÑGÔG�Aõœ7Ÿ>š>¨!Ñ,Ô,ð%ÝŸšÐ'>ÀÑBÔBÐBØŸ:š:Ð&6Ñ7Ô7ð%Ø$åœ7Ÿ=š=¨Ñ+Ô+ð>ØŸ š  q¨$¨$¨q©'¬'°5°5¸±8´8Ð&<Ñ=Ô=Ð=øð >ð >ð >ð >ñ >ô >ð >ð >ð >ð >ð >ð >øøøð >ð >ð >ð >ð �MŠM˜;¨¨dÐ3Ñ 4Ô 4Ð 4؈ sÁ%C5E'Å'E+Å.E+Fc#óK—tj |jd¦«}tj |¦«rÀd}t j|dd¬¦«5}|D]ˆ}| ¦«}|dkrd}Œ|sgtj tj |j|¦«¦«}| |j¦«r |r|V—Œ„|V—Œ‰ ddd¦«dS#1swxYwYdSdS) a  Iterates over the ``installed-files.txt`` entries and returns paths for each line if the path is pointing to a file located in the ``.egg-info`` directory or one of its subdirectories. :parameter absolute: If *absolute* is ``True``, each returned path is transformed into a local absolute path. Otherwise the raw value from ``installed-files.txt`` is returned. :type absolute: boolean :returns: iterator of paths r†TrnrùrFz./FN) rûr#r`rürIrýrpr‘r,)r&Úabsoluter6ÚskiprrLr–s r'r_z'EggInfoDistribution.list_distinfo_files sQèè€õ”g—l’l 4¤9Ð.CÑDÔDˆ Ý Œ7�>Š>˜+Ñ &Ô &ð +؈DÝ”˜[¨#¸Ð@Ñ@Ô@ð +ÀAØð +ð +�DØŸ:š:™<œ<�Dؘt’|�|Ø$˜Ø Øð+ÝœG×,Ò,­R¬W¯\ª\¸$¼)ÀTÑ-JÔ-JÑKÔK˜ØŸ<š<¨¬ Ñ2Ô2ð+Ø'ð+Ø&'    à&*      øð +ð +ð +ð +ñ +ô +ð +ð +ð +ð +ð +ð +ð +øøøð +ð +ð +ð +ð +ð +ð +ð +sÁ B C:Ã:C>ÄC>cóL—t|t¦«o|j|jkSrD)rzrr#ras r'rÙzEggInfoDistribution.__eq__=s&€Ý˜5Õ"5Ñ6Ô6ð,Ø”I ¤Ò+ð -r)rDrb)r3r4r5r6rÞrMr(rirÕrrDr'r_rÙrcrÜròrós@r'rrcsÍø€€€€€ð/ð/ð €IØÐðGðGðGðGðGðGð,\ð\ð\ð|AðAðAð3ð3ð3ðððð&$ð$ð$ðL+ð+ð+ð+ð:-ð-ð-𠌀H€H€H€H€Hr)rcóN—eZdZdZd„Zd„Zdd„Zd„Zd„Zdd „Z dd „Z d „Z d „Z dS)ÚDependencyGraphaù Represents a dependency graph between distributions. The dependency relationships are stored in an ``adjacency_list`` that maps distributions to a list of ``(other, label)`` tuples where ``other`` is a distribution and the edge is labeled with ``label`` (i.e. the version specifier, if such was provided). Also, for more efficient traversal, for every distribution ``x``, a list of predecessors is kept in ``reverse_list[x]``. An edge from distribution ``a`` to distribution ``b`` means that ``a`` depends on ``b``. If any missing dependencies are found, they are stored in ``missing``, which is a dictionary that maps distributions to a list of requirements that were not provided by any other distributions. có0—i|_i|_i|_dSrD)Úadjacency_listÚ reverse_listrr%s r'r(zDependencyGraph.__init__Ys€Ø ˆÔØˆÔØˆŒ ˆ ˆ r)có.—g|j|<g|j|<dS)zÍAdd the *distribution* to the graph. :type distribution: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` N)r™rš)r&Ú distributions r'Úadd_distributionz DependencyGraph.add_distribution^s$€ð -/ˆÔ˜LÑ)Ø*,ˆÔ˜,Ñ'Ð'Ð'r)Ncó¬—|j| ||f¦«||j|vr"|j| |¦«dSdS)ašAdd an edge from distribution *x* to distribution *y* with the given *label*. :type x: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` :type y: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` :type label: ``str`` or ``None`` N)r™r/rš)r&ÚxÚyÚlabels r'Úadd_edgezDependencyGraph.add_edgehsa€ð Ô˜AÔ×%Ò% q¨% jÑ1Ô1Ð1à �DÔ% aÔ(Ð (Ð (Ø Ô ˜aÔ × 'Ò '¨Ñ *Ô *Ð *Ð *Ð *ð )Ð (r)cóš—t d||¦«|j |g¦« |¦«dS)a Add a missing *requirement* for the given *distribution*. :type distribution: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` :type requirement: ``str`` z %s missing %rN)rdrerr-r/)r&rœrÎs r'Ú add_missingzDependencyGraph.add_missingwsF€õ � Š �_ l°KÑ@Ô@Ð@Ø Œ ×Ò  ¨bÑ1Ô1×8Ò8¸ÑEÔEÐEÐEÐEr)có$—|j›d|j›�Srr³r0s r'Ú _repr_distzDependencyGraph._repr_dist‚rr)rcó¢—| |¦«g}|j|D]—\}}| |¦«}|�|›d|›d�}| d|zt|¦«z¦«| ||dz¦«}| d¦«}| |dd…¦«Œ˜d |¦«S)zPrints only a subgraphNz [ú]z rrR)r¦r™r/r@Ú repr_noderÏÚextendr`)r&r1ÚlevelÚoutputrØr¡Ú suboutputÚsubss r'r©zDependencyGraph.repr_node…sÒ€à—/’/ $Ñ'Ô'Ð(ˆØ Ô/°Ô5ð $ð $‰LˆE�5Ø—?’? 5Ñ)Ô)ˆDØÐ Ø$( D D¨%¨%¨%Ð0�Ø �MŠM˜& 5™.­3¨t©9¬9Ñ4Ñ 5Ô 5Ð 5ØŸš u¨e°a©iÑ8Ô8ˆIØ—?’? 4Ñ(Ô(ˆDØ �MŠM˜$˜q˜r˜rœ(Ñ #Ô #Ð #Ð #Ø�yŠy˜Ñ Ô Ð r)Tc óä—g}| d¦«|j ¦«D]‰\}}t|¦«dkr|s| |¦«|D]W\}}|�*| d|j›d|j›d|›d�¦«Œ1| d|j›d|j›d�¦«ŒXŒŠ|sžt|¦«dkr‹| d ¦«| d ¦«| d ¦«|D]4}| d |jz¦«| d ¦«Œ5| d¦«| d¦«dS)a9Writes a DOT output for the graph to the provided file *f*. If *skip_disconnected* is set to ``True``, then all distributions that are not dependent on any other distribution are skipped. :type f: has to support ``file``-like operations :type skip_disconnected: ``bool`` zdigraph dependencies { rNú"z" -> "z " [label="z"] z" zsubgraph disconnected { zlabel = "Disconnected" zbgcolor = red z"%s"rRz} )rTr™Úitemsrr/r")r&rÚskip_disconnectedÚ disconnectedr1ÚadjsrØr¡s r'Úto_dotzDependencyGraph.to_dot’sœ€ðˆ à �ŠÐ*Ñ+Ô+Ð+ØÔ-×3Ò3Ñ5Ô5ð Hð H‰JˆD�$Ý�4‰yŒy˜AŠ~ˆ~Ð&7ˆ~Ø×#Ò# DÑ)Ô)Ð)Ø $ð Hð H‘ ��uØÐ$Ø—G’G�GØ!œY˜Y˜Y¨¬ ¨ ¨ °E°E°Eð;ñ<ô<ð<ð<ð—G’G�G°´ ° ° ¸5¼:¸:¸:ÐFÑGÔGÐGÐGð  Hð !ð ¥S¨Ñ%6Ô%6¸Ò%:Ð%:Ø �GŠGÐ/Ñ 0Ô 0Ð 0Ø �GŠGÐ.Ñ /Ô /Ð /Ø �GŠGÐ%Ñ &Ô &Ð &à$ð ð �Ø—’˜ ¤Ñ*Ñ+Ô+Ð+Ø—’˜‘ ” � � Ø �GŠG�E‰NŒNˆNØ �Š�‰Œˆˆˆr)có‡—g}i}|j ¦«D]\}}|dd…||<Œ gŠt| ¦«¦«dd…D]\}}|s‰ |¦«||=Œ ‰snf| ¦«D]\}}ˆfd„|D¦«||<Œt dd„‰D¦«¦«| ‰¦«Œ´|t| ¦«¦«fS)aa Perform a topological sort of the graph. :return: A tuple, the first element of which is a topologically sorted list of distributions, and the second element of which is a list of distributions that cannot be sorted because they have circular dependencies and so form a cycle. NTcó&•—g|] \}}|‰v¯ ||f‘ŒSr7r7)r r¢rnÚ to_removes €r'rz4DependencyGraph.topological_sort..Ës+ø€ÐGÐGÐG¡t q¨!°A¸YÐ4FÐ4F˜Q ˜FÐ4FÐ4FÐ4Fr)zMoving to result: %scó2—g|]}|j›d|j›d�‘ŒS)r�rŽr³)r r¢s r'rz4DependencyGraph.topological_sort..Ís)€ÐMÐMÐM¸a q¤v v v¨q¬y¨y¨yÐ9ÐMÐMÐMr))r™r±Úlistr/rdrerªÚkeys)r&rŠÚalistÚkr£r¸s @r'Útopological_sortz DependencyGraph.topological_sort²sFø€ðˆàˆØÔ'×-Ò-Ñ/Ô/ð ð ‰DˆAˆqؘ˜˜”tˆE�!‰HˆHð %àˆIݘUŸ[š[™]œ]Ñ+Ô+¨A¨A¨AÔ.ð !ð !‘��1Øð!Ø×$Ò$ QÑ'Ô'Ð'ؘa˜øØð ààŸ š ™ œ ð Hð H‘��1ØGÐGÐGÐG¨qÐGÑGÔG��a‘�Ý �LŠLÐ/ØMÐMÀ9ÐMÑMÔMñ Oô Oð Oà �MŠM˜)Ñ $Ô $Ð $ð %ð •t˜EŸJšJ™LœLÑ)Ô)Ð)Ð)r)có¾—g}|j ¦«D]-\}}| | |¦«¦«Œ.d |¦«S)zRepresentation of the graphrR)r™r±r/r©r`)r&r¬r1r´s r'rÕzDependencyGraph.__repr__Ñs\€àˆØÔ-×3Ò3Ñ5Ô5ð 0ð 0‰JˆD�$Ø �MŠM˜$Ÿ.š.¨Ñ.Ô.Ñ /Ô /Ð /Ð /Ø�yŠy˜Ñ Ô Ð r)rD)r)T) r3r4r5r6r(r�r¢r¤r¦r©rµr¾rÕr7r)r'r—r—Is¸€€€€€ð ð ðððð -ð-ð-ð +ð +ð +ð +ð Fð Fð Fð3ð3ð3ð !ð !ð !ð !ððððð@*ð*ð*ð>!ð!ð!ð!ð!r)r—r:cój—t|¦«}t¦«}i}|D]{}| |¦«|jD]\}t |¦«\}}t  d|||¦«| |g¦« ||f¦«Œ]Œ||D�]}|j |j z|j z|j z}|D]ì} |  | ¦«} nZ#t$rMt  d| ¦«|  ¦«d}|  |¦«} YnwxYw| j}d} ||vrT||D]K\}} |  |¦«} n#t$rd} YnwxYw| r| || | ¦«d} nŒL| s| || ¦«Œí�Œ|S)a6Makes a dependency graph from the given distributions. :parameter dists: a list of distributions :type dists: list of :class:`distutils2.database.InstalledDistribution` and :class:`distutils2.database.EggInfoDistribution` instances :rtype: a :class:`DependencyGraph` instance zAdd to provided: %s, %s, %srÍrFT)rr—r�r�rrdrer-r/rÀrÄrÇrËr‘r rirÏr.r”r¢r¤)ÚdistsrQÚgraphr•r1r–r"rƒr~rÐr‘ÚmatchedÚproviderr”s r'Ú make_graphrÅÙs:€õ˜Ñ Ô €FÝ Ñ Ô €EØ€HððBðBˆØ ×Ò˜tÑ$Ô$Ð$à”ð Bð BˆAÝ2°1Ñ5Ô5‰MˆD�'Ý �LŠLÐ6¸¸gÀtÑ LÔ LÐ LØ × Ò   bÑ )Ô )× 0Ò 0°'¸4°Ñ AÔ AÐ AÐ Að Bð ð-ñ-ˆØÔ%¨Ô(:Ñ:ØÔ)ñ*Ø,0Ô,=ñ>ˆàð -ð -ˆCð /Ø Ÿ.š.¨Ñ-Ô-��øÝ*ð /ð /ð /å—’ÐLØ"ñ$ô$ð$à—y’y‘{”{ 1”~�Ø Ÿ.š.¨Ñ.Ô.���ð  /øøøð”;ˆDàˆGØ�xÐÐØ)1°$¬ð ð Ñ%�G˜Xð&Ø '§ ¢ ¨gÑ 6Ô 6˜˜øÝ2ð&ð&ð&Ø %˜˜˜ð&øøøððØŸš t¨X°sÑ;Ô;Ð;Ø"&˜Ø˜ððð -Ø×!Ò! $¨Ñ,Ô,Ð,øñ3 -ð4 €Ls%ÃCÃAD4Ä3D4ÅE(Å( E7 Å6E7 cóP—||vrtd|jz¦«‚t|¦«}|g}|j|}|rT| ¦«}| |¦«|j|D]}||vr| |¦«Œ|°T| d¦«|S)zÚRecursively generate a list of distributions from *dists* that are dependent on *dist*. :param dists: a list of distributions :param dist: a distribution, member of *dists* for which we are interested ú1given distribution %r is not a member of the listr)rr"rÅršÚpopr/)rÁr1rÂÚdepÚtodor¢Úsuccs r'Úget_dependent_distsrÌsÈ€ð �5ÐÐÝð -Ø/3¬yñ 9ñ:ô:ð :å �uÑ Ô €Eà ˆ&€CØ Ô ˜dÔ #€Dà ð"Ø �HŠH‰JŒJˆØ � Š �1‰ Œ ˆ ØÔ& qÔ)ð "ð "ˆDؘ3ˆˆØ— ’ ˜DÑ!Ô!Ð!øð ð"ð‡G‚GˆA�J„J€JØ €Jr)cóÀ—||vrtd|jz¦«‚t|¦«}t¦«}|j|}td„|D¦«¦«}|r}| ¦«d}| |¦«|j|}|D]<}|d}||vr.||vr*| |¦«| |¦«Œ=|°}|S)aRecursively generate a list of distributions from *dists* that are required by *dist*. :param dists: a list of distributions :param dist: a distribution, member of *dists* for which we are interested in finding the dependencies. rÇc3ó&K—|] }|dV—Œ dS)rNr7)r Úts r'roz%get_required_dists..8s&èè€Ð"Ð"˜ˆq�ŒtÐ"Ð"Ð"Ð"Ð"Ð"r)r)rr"rÅrXr™rÈr2r/) rÁr1rÂrÐrÊrlr¢Ú pred_listÚpreds r'Úget_required_distsrÒ)s€ð �5ÐÐÝð -Ø/3¬yñ 9ñ:ô:ð :å �uÑ Ô €Eå ‰%Œ%€CØ Ô  Ô %€DÝ Ð"Ð"˜TÐ"Ñ"Ô"Ñ "Ô "€Dà ð"Ø �HŠH‰JŒJ�qŒMˆØ �Š�‰ Œ ˆ ØÔ(¨Ô+ˆ Øð "ð "ˆDØ�Q”ˆAؘˆ|ˆ| ¨    Ø—’˜‘ ” � Ø— ’ ˜DÑ!Ô!Ð!øð ð"ð €Jr)c ó’—| dd¦«}tdi|¤Ž}||_||_|pd|_t |¦«S)zO A convenience method for making a dist given just a name and version. ÚsummaryzPlaceholder for summaryr7)rÈr r"rƒrÔr)r"rƒÚkwargsrÔr¼s r'Ú make_distrÖFsT€ð�jŠj˜Ð$=Ñ>Ô>€GÝ Ð Ð �FÐ Ð €BØ€B„GØ€B„JØÐ5Ð5€B„JÝ ˜Ñ Ô Ðr))r:)7r6Ú __future__rrërIraréÚloggingrûr_r;rzrMrrÚcompatrrƒrr rRr r r r ÚutilrrrrrrrÚ__all__Ú getLoggerr3rdrÚCOMMANDS_FILENAMErYr^rcr rrrrrrfrgr—rÅrÌrÒrÖr7r)r'úrÞsjðð Ðà'Ð'Ð'Ð'Ð'Ð'à € € € Ø € € € ØÐÐÐØ€€€Ø€€€Ø € € € ØÐÐÐØ € € € ØÐÐÐà)Ð)Ð)Ð)Ð)Ð)Ð)Ð)ØÐÐÐÐÐØ8Ð8Ð8Ð8Ð8Ð8Ð8Ð8ð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ð1ðFðFðFðFðFðFðFðFðFðFðFðFðFðFðFðFðFðFð ð ð €ð ˆÔ ˜8Ñ $Ô $€à(ÐØ*ÐàÐ,¨h¸ ØÐ+¨Xð7€ ð€ ð<ð<ð<ð<ð<ˆVñ<ô<ð<ð>y ðy ðy ðy ðy �vñy ôy ðy ðxYLðYLðYLðYLðYL�6ñYLôYLðYLðx4)ð4)ð4)ð4)ð4)  ñ4)ô4)ð4)ðnFðFðFðFðFÐ5ñFôFðFðR _ð_ð_ð_ð_Ð3ñ_ô_ð_ðD'€Ø$€ðM!ðM!ðM!ðM!ðM!�fñM!ôM!ðM!ð`3ð3ð3ð3ðlððð4ððð: ð ð ð ð r)