Ë bâtãçãóÊ—dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z mZddlmZddlmZmZddlmZmZmZmZdd lmZmZmZmZmZmZm Z gd ¢Z!ejDe#«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$„Z6y)&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„Zy)Ú_CachezL A simple cache mapping names and .dist-info paths to distributions có.—i|_i|_d|_y)zZ Initialise an instance. There is normally one for each DistributionPath. FN)ÚnameÚpathÚ generated©Úselfs ú5/usr/lib/python3.12/site-packages/distlib/database.pyÚ__init__z_Cache.__init__1s€ðˆŒ ؈Œ ؈�ócóz—|jj«|jj«d|_y)zC Clear the cache, setting it to its initial state. FN)r"Úclearr#r$r%s r'r+z _Cache.clear9s'€ð � ‰ �‰ÔØ � ‰ �‰Ô؈�r)cóÒ—|j|jvrO||j|j<|jj|jg«j |«yy)z` Add a distribution to the cache. :param dist: The distribution to add. N)r#r"Ú setdefaultÚkeyÚappend©r&Údists r'Úaddz _Cache.addAsN€ð �9‰9˜DŸI™IÑ %Ø#'ˆD�I‰I�d—i‘iÑ Ø �I‰I× Ñ  §¡¨2Ó .× 5Ñ 5°dÕ ;ð &r)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r(r+r2©r)r'r r ,s„ñòòór+r?r%s r'Ú clear_cachezDistributionPath.clear_cachels$€ð � ‰ ×ÑÔØ �‰×ÑÕr)c#óØK—t«}|jD�]à}tj|«}|€Œ|j d«}|r |j sŒØ15ô7ó7ð×*Ò*¨u¯~©~Ø1ô03äŸ ™  Z°·±Ô8ØŸ™ §¡Ô(Ü,¨Q¯V©V°TÓ:Ò:ùò?ñ÷6DÐCûô!òCØ^�CÜ—N‘N 3¨¯©°Ô2Û#Ø—M‘M #¨¯©°¨ Ñ"3À�M×BÒBûð Cüs]‚BI*ÂA H Ã4H Ã7I*Ã8#H ÄG>Ä)CH Ç7I*Ç>H ÈH È I'ÈA I"ÉI*É"I'É'I*cóŒ—|jj }|jxr|jj }|s|r„|j «D]I}t |t «r|jj|«Œ/|jj|«ŒK|rd|j_|rd|j_yyy)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©O×,EÑ,EÐ(EˆÙ ‘wØ×1Ñ1Ö3�ܘdÔ$9Ô:Ø—K‘K—O‘O DÕ)à—O‘O×'Ñ'¨Õ-ð 4ñ Ø(,�— ‘ Ô%ÙØ,0�—‘Õ)ððr)cóZ—|jdd«}dj||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¼s,€ð&�|‰|˜C Ó%ˆØ�x‰x˜˜w˜Ó(¬<Ñ7Ð7r)c#óFK—|js|j«D]}|–—Œy|j«|jjj «D]}|–—Œ|j r.|jjj «D]}|–—Œyy­w)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�Ø“ ñ4ð × Ñ Ô "àŸ ™ ×(Ñ(×/Ñ/Ö1�Ø“ ð2ð× Ò Ø ŸO™O×0Ñ0×7Ñ7Ö9�DØ“Jñ:ð!ùs‚BB!có¤—d}|j«}|js+|j«D]}|j|k(sŒ|}|S|S|j «||j j vr|j j |d}|S|jr4||jj vr|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‹|ˆØ×"Ò"Ø×1Ñ1Ö3�Ø—8‘8˜tÓ#Ø!�FØðˆ ð4ðˆ ð × Ñ Ô "à�t—{‘{×'Ñ'Ñ'ØŸ™×)Ñ)¨$Ñ/°Ñ2�ðˆ ð×"Ò" t¨t¯©×/CÑ/CÑ'CØŸ™×-Ñ-¨dÑ3°AÑ6�؈ r)c#óœK—d}|�" |jj|›d|›d�«}|j «D]q}t |d«st jd|«Œ&|j}|D];}t|«\}}|€ ||k(sŒ|–—ŒS||k(sŒ%|j|«sŒ7|–—ŒqŒsy#t$rtd|›d|›�«‚wxYw­w)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_distributions×èø€ðˆØ Ð ð 8ØŸ,™,×.Ñ.ºDÂ'Ð/JÓK�ð ×*Ñ*Ö,ˆDô˜4 Ô,Ü— ‘ Ð0°$Õ7àŸ=™=�ã!�AÜ$:¸1Ó$=‘M�F˜EØ�Ø! T›>Ø"&šJÙ!à! T›>¨g¯m©m¸EÕ.BØ"&šJÙ!ñ"ñ-øô ò 8Ý&Ú(,©gð(7ó8ð8ð 8üs.‚C ˆ!B.©AC  C ÂC Â$ C Â.C à C cóf—|j|«}|€td|z«‚|j|«S)z5 Return the path to a resource file. zno distribution named %r found)r‹Ú LookupErrorÚget_resource_path)r&r"Ú relative_pathr1s r'Ú get_file_pathzDistributionPath.get_file_path+s;€ð×$Ñ$ TÓ*ˆØ ˆ<ÜÐ>ÀÑEÓFÐ FØ×%Ñ% mÓ4Ð4r)c#ó²K—|j«D]@}|j}||vsŒ||}|� ||vsŒ ||–—Œ(|j«D]}|–—ŒŒBy­w)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Ø ™g› àŸX™XžZ˜Ø›ñ(ñ-ùs‚$A§ A³$A)NFrD)r3r4r5r6r(rFrIÚpropertyÚ cache_enabledrKrxr}Ú classmethodr„r‡r‹r™ržr¤r7r)r'rrKse„ñó-ò(#ò$ñÐ/Ð1CÓD€Mò ò4Còl1ð&ñ8óð8ò*ò,ó4'"òR5ô r)rcóÄ—eZdZdZdZ dZ d„Zed„«ZeZ ed„«Z ed„«Z d„Z ed„«Z ed „«Zed „«Zed „«Zed „«Zd „Zd„Zd„Zd„Zy)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|_|jj«|_|j|_d|_d|_d|_d|_t«|_ i|_ y)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__Ysb€ð !ˆŒ Ø—M‘MˆŒ Ø—9‘9—?‘?Ó$ˆŒØ×'Ñ'ˆŒ ؈Œ ؈Œ ؈Œ ؈Œ Ü ›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 t§|£|Ð4Ð4r)có”—|jj}|j›d|j›d�}||vr|j |«|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.provideszs<€ð — ‘ ×&Ñ&ˆØŸ› D§L£LÐ 1ˆØ �E‰>Ø �L‰L˜ŒO؈ r)cóØ—|j}t||«}tjd|j||«t |j ||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†s]€Ø �]‰]ˆÜ˜˜HÓ%ˆÜ� ‰ Ð@À$Ç)Á)ؘuô &äØ × Ñ  ¨d¯k©k¸t¿|¹|Ð Ó LóNð Nr)có$—|jd«S)NÚ run_requires©r¾r%s r'rÀzDistribution.run_requiresŽó€à×%Ñ% nÓ5Ð5r)có$—|jd«S)NÚ meta_requiresrÁr%s r'rÄzDistribution.meta_requires’ó€à×%Ñ% oÓ6Ð6r)có$—|jd«S)NÚbuild_requiresrÁr%s r'rÇzDistribution.build_requires–s€à×%Ñ%Ð&6Ó7Ð7r)có$—|jd«S)NÚ test_requiresrÁr%s r'rÉzDistribution.test_requiresšrÅr)có$—|jd«S)NÚ dev_requiresrÁr%s r'rËzDistribution.dev_requiresžrÂr)cóЗt|«}t|jj«} |j |j «}|j}d}|jD]*}t|«\}} ||k7rŒ |j| «}|S|S#t $r=tjd|«|j«d}|j |«}YŒŽwxYw#t $rYŒƒwxYw)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™M×0Ñ0Ó1ˆð +Ø—n‘n Q§]¡]Ó3ˆGð�{‰{ˆàˆØ—”ˆAÜ2°1Ó5‰MˆF�EؘŠ~Øð Ø Ÿ™ uÓ-�Øðˆ ððˆ øô%'ò +ä �N‰NÐHÈ#Ô NØ—9‘9“;˜q‘>ˆDØ—n‘n TÓ*ŠGð  +ûô +ò Ùð ús$¬BÁ9CÂACÃCà C%Ã$C%có~—|jrd|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__Ãs4€ð �?Š?ؘtŸ™Ñ.‰FàˆFøØ-1¯Y«Y¸¿ » ÂfÐMÐMr)cóØ—t|«t|«urd}|S|j|jk(xr4|j|jk(xr|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__Ísg€ô �‹;œd 4›jÑ (؈Fðˆ ð—i‘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__Üs.€ô�D—I‘I‹¤ d§l¡lÓ!3Ñ3´d¸4¿?¹?Ó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'rrGsç„ñð "Ððð €Ið5òð"ñ(óð(ð €Là ñ5óð5ð ñ óð òNðñ6óð6ðñ7óð7ðñ8óð8ðñ7óð7ðñ6óð6òòBNò óLr)rcó0‡—eZdZdZdZdˆfd„ Zdd„ZˆxZS)rz] This is the base class for installed distributions (whether PEP 376 or legacy). NcóH•—tt|� |«||_||_y)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__ës#ø€ô Ô'¨Ñ7¸ÔA؈Œ ؈�r)có$—|€ |j}|€tj}d}ntt|«}d|jz}||«j «}t j |«jd«jd«}|›|›�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 rMz%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äœW fÓ-ˆFؘTŸ[™[Ñ(ˆFÙ˜“×$Ñ$Ó&ˆÜ×)Ñ)¨&Ó1×8Ñ8¸Ó>×EÑEÀgÓNˆÙ¡Ð(Ð(r)rD)r3r4r5r6rèr(rñÚ __classcell__©räs@r'rrãsø„ñð €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„Zej0Zˆ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). Úsha256có•—g|_tj|«x|_}|€t d|z«‚|rH|j r<||j jvr$|j j|j}n•|€“|jt«}|€|jt«}|€|jt«}|€t dt›d|›�«‚tj|j««5}t!|d¬«}ddd«t"t$|�O|||«|r'|j r|j j)|«|jd«}|du|_t,jj/|d«}t,jj1|«rJt3|d«5}|j5«j7d «} ddd« j9«|_yy#1swYŒëxYw#1swYŒ,xYw) 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Ñ8¸Ó>Ð>ˆŒ �fØ ˆ>ÜÐ8¸4Ñ?Ó@Ð @Ù �3×%Ò%¨$°#·*±*·/±/Ñ*AØ—z‘z—‘ tÑ,×5Ñ5‰HØ Ð Ø— ‘ Ô-Ó.ˆAàˆyØ—K‘KÔ 7Ó8�àˆyØ—K‘KÔ 8Ó9�؈yÝ Þ"3±Tð";ó<ð<ä×#Ñ# A§K¡K£MÔ2°fÜ#¨F¸8ÔD�÷3ô Ô# TÑ3°H¸dÀCÔHá �3×%Ò%Ø �J‰J�N‰N˜4Ô à �K‰K˜ Ó $ˆØ $˜ˆŒÜ �G‰G�L‰L˜˜Ó /ˆÜ �7‰7�>‰>˜!Ô Ü�a˜” !Ø—v‘v“x—‘ wÓ/�÷àŸ?™?Ó,ˆD�Lð ÷3Ð2ú÷�úsÃ>G6Æ7 HÇ6G?ÈH cóV—d|j›d|j›d|j›d�S)Nz—|jd«}tj|j««5}t |¬«5}|D] \}}||k(sŒ |ccddd«cddd«S ddd«ddd«t d|z«‚#1swYŒxYw#1swYŒ#xYw)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)r rarbrcrÚKeyError)r&r�rnruÚresources_readerÚrelativeÚ destinations r'rœz'InstalledDistribution.get_resource_pathŒs˜€ð × &Ñ & {Ó 3ˆÜ × Ñ  § ¡ £ Ô .°&Ü &Õ)Ð-=Û-=Ñ)�H˜kØ =Ó0Ø*Ñ*÷*Ð)÷/Ñ .á-=÷*÷/ô ð&Ø(5ñ6ó7ð 7÷ *Ð)ú÷/Ð .ús5µ BÁBÁBÁ BÁ'BÁ)BÂB  BÂBc#ó>K—|j«D]}|–—Œy­w)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 s èø€ð×'Ñ'Ö)ˆFØ‹Lñ*ùs‚có—tjj|d«}tjj|j«}|j |«}tjj|d«}|j d«}t jd|«|ryt|«5}|D]å}tjj|«s|jd«rdx} } nVdtjj|«z} t|d«5} |j| j««} ddd«|j |«s|r1|j |«r tjj||«}|j!| | f«Œç|j |«r tjj||«}|j!|ddf«ddd«|S#1swYŒ²xYw#1swY|SxYw)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ªsˆ€ô—‘—‘˜f bÓ)ˆÜ�w‰w�‰˜tŸy™yÓ)ˆØ ŸO™O¨FÓ3ÐÜ�w‰w�|‰|˜D "Ó%ˆØ×,Ñ,¨XÓ6ˆ Ü� ‰ �M ;Ô/Ù ØÜ �{Ô # vÛ�Ü—7‘7—=‘= Ô&¨$¯-©-Ð8HÔ*Ià(*Ð*�J¡à¤"§'¡'§/¡/°$Ó"7Ñ7�Dܘd DÔ)¨RØ%)§]¡]°2·7±7³9Ó%=˜ ÷*à—?‘? 4Ô(Ñ->Ø15·±ÀÔ1HÜŸ7™7Ÿ?™?¨4°Ó6�DØ—‘  z°4Ð 8Õ9ðð×%Ñ% dÔ+Ü Ÿg™gŸo™o¨k¸4Ó@� Ø �O‰O˜[¨"¨bÐ1Ô 2÷#$ð$Ð÷*Ð)ú÷$ð$Ðús&Â0A)G6Ä G*Ä9B'G6Ç*G3 Ç/G6Ç6Hcóh—g}tjj|j«}|jd«}|j «D�]T\}}}tjj |«s tjj ||«}||k(rŒMtjj|«s|j|dddf«Œ‚tjj|«sŒ¢ttjj|««}|r||k7r|j|d||f«Œç|sŒêd|vr|jdd«d}nd }t|d «5} |j| j«|«} | |k7r|j|d || f«d d d «�ŒW|S#1swY�ŒdxYw) ᨠ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&Ú mismatchesr1r3r#r5rÚ actual_sizerèrÚ actual_hashs r'Úcheck_installed_filesz+InstalledDistribution.check_installed_filesÍsm€ðˆ Ü�w‰w�‰˜tŸy™yÓ)ˆØ×,Ñ,¨XÓ6ˆ Ø&*×&?Ñ&?×&AÑ "ˆD�*˜dÜ—7‘7—=‘= Ô&Ü—w‘w—|‘| D¨$Ó/�Ø�{Ò"ØÜ—7‘7—>‘> $Ô'Ø×!Ñ! 4¨°4¸Ð"?Õ@Ü—‘—‘ Õ%Ü!¤"§'¡'§/¡/°$Ó"7Ó8� Ù˜K¨4Ò/Ø×%Ñ% t¨V°T¸;Ð&GÕHÚØ˜jÑ(Ø!+×!1Ñ!1°#°qÓ!9¸!Ñ!<™à!%˜ä˜d DÔ)¨QØ&*§m¡m°A·F±F³H¸fÓ&E˜ Ø&¨*Ò4Ø&×-Ñ-Ø!% v¨z¸;Ð GôI÷*Ñ)ð#'Bð,Ð÷ *Ñ)ús Å;F'Æ'F1 có—i}tjj|jd«}tjj|«r‡t j |dd¬«5}|j «j«}ddd«D]C}|jdd«\}}|dk(r"|j|g«j|«Œ?|||<ŒE|S#1swYŒSxYw) 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‘g—l‘l 4§9¡9¨hÓ7ˆ Ü �7‰7�>‰>˜+Ô &Ü—‘˜[¨#¸Õ@ÀAØŸ™›×+Ñ+Ó-�÷Aã�Ø!ŸZ™Z¨¨QÓ/‘ ��Uؘ+Ò%Ø×%Ñ% c¨2Ó.×5Ñ5°eÕ<à"'�F˜3’Kð ð ˆ ÷AÐ@ús Á$CÃCcó —tjj|jd«}tj d|«|ryg}dD]@}||}tjj ||«sŒ+|j |›d|›�«ŒB|jdd«D]}|j d|z«Œtj|d d ¬ «5}|jd j|««ddd«|S#1swY|SxYw) 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:rEr7z namespace=%srrùrCÚ ) rûr#r`rdr*r+r/ÚgetrFrýÚwrite) r&r/r0rGrHr.r#Únsrs r'Úwrite_shared_locationsz,InstalledDistribution.write_shared_locations sÖ€ô—g‘g—l‘l 4§9¡9¨hÓ7ˆ Ü� ‰ �M ;Ô/Ù ØØˆÛBˆCؘ‘:ˆDÜ�w‰w�}‰}˜U 3™ZÕ(Ø— ‘ ª©TÐ2Õ3ðCð—)‘)˜K¨Ö,ˆBØ �L‰L˜¨"Ñ,Õ -ð-ô�[‰[˜ c°GÕ <ÀØ �G‰G�D—I‘I˜eÓ$Ô %÷=àÐ÷=àÐús Ã!C9Ã9DcóÜ—|tvrtd|›d|j›�«‚tj|j«}|€td|jz«‚|j |«S)Nú#invalid path for a dist-info file: rzUnable to get a finder for %s)Ú DIST_FILESrr#rrYrZ)r&r#rms r'r z+InstalledDistribution.get_distinfo_resource%se€Ø ”zÑ !Ý"Ú15°t·y²yð$BóCð Cä×*Ñ*¨4¯9©9Ó5ˆØ ˆ>Ü"Ð#BÀTÇYÁYÑ#NÓOÐ OØ�{‰{˜4Ó Ð r)c óÚ—|jtj«dk\r}|jtj«dd\}}||jjtj«dk7r)t d|›d|j ›d|j›d�«‚|tvrt d |›d |j›�«‚tjj|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 distributionrUr) rZrûÚseprÏr#rr"rƒrVr`)r&r#r„s r'rz'InstalledDistribution.get_distinfo_file.s½€ð �9‰9”R—V‘VÓ  Ò !à%)§Z¡Z´·±Ó%7¸¸Ð%<Ñ "Ð ˜dØ 4§9¡9§?¡?´2·6±6Ó#:¸2Ñ#>Ò>Ý&â&*¨D¯I«I°t·|³|ðEóFðFð ”zÑ !Ý"Ú15°t·y²yð$BóCð Cô�w‰w�|‰|˜DŸI™I tÓ,Ð,r)c#óNK—tjj|j«}|j«D]e\}}}tjj |«s tjj ||«}|j |j«sŒb|–—Œgy­w)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&r1r#rrs r'Úlist_distinfo_filesz)InstalledDistribution.list_distinfo_filesKsqèø€ô�w‰w�‰˜tŸy™yÓ)ˆØ$(×$5Ñ$5Ö$7Ñ ˆD�(˜Dä—7‘7—=‘= Ô&Ü—w‘w—|‘| D¨$Ó/�Ø�‰˜tŸy™yÕ)Ø“ ñ %8ùs ‚BB%ÂB%cóX—t|t«xr|j|jk(SrD)rzrr#©r&rØs r'rÙzInstalledDistribution.__eq__[s'€Ü˜5Ô"7Ó8ò,Ø—I‘I §¡Ñ+ð -r))NN©F)r3r4r5r6rèr(rÕrrrr rrrœr$r7rArJrSr rr\rÙÚobjectrÜròrós@r'rrs�ø„ñð€Fõ -òD0ò3òð.ñ óð ò ò &ò7ò(ó!òF"ðHñóðó4ò2!ò-ò:ò -ð �‰„Hr)rcóp‡—eZdZdZdZiZd ˆfd„ Zd„Zd„Zd„Z d„Z d„Z d d „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.TcóÒ•—d„}||_||_|rf|jrZ||jjvrB|jj|j}|||j |j «nX|j|«}|||j |j «|r'|jr|jj|«tt|�/|||«y)NcóJ—||_|j«|_||_yrD)r"r‰r.rƒ)r·Únr£s r'Úset_name_and_versionz:EggInfoDistribution.__init__..set_name_and_versionns€ØˆAŒFØ—G‘G“IˆAŒE؈A�Ir)) r#rãr@r?rRr"rƒÚ _get_metadatar2rârr()r&r#rSrerRräs €r'r(zEggInfoDistribution.__init__ls½ø€ò 𠈌 ؈ŒÙ �3×%Ò%¨$°#·.±.×2EÑ2EÑ*EØ—~‘~×*Ñ*¨4Ñ0×9Ñ9ˆHÙ   x§}¡}°h×6FÑ6FÕ Gà×)Ñ)¨$Ó/ˆHñ !  x§}¡}°h×6FÑ6FÔ Gá�s×)Ò)Ø—‘×"Ñ" 4Ô(Ü Ô! 4Ñ1°(¸DÀ#ÕFr)c󌇗d}d„Šˆfd„}dx}}|jd«�rKtjj|«r—tjj |d«}tjj |d«}t |d¬«}tjj |d«} tjj |d «}|| «}�nIt j|«} t| jd «jd ««} t | d¬ «} | jd «} | jd«jd«}‰| jd««}n´|jd«r•tjj|«rhtjj |d«} || «}tjj |d«}tjj |d «}t |d¬«}ntd|z«‚|r|j|«|€U|�Stjj|«r4t|d«5} | j!«jd«}ddd«|sg}n|j#«}||_|S#t$rd}YŒ•wxYw#1swYŒ8xYw)Ncó—g}|j«}|D]ï}|j«}|sŒ|jd«rtj d|«|St |«}|stj d|«Œd|j rtj d«|js|j|j«Œ­djd„|jD««}|j|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|z–—Œ y­w)z%s%sNr7)Ú.0Úcs r'Ú zQEggInfoDistribution._get_metadata..parse_requires_data..Ÿsèø€Ð$G¹°A V¨a¥Z¹ùó‚r�rŽ) rÿÚstripr)rdrirr¬Ú constraintsr/r"r`)rïÚreqsrHrIrnÚconss r'Úparse_requires_dataz>EggInfoDistribution._get_metadata..parse_requires_data…sÜ€ð ˆDØ—O‘OÓ%ˆEÛ�Ø—z‘z“|�áØØ—?‘? 3Ô'Ü—N‘NØHÈ$ôPàðˆKô& dÓ+�ÙÜ—N‘NÐ#HÈ$ÔOØØ—8’8Ü—N‘Nð$3ô4à—}’}Ø—K‘K §¡Õ'àŸ9™9Ñ$G¸¿ºÓ$GÓG�DØ—K‘K¨Q¯V«V²TÐ :Õ;ð)ð*ˆKr)có´•—g} tj|dd«5}‰|j««}ddd«|S#1swY|SxYw#t$rY|SwxYw)z’Create a list of dependencies from a requires.txt file. *req_path*: the path to a setuptools-produced requires.txt file. rnrùN)rFrýrþÚIOError)Úreq_pathrqr6rss €r'Úparse_requires_pathz>EggInfoDistribution._get_metadata..parse_requires_path£sbø€ð ˆDð Ü—[‘[ ¨3°Ô8¸BÙ.¨r¯w©w«yÓ9�D÷9ðˆK÷ 9ðˆKûôò ØØˆKð ús+…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îrurÚadd_requirementsrürýrþrÿrú)r&r#ÚrequiresrwÚtl_pathÚtl_datar–Ú meta_pathrRrvÚzipfrPrïrrss @r'rfz!EggInfoDistribution._get_metadata‚sBø€Øˆò ô< ð!Ð ˆ�'Ø �=‰=˜Õ Ü�w‰w�}‰}˜TÔ"Ü—G‘G—L‘L  zÓ2�ÜŸG™GŸL™L¨¨JÓ7� Ü#¨¸8ÔD�ÜŸ7™7Ÿ<™<¨¨>Ó:�ÜŸ'™'Ÿ,™, q¨/Ó:�Ù.¨xÓ8’ô!×,Ñ,¨TÓ2�Ü"Ø—M‘MÐ"5Ó6×=Ñ=¸fÓEóG�ä#¨G¸HÔE�ð$ØŸ=™=Ð)@ÓA�DØ"Ÿm™mÐ,DÓE×LÑLØó!�Gá2°4·;±;¸wÓ3GÓH‘Hð�]‰]˜;Ô 'Ü�w‰w�}‰}˜TÔ"ÜŸ7™7Ÿ<™<¨¨nÓ=�Ù.¨xÓ8�Ü—w‘w—|‘| D¨*Ó5�ÜŸ'™'Ÿ,™, t¨_Ó=�Ü T°(Ô;‰Hä"ð$,Ø.2ñ$3ó4ð 4ñ Ø × %Ñ % hÔ /à ˆ?ØÐ"¤r§w¡w§~¡~°gÔ'>ܘ' 4Ô(¨AØŸf™f›hŸo™o¨gÓ6�G÷)áØ‰Gà×(Ñ(Ó*ˆG؈Œ ؈øô3ò$Ø#’Hð$ú÷$)Ð(úsÄ$AJ)É# J:Ê) J7Ê6J7Ê:KcóV—d|j›d|j›d|j›d�S)Nzr3r#r€s r'rAz)EggInfoDistribution.check_installed_filesçs…€ðˆ Ü—g‘g—l‘l 4§9¡9Ð.CÓDˆ Ü �7‰7�>‰>˜+Ô &Ø"×7Ñ7Ö9‘ ��a˜Ø˜;Ò&ØÜ—w‘w—~‘~ dÕ+Ø×%Ñ% t¨X°t¸UÐ&CÕDð :ð Ðr)c óø—d„}d„}tjj|jd«}g}tjj|«�rt j |dd¬«5}|D]à}|j «}tjjtjj|j|««}tjj|«s(tjd|«|jd«rŒ¡tjj|«rŒÁ|j|||«||«f«Œâ d d d «|j|d d f«|S#1swYŒxYw) zµ Iterates over the ``installed-files.txt`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: a list of (path, hash, size) cóÌ—t|d«} |j«}|j«tj|«j «S#|j«wxYw)Nrø)rýrþÚcloserérêÚ hexdigest)r#rÚcontents r'Ú_md5z6EggInfoDistribution.list_installed_files.._md5sL€Ü�T˜4Ó ˆAð ØŸ&™&›(�à—‘” Ü—;‘;˜wÓ'×1Ñ1Ó3Ð 3øð—‘• ús ŽAÁA#có@—tj|«jSrD)rûÚstatÚst_size)r#s r'Ú_sizez7EggInfoDistribution.list_installed_files.._size s€Ü—7‘7˜4“=×(Ñ(Ð (r)r…rnrùrCzNon-existent file: %sr'N) rûr#r`rürFrýroÚnormpathrdrir]r+r/)r&r‹r�r3rŠrrIr–s r'r$z(EggInfoDistribution.list_installed_filesús€ò 4ò )ô—g‘g—l‘l 4§9¡9Ð.CÓDˆ ØˆÜ �7‰7�>‰>˜+Õ &Ü—‘˜[¨#¸Õ@ÀAÛ�DØŸ:™:›<�DÜŸ™×(Ñ(¬¯©¯©°d·i±iÀÓ)FÓG�AôŸ7™7Ÿ>™>¨!Ô,ÜŸ™Ð'>ÀÔBØŸ:™:Ð&6Ô7Ø$äŸ7™7Ÿ=™=¨Õ+ØŸ ™  q©$¨q«'±5¸³8Ð&<Õ=ñ÷Að �M‰M˜;¨¨dÐ3Ô 4؈ ÷AÐ@úsÁ+CE0Ä/"E0Å0E9c#ó K—tjj|jd«}tjj|«rµd}t j |dd¬«5}|D]‹}|j «}|dk(rd}Œ|rŒtjjtjj|j|««}|j|j«sŒ�|r|–—Œˆ|–—Œ� ddd«yy#1swYyxYw­w) 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ùrCz./FN) rûr#r`rürFrýror�r))r&Úabsoluter3ÚskiprrIr–s r'r\z'EggInfoDistribution.list_distinfo_files sÇèø€ô—g‘g—l‘l 4§9¡9Ð.CÓDˆ Ü �7‰7�>‰>˜+Ô &؈DÜ—‘˜[¨#¸Õ@ÀAÛ�DØŸ:™:›<�Dؘt’|Ø$˜Ø ÚÜŸG™G×,Ñ,¬R¯W©W¯\©\¸$¿)¹)ÀTÓ-JÓK˜ØŸ<™<¨¯ © Õ2Ù'Ø&'£à&*£ ñ÷AÐ@ð 'ç@Ð@üs+‚A$DÁ& DÂA"DÃ* DÃ8 DÄD ÄDcóX—t|t«xr|j|jk(SrD)rzrr#r^s r'rÙzEggInfoDistribution.__eq__=s'€Ü˜5Ô"5Ó6ò,Ø—I‘I §¡Ñ+ð -r)rDr_)r3r4r5r6rÞrJr(rfrÕrrAr$r\rÙr`rÜròrós@r'rrcsMø„ñ/ð €IØÐõGò,\ò|Aò3òò&$óL+ò:-ð �‰„Hr)rcóL—eZdZdZd„Zd„Zd d„Zd„Zd„Zd d„Z dd „Z d „Z d „Z y)Ú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ó.—i|_i|_i|_yrD)Úadjacency_listÚ reverse_listrr%s r'r(zDependencyGraph.__init__Ys€Ø ˆÔØˆÔØˆ� r)có@—g|j|<g|j|<y)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|j||f«||j|vr|j|j|«yy)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_edgehsR€ð ×јAÑ×%Ñ% q¨% jÔ1à �D×%Ñ% aÑ(Ñ (Ø × Ñ ˜aÑ × 'Ñ '¨Õ *ð )r)cóˆ—tjd||«|jj|g«j |«y)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_missingws3€ô � ‰ �_ l°KÔ@Ø � ‰ ×Ñ  ¨bÓ1×8Ñ8¸ÕEr)có8—|j›d|j›�Srr³r0s r'Ú _repr_distzDependencyGraph._repr_dist‚rr)có`—|j|«g}|j|D]z\}}|j|«}|�|›d|›d�}|jd|zt|«z«|j ||dz«}|j d«}|j |dd«Œ|dj|«S)zPrints only a subgraphNz [Ú]z rrO)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ØÐ Ú$(ª%Ð0�Ø �M‰M˜& 5™.¬3¨t«9Ñ4Ô 5ØŸ™ u¨e°a©iÓ8ˆIØ—?‘? 4Ó(ˆDØ �M‰M˜$˜q˜r˜(Õ #ð6ð�y‰y˜Ó Ð r)c ó¶—g}|jd«|jj«D]Ž\}}t|«dk(r|s|j |«|D]c\}}|�0|jd|j ›d|j ›d|›d�«Œ8|jd|j ›d|j ›d�«ŒeŒ�|sˆt|«dkDrz|jd «|jd «|jd «|D]1}|jd |j z«|jd «Œ3|jd«|jd«y)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"rOz} )rQr˜Úitemsrr/r")r&rÚskip_disconnectedÚ disconnectedr1ÚadjsrØr s r'Úto_dotzDependencyGraph.to_dot’s€ðˆ à �‰Ð*Ô+Ø×-Ñ-×3Ñ3Ö5‰JˆD�$Ü�4‹y˜AŠ~Ñ&7Ø×#Ñ# DÔ)Û $‘ ��uØÐ$Ø—G’GØ!ŸY›Y¨¯ « ²Eð;õ<ð—G’G°· ³ ¸5¿:»:ÐFÕGñ !%ð6ñ!¤S¨Ó%6¸Ò%:Ø �G‰GÐ/Ô 0Ø �G‰GÐ.Ô /Ø �G‰GÐ%Ô &ã$�Ø—‘˜ §¡Ñ*Ô+Ø—‘˜• ð%ð �G‰G�EŒNØ �‰��r)c ó:—g}i}|jj«D] \}}|dd||<Œ g}t|j««ddD]\}}|rŒ |j|«||=Œ|sn‡|j«D]$\}}|D��cgc]\}}||vsŒ ||f‘Œc}}||<Œ&tj d|D�cgc]}|j ›d|j›d�‘Œ c}«|j|«ŒÇ|t|j««fScc}}wcc}w)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. NzMoving to result: %sr�rŽ) r˜r°Úlistr/rdrer"rƒr©Úkeys)r&rŠÚalistÚkr£Ú to_remover¢rns r'Útopological_sortz DependencyGraph.topological_sort²s€ðˆàˆØ×'Ñ'×-Ñ-Ö/‰DˆAˆqØ™�tˆE�!ŠHð0ààˆIܘUŸ[™[›]Ó+©AÓ.‘��1ÚØ×$Ñ$ QÔ'ؘa™ð/ñààŸ ™ ž ‘��1Ù/0ÔG©q¡t q¨!°A¸YÒ4F˜Q šF¨qÒG��a’ð&ä �L‰LÐ/ÙCLÓMÁ9¸a q§v£v¨q¯y«yÒ9À9ÑMô Oà �M‰M˜)Ô $ðð ”t˜EŸJ™J›LÓ)Ð)Ð)ùó HùâMs DÂDÂ;#D có¬—g}|jj«D]%\}}|j|j|««Œ'dj |«S)zRepresentation of the graphrO)r˜r°r/r¨r`)r&r«r1r³s r'rÕzDependencyGraph.__repr__ÑsH€àˆØ×-Ñ-×3Ñ3Ö5‰JˆD�$Ø �M‰M˜$Ÿ.™.¨Ó.Õ /ð6à�y‰y˜Ó Ð r)rD)r)T) r3r4r5r6r(rœr¡r£r¥r¨r´r»rÕr7r)r'r–r–Is6„ñ òò -ó +ò Fò3ó !óò@*ó>!r)r–có0—t|«}t«}i}|D]m}|j|«|jD]K}t |«\}}t j d|||«|j|g«j||f«ŒMŒo|D]­}|j|jz|jz|jz}|D]s} |j| «} | j"}d} ||vr8||D]0\}} | j%|«} | sŒ|j'|| | «d} n| rŒb|j)|| «ŒuŒ¯|S#t$r=t jd| «| j!«d}|j|«} YŒªwxYw#t$rd} YŒŒwxYw)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óˆØ ×јtÔ$à—”ˆAÜ2°1Ó5‰MˆD�'Ü �L‰LÐ6¸¸gÀtÔ LØ × Ñ   bÓ )× 0Ñ 0°'¸4°Õ AñðóˆØ×%Ñ%¨×(:Ñ(:Ñ:Ø×)Ñ)ñ*Ø,0×,=Ñ,=ñ>ˆãˆCð /Ø Ÿ.™.¨Ó-�ð—;‘;ˆDàˆGØ�xÑØ)1°$¬Ñ%�G˜Xð&Ø '§ ¡ ¨gÓ 6˜òØŸ™ t¨X°sÔ;Ø"&˜Ùð*8òØ×!Ñ! $¨Õ,ñ3ðð: €Løô/+ò /ä—‘ÐLØ"ô$à—y‘y“{ 1‘~�Ø Ÿ.™.¨Ó.’ð  /ûô3ò&Ø %šð&ús%ÃD>Ã7FÄ>AFÆFÆ F ÆF có:—||vrtd|jz«‚t|«}|g}|j|}|rN|j «}|j |«|j|D]}||vsŒ|j |«Œ|rŒN|j 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©yñ 9ó:ð :ä �uÓ €Eà ˆ&€CØ × Ñ ˜dÑ #€Dá Ø �H‰H‹JˆØ � ‰ �1Œ Ø×&Ñ& qÔ)ˆDؘ3ŠØ— ‘ ˜DÕ!ð*ò ð‡G�GˆA„JØ €Jr)cóŠ—||vrtd|jz«‚t|«}t«}|j|}td„|D««}|rn|j «d}|j |«|j|}|D]3}|d}||vsŒ ||vsŒ|j |«|j|«Œ5|rŒn|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—|] }|d–—Œ y­w)rNr7)rkÚts r'rmz%get_required_dists..8sèø€Ð"™T˜ˆq��t™Tùrnr)rr"rÂrXr˜rÅr2r/) r¾r1r¿rÐrÇrlr¢Ú pred_listÚpreds r'Úget_required_distsrÏ)sË€ð �5ÑÜð -Ø/3¯y©yñ 9ó:ð :ä �uÓ €Eä ‹%€CØ × Ñ  Ñ %€DÜ Ñ"™TÓ"Ó "€Dá Ø �H‰H‹J�q‰MˆØ �‰�Œ Ø×(Ñ(¨Ñ+ˆ ÛˆDØ�Q‘ˆAؘŠ| ¨¢ Ø—‘˜” Ø— ‘ ˜DÕ!ð ò ð €Jr)c ó„—|jdd«}tdi|¤Ž}||_||_|xsd|_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ÓFsH€ð�j‰j˜Ð$=Ó>€GÜ Ñ �FÑ €BØ€B„GØ€B„JØÒ5Ð5€B„JÜ ˜Ó Ðr))r:)7r6Ú __future__rrërFraréÚloggingrûr_r;ryrMrrÚcompatrrƒrr rRr r r r ÚutilrrrrrrrÚ__all__Ú getLoggerr3rdrÚCOMMANDS_FILENAMErVr^r`r rrrrrrfrgr–rÂrÉrÏrÓr7r)r'ÚrÛsðñ å'ã Û ÛÛÛÛ ÛÛ Ûç)Ýß8÷1ó1÷F÷FñFò €ð ˆ× Ñ ˜8Ó $€à(ÐØ*ÐàÐ,¨h¸ ØÐ+¨Xð7€ ð€ ô<ˆVô<ô>y �vôy ôxYL�6ôYLôx4)  ô4)ônFÐ5ôFôR _Ð3ô_ðD'€Ø$€ôM!�fôM!ó`3òlò4ó: r)