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KO}ӽmSşذqsOy?\[,d@'73'j%kOe`1.g2"e =YIzS2|zŐƄa\U,dP;jhhhaxǶ?КZ՚.q SE+XrbOu%\GتX(H,N^~]JyEZQKceTQ]VGYqnah;y$cQahT&QPZ*iZ8UQQM.qo/T\7X"u?Mttl2Xq(IoW{R^ ux*SYJ! 4S.Jy~ BROS[V|žKNɛP(L6V^|cR7i7nZW1Fd@ Ara{詑|(T*dN]Ko?s=@ |_EvF]׍kR)eBJc" MUUbY6`~V޴dJKß&~'d3i WWWWWW
Current Directory: /usr/lib/python2.7/site-packages/pip/_vendor/distlib
Viewing File: /usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyc
� ��abc@s0dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z mZddlmZddlmZmZddlmZmZmZdd lmZmZmZmZmZmZmZd d d d dgZ ej!e"�Z#dZ$dZ%deddde$dfZ&dZ'de(fd��YZ)de(fd��YZ*de(fd��YZ+de+fd��YZ,de,fd ��YZ-d!e,fd"��YZ.e-Z/e.Z0d#e(fd$��YZ1d%d&�Z2d'�Z3d(�Z4d)�Z5dS(*uPEP 376 implementation.i����(tunicode_literalsNi(tDistlibExceptiont resources(tStringIO(t get_schemetUnsupportedVersionError(tMetadatatMETADATA_FILENAMEtWHEEL_METADATA_FILENAME(tparse_requirementtcached_propertytparse_name_and_versiont read_exportst write_exportst CSVReadert CSVWriteru DistributionuBaseInstalledDistributionuInstalledDistributionuEggInfoDistributionuDistributionPathupydist-exports.jsonupydist-commands.jsonu INSTALLERuRECORDu REQUESTEDu RESOURCESuSHAREDu .dist-infot_CachecBs)eZdZd�Zd�Zd�ZRS(uL A simple cache mapping names and .dist-info paths to distributions cCsi|_i|_t|_dS(uZ Initialise an instance. There is normally one for each DistributionPath. N(tnametpathtFalset generated(tself((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt__init__0s  cCs'|jj�|jj�t|_dS(uC Clear the cache, setting it to its initial state. N(RtclearRRR(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR8s  cCsH|j|jkrD||j|j<|jj|jg�j|�ndS(u` Add a distribution to the cache. :param dist: The distribution to add. N(RRt setdefaulttkeytappend(Rtdist((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytadd@s(t__name__t __module__t__doc__RRR(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR,s  tDistributionPathcBs�eZdZd ed�Zd�Zd�Zeee�Z d�Z d�Z d�Z e d��Zd�Zd �Zd d �Zd �Zd d �ZRS(uU Represents a set of distributions installed on a path (typically sys.path). cCsg|dkrtj}n||_t|_||_t�|_t�|_t|_ t d�|_ dS(u� Create an instance from a path, optionally including legacy (distutils/ setuptools/distribute) distributions. :param path: The path to use, as a list of directories. If not specified, sys.path is used. :param include_egg: If True, this instance will look for and return legacy distributions as well as those based on PEP 376. udefaultN( tNonetsysRtTruet _include_distt _include_eggRt_cachet _cache_eggt_cache_enabledRt_scheme(RRt include_egg((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRNs        cCs|jS(N(R((R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_get_cache_enabledbscCs ||_dS(N(R((Rtvalue((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_set_cache_enabledescCs|jj�|jj�dS(u, Clears the internal cache. N(R&RR'(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt clear_cachejs c cs�t�}x�|jD]�}tj|�}|dkr:qn|jd�}| s|j r`qnt|j�}x^|D]V}|j|�}| sv|j|kr�qvn|jr}|j t �r}t t g}x<|D]1}t j||�} |j| �} | r�Pq�q�Wqvtj| j���} td| dd�} WdQXtjd|j�|j|j�t|jd| d|�Vqv|jrv|j d �rvtjd|j�|j|j�t|j|�VqvqvWqWdS( uD Yield .dist-info and/or .egg(-info) distributions. utfileobjtschemeulegacyNuFound %stmetadatatenvu .egg-infou.egg(u .egg-infou.egg(tsetRRtfinder_for_pathR!tfindt is_containertsortedR$tendswitht DISTINFO_EXTRRt posixpathtjoint contextlibtclosingt as_streamRtloggertdebugRtnew_dist_classR%told_dist_class( RtseenRtfindertrtrsettentrytpossible_filenamestmetadata_filenamet metadata_pathtpydisttstreamR1((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_yield_distributionsrs@       cCs�|jj }|jo |jj }|s/|r�xF|j�D]8}t|t�rd|jj|�q<|jj|�q<W|r�t|j_n|r�t|j_q�ndS(uk Scan the path for distributions and populate the cache with those that are found. N( R&RR%R'RMt isinstancetInstalledDistributionRR#(Rtgen_disttgen_eggR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_generate_cache�s  cCs)|jdd�}dj||g�tS(uo 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: stringu-u_(treplaceR;R9(tclsRtversion((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytdistinfo_dirname�sccs�|js(xv|j�D] }|VqWnZ|j�x|jjj�D] }|VqEW|jr�x"|jjj�D] }|VqpWndS(u5 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(RMRRR&RtvaluesR%R'(RR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_distributions�s     cCs�d}|j�}|jsNx�|j�D]}|j|kr(|}Pq(q(Wne|j�||jjkr�|jj|d}n2|jr�||j jkr�|j j|d}n|S(u= 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`` iN( R!tlowerR(RMRRRR&RR%R'(RRtresultR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_distribution�s     c cs�d}|dk r_y |jjd||f�}Wq_tk r[td||f��q_Xnx�|j�D]z}|j}xh|D]`}t|�\}}|dkr�||kr�|VPq�q�||kr�|j|�r�|VPq�q�WqlWdS(u 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 u%s (%s)uinvalid name or version: %r, %rN( R!R)tmatchert ValueErrorRRXtprovidesR tmatch( RRRUR\Rtprovidedtptp_nametp_ver((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytprovides_distribution�s$       cCs;|j|�}|dkr.td|��n|j|�S(u5 Return the path to a resource file. uno distribution named %r foundN(R[R!t LookupErrortget_resource_path(RRt relative_pathR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt get_file_paths ccs�xy|j�D]k}|j}||kr ||}|dk rY||kru||Vquqxx|j�D] }|VqfWq q WdS(u� 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(RXtexportsR!RW(RtcategoryRRREtdtv((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_exported_entries"s     N(RRRR!RRR+R-tpropertyt cache_enabledR.RMRRt classmethodRVRXR[RdRhRm(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR Js    *    $ t DistributioncBs�eZdZeZeZd�Zed��ZeZ ed��Z ed��Z d�Z ed��Z ed��Zed��Zed ��Zed ��Zd �Zd �Zd �Zd�ZRS(u� 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. cCsp||_|j|_|jj�|_|j|_d|_d|_d|_d|_ t �|_ i|_ dS(u� Initialise an instance. :param metadata: The instance of :class:`Metadata` describing this distribution. N( R1RRYRRUR!tlocatortdigesttextrastcontextR3t download_urlstdigests(RR1((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRGs        cCs |jjS(uH The source archive download URL for this distribution. (R1t source_url(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRxXscCsd|j|jfS(uX A utility property which displays the name and version in parentheses. u%s (%s)(RRU(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytname_and_versionascCsB|jj}d|j|jf}||kr>|j|�n|S(u� A set of distribution names and versions provided by this distribution. :return: A set of "name (version)" strings. u%s (%s)(R1R^RRUR(Rtplistts((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR^hs   cCsS|j}tjd|j��t||�}t|j|d|jd|j��S(Nu%Getting requirements from metadata %rRtR2( R1R?R@ttodicttgetattrR3tget_requirementsRtRu(Rtreq_attrtmdtreqts((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_get_requirementsts  cCs |jd�S(Nu run_requires(R�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt run_requires{scCs |jd�S(Nu meta_requires(R�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt meta_requiresscCs |jd�S(Nubuild_requires(R�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytbuild_requires�scCs |jd�S(Nu test_requires(R�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt test_requires�scCs |jd�S(Nu dev_requires(R�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt dev_requires�sc Cs�t|�}t|jj�}y|j|j�}Wn@tk rvtjd|�|j �d}|j|�}nX|j }t }x]|j D]R}t |�\}} ||kr�q�ny|j| �}PWq�tk r�q�Xq�W|S(u� Say if this instance matches (fulfills) a requirement. :param req: The requirement to match. :rtype req: str :return: True if it matches, else False. u+could not read version %r - using name onlyi(R RR1R0R\t requirementRR?twarningtsplitRRR^R R_( RtreqRER0R\RRZRaRbRc((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytmatches_requirement�s*      cCs6|jrd|j}nd}d|j|j|fS(uC Return a textual representation of this instance, u [%s]uu<Distribution %s (%s)%s>(RxRRU(Rtsuffix((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt__repr__�s cCs[t|�t|�k r!t}n6|j|jkoT|j|jkoT|j|jk}|S(u< 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. (ttypeRRRURx(RtotherRZ((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt__eq__�s  cCs't|j�t|j�t|j�S(uH Compute hash in a way which matches the equality test. (thashRRURx(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt__hash__�s(RRRRtbuild_time_dependencyt requestedRRnRxt download_urlRyR^R�R�R�R�R�R�R�R�R�R�(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRq5s$   " tBaseInstalledDistributioncBs,eZdZdZdd�Zdd�ZRS(u] This is the base class for installed distributions (whether PEP 376 or legacy). cCs,tt|�j|�||_||_dS(u 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(tsuperR�RRt dist_path(RR1RR2((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�s  cCs�|dkr|j}n|dkr6tj}d}ntt|�}d|j}||�j�}tj|�jd�j d�}d||fS(u� 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 uu%s=t=uasciiu%s%sN( R!thasherthashlibtmd5R}Rstbase64turlsafe_b64encodetrstriptdecode(RtdataR�tprefixRs((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_hash�s      !N(RRRR!R�RR�(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��s ROcBs�eZdZdZddd�Zd�Zd�Zd�Ze d��Z d�Z d�Z d �Z d �Zed �Zd �Ze d ��Zed�Zd�Zd�Zd�Zd�ZejZRS(u  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). usha256c Cs�tj|�|_}|dkr;ddl}|j�n|rr|jrr||jjkrr|jj|j }n�|dkr$|j t �}|dkr�|j t �}n|dkr�|j d�}n|dkr�t dt |f��ntj|j���}td|dd�}WdQXntt|�j|||�|rb|jrb|jj|�ny|j d�}Wn'tk r�ddl}|j�nX|dk |_dS(Ni����uMETADATAuno %s found in %sR/R0ulegacyu REQUESTED(RR4RDR!tpdbt set_traceR(R&RR1R5RRR]R<R=R>RR�RORRtAttributeErrorR�(RRR1R2RDR�RERL((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRs4  !       cCsd|j|j|jfS(Nu#<InstalledDistribution %r %s at %r>(RRUR(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�2scCsd|j|jfS(Nu%s %s(RRU(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt__str__6sc Cs�g}|jd�}tj|j����}td|��i}x_|D]W}gtt|�d�D] }d^qb}||\}} } |j|| | f�qFWWdQXWdQX|S(u" Get the list of installed files for the distribution :return: A list of tuples of path, hash and size. Note that hash and size might be ``None`` for some entries. The path is exactly as stored in the file (which is as in PEP 376). uRECORDRLiN( tget_distinfo_resourceR<R=R>RtrangetlenR!R( RtresultsRERLt record_readertrowtitmissingRtchecksumtsize((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt _get_records9s (&cCs.i}|jt�}|r*|j�}n|S(u 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�tEXPORTS_FILENAMER (RRZRE((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRiPs cCsLi}|jt�}|rHtj|j���}t|�}WdQXn|S(u� 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(R�R�R<R=R>R (RRZRERL((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR ^s cCs8|jt�}t|d��}t||�WdQXdS(u 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. uwN(tget_distinfo_fileR�topenR (RRitrftf((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR msc Cs�|jd�}tj|j���F}td|��.}x$|D]\}}||kr@|Sq@WWdQXWdQXtd|��dS(uW 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. u RESOURCESRLNu3no resource file with relative path %r is installed(R�R<R=R>RtKeyError(RRgRERLtresources_readertrelativet destination((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRfxs  ccs x|j�D] }|Vq WdS(u� Iterates over the ``RECORD`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: iterator of (path, hash, size) N(R�(RRZ((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytlist_installed_files�sc Cs�tjj|d�}tjj|j�}|j|�}tjj|d�}|jd�}tjd|�|rwdSt |��}x�|D]�}tjj |�s�|j d �r�d} } nCdtjj |�} t |d��} |j| j��} WdQX|j|�s(|r@|j|�r@tjj||�}n|j|| | f�q�W|j|�r�tjj||�}n|j|ddf�WdQX|S( u� 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. uuRECORDu creating %su.pycu.pyou%durbN(u.pycu.pyo(tosRR;tdirnamet startswithR�R?tinfoR!RtisdirR8tgetsizeR�R�treadtrelpathtwriterow( RtpathsR�tdry_runtbasetbase_under_prefixt record_pathtwriterRt hash_valueR�tfp((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytwrite_installed_files�s. ! c Cs�g}tjj|j�}|jd�}xn|j�D]`\}}}tjj|�sptjj||�}n||kr�q7ntjj|�s�|j|dt t f�q7tjj |�r7t tjj |��}|r||kr|j|d||f�q�|r�d|kr3|jdd�d}nd }t|d��G} |j| j�|�} | |kr�|j|d|| f�nWd QXq�q7q7W|S( u� 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. uRECORDuexistsusizeu=iiurbuhashN(R�RR�R�R�tisabsR;texistsRR#RtisfiletstrR�R�R!R�R�R�( Rt mismatchesR�R�RR�R�t actual_sizeR�R�t actual_hash((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytcheck_installed_files�s.    ,cCs�i}tjj|jd�}tjj|�r�tj|ddd��}|j�j�}WdQXx[|D]P}|jdd�\}}|dkr�|j |g�j |�qj|||<qjWn|S( u� 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. uSHAREDurtencodinguutf-8Nu=iu namespace( R�RR;R�tcodecsR�R�t splitlinesR�RR(RRZt shared_pathR�tlinestlineRR,((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytshared_locations�s  c Cs�tjj|jd�}tjd|�|r2dSg}xHdD]@}||}tjj||�r?|jd||f�q?q?Wx+|jd d�D]}|jd |�q�Wt j |d d d ��}|j dj|��WdQX|S(ua 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. uSHAREDu creating %suprefixulibuheadersuscriptsudatau%s=%su namespaceu namespace=%suwR�uutf-8u N(uprefixulibuheadersuscriptsudata(( R�RR;R?R�R!R�RtgetR�R�twrite( RR�R�R�R�RRtnsR�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytwrite_shared_locations�s   cCsi|tkr(td||jf��ntj|j�}|dkr\td|j��n|j|�S(Nu+invalid path for a dist-info file: %r at %ruUnable to get a finder for %s(t DIST_FILESRRRR4R!R5(RRRD((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�s  cCs�|jtj�dkrx|jtj�d\}}||jjtj�dkrxtd||j|jf��qxn|tkr�td||jf��ntjj |j|�S(u� 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 ii����i����u;dist-info file %r does not belong to the %r %s distributionu+invalid path for a dist-info file: %r at %r( R5R�tsepR�RRRRUR�R;(RRRV((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�s ccs}tjj|j�}xa|j�D]S\}}}tjj|�s[tjj||�}n|j|j�r"|Vq"q"WdS(u� 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�RR�R�R�R;R�(RR�RR�R�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytlist_distinfo_files6s cCst|t�o|j|jkS(N(RNROR(RR�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�FsN(RRRR�R!RR�R�R�R RiR R RfR�RR�R�R�R�R�R�R�R�tobjectR�(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRO s(      # #    tEggInfoDistributioncBsqeZdZeZiZd d�Zd�Zd�Z d�Z d�Z d�Z e d�Zd�ZejZRS( uCreated 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.cCs�d�}||_||_|rh|jrh||jjkrh|jj|j}|||j|j�nG|j|�}|||j|j�|r�|jr�|jj|�nt t |�j |||�dS(NcSs%||_|j�|_||_dS(N(RRYRRU(R{tnRl((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytset_name_and_versionXs ( RR�R(R'R1RRUt _get_metadataRR�R�R(RRR2R�R1((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRWs   !c s�d}d���fd�}|jd�rtjj|�r�tjj|dd�}td|dd�}tjj|dd �}||�}q�tj|�}t |j d �j d ��}td |dd�}y(|j d �} �| j d��}Wq�t k rd}q�Xn�|jd�r�tjj|�rttjj|d �}||�}tjj|d�}ntd|dd�}nt d|��|r�|j|�n|S(NcSs�g}|j�}x�|D]�}|j�}|jd�rNtjd|�Pnt|�}|svtjd|�qn|jr�tjd�n|js�|j|j �qdj d�|jD��}|jd|j |f�qW|S(u�Create a list of dependencies from a requires.txt file. *data*: the contents of a setuptools-produced requires.txt file. u[u.Unexpected line: quitting requirement scan: %ru#Not recognised as a requirement: %ru4extra requirements in requires.txt are not supportedu, css|]}d|VqdS(u%s%sN((t.0tc((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pys <genexpr>�su%s (%s)( R�tstripR�R?R�R Rtt constraintsRRR;(R�treqsR�R�REtcons((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytparse_requires_dataos&       csRg}y4tj|dd��}�|j��}WdQXWntk rMnX|S(u�Create a list of dependencies from a requires.txt file. *req_path*: the path to a setuptools-produced requires.txt file. uruutf-8N(R�R�R�tIOError(treq_pathR�R�(R�(s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytparse_requires_path�s u.egguEGG-INFOuPKG-INFORR0ulegacyu requires.txtuEGG-INFO/PKG-INFOuutf8R/uEGG-INFO/requires.txtuutf-8u .egg-infou,path must end with .egg-info or .egg, got %r(R!R8R�RR�R;Rt zipimportt zipimporterRtget_dataR�R�Rtadd_requirements( RRtrequiresR�t meta_pathR1R�tzipfR/R�((R�s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�ls:     cCsd|j|j|jfS(Nu!<EggInfoDistribution %r %s at %r>(RRUR(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��scCsd|j|jfS(Nu%s %s(RRU(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��scCs�g}tjj|jd�}tjj|�r�x`|j�D]O\}}}||kr^q=ntjj|�s=|j|dttf�q=q=Wn|S(u� 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. uinstalled-files.txtuexists(R�RR;R�R�RR#R(RR�R�Rt_((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��s  #c Cs2d�}d�}tjj|jd�}g}tjj|�r.tj|ddd���}x�|D]�}|j�}tjjtjj|j|��}tjj|�s�tj d|�|j d �r�qdq�ntjj |�sd|j |||�||�f�qdqdWWd QX|j |d d f�n|S( u� Iterates over the ``installed-files.txt`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: a list of (path, hash, size) cSs@t|d�}z|j�}Wd|j�Xtj|�j�S(Nurb(R�R�tcloseR�R�t hexdigest(RR�tcontent((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_md5�s  cSstj|�jS(N(R�tstattst_size(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt_size�suinstalled-files.txturR�uutf-8uNon-existent file: %su.pycu.pyoN(u.pycu.pyo(R�RR;R�R�R�R�tnormpathR?R�R8R�RR!(RRRR�RZR�R�Ra((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��s"    $ /c cs�tjj|jd�}t}tj|ddd���}x�|D]}|j�}|dkrjt}q@n|s@tjjtjj|j|��}|j |j�r�|r�|Vq�|Vq�q@q@WWdQXdS(u  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 uinstalled-files.txturR�uutf-8u./N( R�RR;R#R�R�R�RRR�(RtabsoluteR�tskipR�R�Ra((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��s    $cCst|t�o|j|jkS(N(RNR�R(RR�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�sN(RRRR#R�R�R!RR�R�R�R�R�RR�R�R�R�(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR�Ns  K    &  tDependencyGraphcBsheZdZd�Zd�Zd d�Zd�Zd�Zdd�Z e d�Z d �Z d �Z RS( u� 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. cCsi|_i|_i|_dS(N(tadjacency_listt reverse_listR�(R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR.s  cCsg|j|<g|j|<dS(u�Add the *distribution* to the graph. :type distribution: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` N(RR (Rt distribution((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytadd_distribution3s cCsH|j|j||f�||j|krD|j|j|�ndS(u�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(RRR (Rtxtytlabel((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytadd_edge=s cCs3tjd||�|jj|g�j|�dS(u Add a missing *requirement* for the given *distribution*. :type distribution: :class:`distutils2.database.InstalledDistribution` or :class:`distutils2.database.EggInfoDistribution` :type requirement: ``str`` u %s missing %rN(R?R@R�RR(RR R�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt add_missingLscCsd|j|jfS(Nu%s %s(RRU(RR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt _repr_distWsicCs�|j|�g}x�|j|D]�\}}|j|�}|dk rZd||f}n|jd|t|��|j||d�}|jd�}|j|d�q Wdj|�S(uPrints only a subgraphu%s [%s]u iu N( RRR!RR�t repr_nodeR�textendR;(RRtleveltoutputR�Rt suboutputtsubs((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRZs cCsRg}|jd�x�|jj�D]�\}}t|�dkrX| rX|j|�nx`|D]X\}}|d k r�|jd|j|j|f�q_|jd|j|jf�q_Wq#W| rAt|�dkrA|jd�|jd�|jd�x/|D]'}|jd|j�|jd �qW|jd �n|jd �d S( u9Writes 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`` udigraph dependencies { iu"%s" -> "%s" [label="%s"] u "%s" -> "%s" usubgraph disconnected { ulabel = "Disconnected" ubgcolor = red u"%s"u u} N(R�RtitemsR�RR!R(RR�tskip_disconnectedt disconnectedRtadjsR�R((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytto_dotgs&    %    cCs=g}i}x(|jj�D]\}}|||<qWx�tr&g}x>t|j��D])\}}|sZ|j|�||=qZqZW|s�PnxO|j�D]A\}}g|D]$\}}||kr�||f^q�||<q�Wtjdg|D]}d|j|jf^q��|j |�q:W|t|j ��fS(ua 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. uMoving to result: %su%s (%s)( RRR#tlistRR?R@RRURtkeys(RRZtalisttkRlt to_removeRkRE((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyttopological_sort�s$   9 *cCsIg}x3|jj�D]"\}}|j|j|��qWdj|�S(uRepresentation of the graphu (RRRRR;(RRRR((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyR��sN(RRRRR R!RRRRR#RR"R�(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyRs    udefaultcCs�t|�}t�}i}xv|D]n}|j|�xX|jD]M}t|�\}}tjd|||�|j|g�j||f�q?Wq"Wx5|D]-}|j |j B|j B|j B}x|D]�} y|j | �} Wn@tk r!tjd| �| j�d}|j |�} nX| j}t} ||kr�xk||D]\\}} y| j|�} Wntk r�t} nX| rH|j|| | �t} PqHqHWn| s�|j|| �q�q�Wq�W|S(u6Makes 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 uAdd to provided: %s, %s, %su+could not read version %r - using name onlyi(RRR R^R R?R@RRR�R�R�R�R\RR�R�RRR_RR#R(tdistsR0tgraphR`RRaRRUR�R�R\tmatchedtproviderR_((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt make_graph�sD    '         cCs�||kr"td|j��nt|�}|g}|j|}xW|r�|j�}|j|�x1|j|D]"}||krt|j|�qtqtWqGW|jd�|S(u�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 u1given distribution %r is not a member of the listi(RRR'R tpopR(R#RR$tdepttodoRktsucc((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_dependent_dists�s         cCs�||kr"td|j��nt|�}g}|j|}x[|r�|j�d}|j|�x1|j|D]"}||kru|j|�ququWqDW|S(u�Recursively 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 u1given distribution %r is not a member of the listi(RRR'RR(R(R#RR$R�R*Rktpred((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pytget_required_dists�s      cKsI|jdd�}t|�}||_||_|p9d|_t|�S(uO A convenience method for making a dist given just a name and version. usummaryuPlaceholder for summary(R(RRRUtsummaryRq(RRUtkwargsR/R�((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt make_dists    (6Rt __future__RR�R�R<R�tloggingR�R:R"R�tRRtcompatRRURRR1RRRtutilR R R R R RRt__all__t getLoggerRR?R�tCOMMANDS_FILENAMER�R9R�RR RqR�ROR�RARBRR'R,R.R1(((s@/usr/lib/python2.7/site-packages/pip/_vendor/distlib/database.pyt<module>sL         4  ��7�F�� 6