ó ÀfcF@@sò dZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZyddlZWnek r]ddlZnXddlmZddl m!Z!m"Z"m#Z#ddlm$Z$y&ddlm%Z%m&Z&m'Z'e(Z)Wnek rÙe*Z)nXdd lm+Z,dd l-m.Z.m/Z/yddl0j1Z2e2j3Wnek r3e4Z2nXd d l5m6Z6dd lm7Z7ddlm8Z8e9dƒe9dƒe9dƒe9dƒddfej:ko²ddfknrÆe;dƒ‚nej<rÞe4Z=e4Z>ne4Z?e4Z@e4ZAe4ZBe4ZCe4ZDe4ZEe4ZFe4ZGe4ZHe4ZIe4ZJe4ZKe4ZLe4ZMe4ZNe4ZOdePfd„ƒYZQd„ZRiZSd„ZTd„ZUd„ZVd„ZWd„ZXd„ZYd„ZZd„Z[Z\d „Z]d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@ddAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_d`dadbdcdddegFZ^d<e_fdf„ƒYZ`d=e`fdg„ƒYZadheafdi„ƒYZbd>e`fdj„ƒYZcd?e`fdk„ƒYZdiZeejfd ZgdZhdlZid ZjdZkdmZldn„Zmdo„Zngdp„Zodq„Zpdr„ZqejrdsƒZsejrdtƒZteqZudu„Zvdv„ZwewZxdw„Zydx„Zze4dy„Z{dz„Z|dTfd{„ƒYZ}dUe}fd|„ƒYZ~d7efd}„ƒYZ€d~e�fd„ƒYZ‚d6efd€„ƒYZƒeƒZ„d@e;fd�„ƒYZ…d8fd‚„ƒYZ†dƒ„Z‡d„„Zˆd…„Z‰d†„ZŠd‡„Z‹dˆ„ZŒe4d‰„Z�d[fdŠ„ƒYZŽemeeŽƒd\eŽfd‹„ƒYZ�d]e�fdŒ„ƒYZ�e�j‘ƒdYeŽfd�„ƒYZ’e’ƒZ“dŽe�fd�„ƒYZ”d�e”fd‘„ƒYZ•d^e�fd’„ƒYZ–eme j—e–ƒdVe’fd“„ƒYZ˜dWe�fd”„ƒYZ™dXe–fd•„ƒYZšeTd–d—iƒd˜„Z›e*d™„Zœe*dš„Z�e›e j—e�ƒe*d›„Zže›eežƒdœ„ZŸe*d�„Z dž„Z¡dŸfd „ƒYZ¢d¡„Z£d¢„Z¤d£„Z¥d¤„Z¦e›ej§e ƒe¨e2d¥ƒrŽe›e2j©e ƒneTd–d¦iƒeTd–d§iƒd¨„Zªd©„Z«dª„Z¬d«„Z­e4d¬„Z®d­„Z¯eªej§e¯ƒeªe j—e¯ƒe¨e2d¥ƒr) eªe2j©e¯ƒnd®„Z°eªee°ƒd¯„Z±id°„Z²d±„Z³d²„Z´d³„Zµd´„Z¶ejrdµƒj·Z¸ejrd¶ej¹ejºBƒj·Z»d;efd·„ƒYZ¼d¸„Z½d¹„Z¾d9efdº„ƒYZ¿d»e¿fd¼„ƒYZÀd½e¿fd¾„ƒYZÁie¿d¿6eÀdÀ6eÁdÁ6ZÂd„ZÃdÃeÄfdÄ„ƒYZÅdÅ„ZÆd:e8jÇjÈfdÆ„ƒYZÈdÇ„ZÉdÈ„ZÊdÉ„ZËdÊ„ZÌdË„ZÍdÌ„ZÎe jÏdÍdÎeQdÏe(ƒdЄZÐeÐeуdÑ„ƒZÒeÐdÒ„ƒZÓdS(ÓsZ Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipulate resource names being passed into the API. The package resource API is designed to work with normal filesystem packages, .egg files, and unpacked .egg files. It can also work in a limited way with .zip files and with custom PEP 302 loaders that support the ``get_data()`` method. i(tabsolute_importN(t get_importer(tsix(turllibtmaptfilter(tutime(tmkdirtrenametunlink(topen(tisdirtspliti(t py31compat(tappdirs(t packagings&pkg_resources.extern.packaging.versions)pkg_resources.extern.packaging.specifierss+pkg_resources.extern.packaging.requirementss&pkg_resources.extern.packaging.markersisPython 3.3 or later is requiredt PEP440WarningcB@seZdZRS(sa Used when there is an issue with a version or specifier not complying with PEP 440. (t__name__t __module__t__doc__(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRnscC@s?ytjj|ƒSWn$tjjk r:tjj|ƒSXdS(N(RtversiontVersiontInvalidVersiont LegacyVersion(tv((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt parse_versionuscK@s-tƒj|ƒtjtj||ƒƒdS(N(tglobalstupdatet _state_varstdicttfromkeys(tvartypetkw((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_declare_statescC@sLi}tƒ}x6tjƒD](\}}|d|||ƒ||¤tcC@s{tƒ}tj|ƒ}|dk rwtjdkrwy-ddjtƒd ƒ|jdƒf}Wqwt k rsqwXn|S(sZReturn this platform's maximum compatible version. distutils.util.get_platform() normally reports the minimum version of Mac OS X that would be required to *use* extensions produced by distutils. But what we want when checking compatibility is to know the version of Mac OS X that we are *running*. To allow usage of packages that explicitly require a newer version of Mac OS X, we must also know the current version of the OS. If this condition occurs for any other platform with a version in its platform strings, this function should be extended accordingly. tdarwins macosx-%s-%st.iiN( tget_build_platformtmacosVersionStringtmatchR3tsystplatformtjoint _macosx_verstgroupt ValueError(tplattm((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_supported_platform§s - trequiret run_scriptt get_providertget_distributiontload_entry_pointt get_entry_maptget_entry_infotiter_entry_pointstresource_stringtresource_streamtresource_filenametresource_listdirtresource_existstresource_isdirtdeclare_namespacet working_settadd_activation_listenertfind_distributionstset_extraction_pathtcleanup_resourcestget_default_cachet Environmentt WorkingSettResourceManagert Distributiont Requirementt EntryPointtResolutionErrortVersionConflicttDistributionNotFoundt UnknownExtratExtractionErrortparse_requirementsRt safe_namet safe_versiont get_platformtcompatible_platformst yield_linestsplit_sectionst safe_extrat to_filenametinvalid_markertevaluate_markertensure_directorytnormalize_pathtEGG_DISTt BINARY_DISTt SOURCE_DISTt CHECKOUT_DISTt DEVELOP_DISTtIMetadataProvidertIResourceProvidert FileMetadatat PathMetadatat EggMetadatat EmptyProvidertempty_providert NullProvidert EggProvidertDefaultProvidert ZipProvidertregister_findertregister_namespace_handlertregister_loader_typetfixup_namespace_packagesRtrun_maintAvailableDistributionscB@seZdZd„ZRS(s.Abstract base for dependency resolution errorscC@s|jjt|jƒS(N(t __class__RtreprR4(tself((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__repr__ñs(RRRR‹(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR`îscB@sDeZdZdZed„ƒZed„ƒZd„Zd„ZRS(sª An already-installed version conflicts with the requested version. Should be initialized with the installed Distribution and the requested Requirement. s3{self.dist} is installed but {self.req} is requiredcC@s |jdS(Ni(R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytdistÿscC@s |jdS(Ni(R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytreqscC@s|jjtƒ�S(N(t _templatetformattlocals(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytreportscC@s$|s |S|j|f}t|ŒS(st If required_by is non-empty, return a version of self that is a ContextualVersionConflict. (R4tContextualVersionConflict(RŠt required_byR4((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt with_context s( RRRRŽtpropertyRŒR�R‘R”(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRaõs  R’cB@s*eZdZejdZed„ƒZRS(s… A VersionConflict that accepts a third parameter, the set of the requirements that required the installed Distribution. s by {self.required_by}cC@s |jdS(Ni(R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR“s(RRRRaRŽR•R“(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR’s cB@sSeZdZdZed„ƒZed„ƒZed„ƒZd„Zd„Z RS(s&A requested distribution was not foundsSThe '{self.req}' distribution was not found and is required by {self.requirers_str}cC@s |jdS(Ni(R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR�(scC@s |jdS(Ni(R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt requirers,scC@s|js dSdj|jƒS(Nsthe applications, (R–R>(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt requirers_str0s cC@s|jjtƒ�S(N(RŽR�R�(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‘6scC@s |jƒS(N(R‘(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__str__9s( RRRRŽR•R�R–R—R‘R˜(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRb"s cB@seZdZRS(s>Distribution doesn't have an "extra feature" of the given name(RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRc=siiÿÿÿÿcC@s|t|eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cC@sdS(s;Does the package's distribution contain the named metadata?N((RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt has_metadataîR6cC@sdS(s'The named metadata resource as a stringN((RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt get_metadatañR6cC@sdS(sÒYield named metadata resource as list of non-blank non-comment lines Leading and trailing whitespace is stripped from each line, and lines with ``#`` as the first non-blank character are omitted.N((RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_metadata_linesôR6cC@sdS(s>Is the named metadata a directory? (like ``os.path.isdir()``)N((RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytmetadata_isdirúR6cC@sdS(s?List of metadata names in the directory (like ``os.listdir()``)N((RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytmetadata_listdirýR6cC@sdS(s=Execute the named script in the supplied namespace dictionaryN((RÐt namespace((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRFR6(RRRÖR×RØRÙRÚRF(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRwís      cB@sDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s3An object that provides access to package resourcescC@sdS(sdReturn a true filesystem path for `resource_name` `manager` must be an ``IResourceManager``N((tmanagert resource_name((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_filenameR6cC@sdS(siReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``N((RÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_stream R6cC@sdS(smReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``N((RÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_resource_stringR6cC@sdS(s,Does the package contain the named resource?N((RÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt has_resourceR6cC@sdS(s>Is the named resource a directory? (like ``os.path.isdir()``)N((RÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRRR6cC@sdS(s?List of resource names in the directory (like ``os.listdir()``)N((RÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRPR6( RRRRÞRßRàRáRRRP(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRxs     cB@sÚeZdZdd„Zed„ƒZed„ƒZd„Zd„Z d„Z dd„Z d„Z d „Z deed „Zddedd „Zdded „Zd „Zed„Zd„Zd„Zd„ZRS(sDA collection of active distributions on sys.path (or a similar list)cC@s^g|_i|_i|_g|_|dkr<tj}nx|D]}|j|ƒqCWdS(s?Create working set from list of path entries (default=sys.path)N(tentriest entry_keystby_keyt callbacksR3R<R¬t add_entry(RŠRâtentry((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__init__#s       cC@se|ƒ}yddlm}Wntk r1|SXy|j|ƒWntk r`|j|ƒSX|S(s1 Prepare the master working set. i(t __requires__(t__main__RéR½RERat_build_from_requirements(tclstwsRé((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _build_master0s   cC@s�|gƒ}t|ƒ}|j|tƒƒ}x|D]}|j|ƒq4Wx0tjD]%}||jkrU|j|ƒqUqUW|jtj(|S(sQ Build a working set from a requirement spec. Rewrites sys.path. (RetresolveRZtaddR<R¬RâRæ(Rìtreq_specRítreqstdistsRŒRç((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRëDs    cC@sT|jj|gƒ|jj|ƒx*t|tƒD]}|j||tƒq3WdS(sÝAdd a path item to ``.entries``, finding any distributions on it ``find_distributions(entry, True)`` is used to find distributions corresponding to the path entry, and they are added. `entry` is always appended to ``.entries``, even if it is already present. (This is because ``sys.path`` can contain the same value more than once, and the ``.entries`` of the ``sys.path`` WorkingSet should always equal ``sys.path``.) N(Rãt setdefaultRâR°RVRÃRðRÅ(RŠRçRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRæZs cC@s|jj|jƒ|kS(s9True if `dist` is the active distribution for its project(RäR·R.(RŠRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __contains__iscC@sC|jj|jƒ}|dk r?||kr?t||ƒ‚n|S(sÐFind a distribution matching requirement `req` If there is an active distribution for the requested project, this returns it as long as it meets the version requirement specified by `req`. But, if there is an active distribution for the project and it does *not* meet the `req` requirement, ``VersionConflict`` is raised. If there is no active distribution for the requested project, ``None`` is returned. N(RäR·R.R3Ra(RŠR�RŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRžms cc@sgx`|D]X}|j|ƒ}|dkrGx4|jƒD] }|Vq5Wq||kr||VqqWdS(sYield entry point objects from `group` matching `name` If `name` is None, yields all entry points in `group` from all distributions in the working set, otherwise only ones matching both `group` and `name` are yielded (in distribution order). N(RJR3tvalues(RŠR@RÒRŒRâtep((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRL}s    cC@sQtjdƒj}|d}|jƒ||d<|j|ƒdj||ƒdS(s?Locate distribution for `requires` and run `script_name` scriptiRiN(R<RÍRÎR-RERF(RŠtrequiresRÐRÑRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRFŒs    cc@spi}xc|jD]X}||jkr+qnx:|j|D]+}||kr9d||<|j|Vq9q9WqWdS(s¸Yield distributions for non-duplicate projects in the working set The yield order is the order in which the items' path entries were added to the working set. iN(RâRãRä(RŠtseentitemR.((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__iter__”s  cC@sé|r"|j|j|d|ƒn|dkr:|j}n|jj|gƒ}|jj|jgƒ}| r„|j|jkr„dS||j|j<|j|kr¶|j|jƒn|j|krØ|j|jƒn|j |ƒdS(sAdd `dist` to working set, associated with `entry` If `entry` is unspecified, it defaults to the ``.location`` of `dist`. On exit from this routine, `entry` is added to the end of the working set's ``.entries`` (if it wasn't already present). `dist` is only added to the working set if it's for a project that doesn't already have a distribution in the set, unless `replace=True`. If it's added, any callbacks registered with the ``subscribe()`` method will be called. RÁN( t insert_onRâR3tlocationRãRôR.RäR°t _added_new(RŠRŒRçtinsertRÁtkeystkeys2((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRð¥s   cC@s+t|ƒddd…}i}i}g}tƒ} tjtƒ} xá|r&|jdƒ} | |krmqFn| j| |ƒs…qFn|j| jƒ} | dkrŠ|j j| jƒ} | dksÖ| | krz|rz|} |dkr!| dkrt |j ƒ}q!t gƒ}t gƒ} n|j| | |d|ƒ} || j<| dkrz| j| dƒ}t| |ƒ‚qzn|j| ƒn| | kr»| | }t| | ƒj|ƒ‚n| j| jƒddd…}|j|ƒx/|D]'}| |j| jƒ| j| | Map each requirement to the extras that demanded it. c@s@‡fd†|jˆdƒ|p$dDƒ}ˆj p?t|ƒS(s» Evaluate markers for req against each extra that demanded it. Return False if the req has a marker and fails evaluation. Otherwise, return True. c3@s(|]}ˆjji|d6ƒVqdS(textraN(tmarkertevaluate(t.0R)(R�(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys ±s(N(N(R·R3R*tany(RŠR�R t extra_evals((R�s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR ¨s  N(RRRR3R (((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR£scB@s‰eZdZd eƒed„Zd„Zd„Zd d„Z d„Z d„Z d e d„Z d d„Zd „Zd „Zd „ZRS( s5Searchable snapshot of distributions on a search pathcC@s,i|_||_||_|j|ƒdS(s!Snapshot distributions available on a search path Any distributions found on `search_path` are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. `platform` is an optional string specifying the name of the platform that platform-specific distributions must be compatible with. If unspecified, it defaults to the current platform. `python` is an optional string naming the desired version of Python (e.g. ``'3.3'``); it defaults to the current version. You may explicitly set `platform` (and/or `python`) to ``None`` if you wish to map *all* distributions, not just those compatible with the running platform or Python version. N(t_distmapR=tpythontscan(RŠt search_pathR=R0((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèºs   cC@sI|jdkp-|jdkp-|j|jk}|oHt|j|jƒS(såIs distribution `dist` acceptable for this environment? The distribution must match the platform and python version requirements specified when this environment was created, or False is returned. N(R0R3t py_versionRiR=(RŠRŒt py_compat((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytcan_addÒscC@s|j|jj|ƒdS(s"Remove `dist` from the environmentN(R/R.tremove(RŠRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR6àscC@sQ|dkrtj}nx2|D]*}x!t|ƒD]}|j|ƒq2WqWdS(sdScan `search_path` for distributions usable in this environment Any distributions found are added to the environment. `search_path` should be a sequence of ``sys.path`` items. If not supplied, ``sys.path`` is used. Only distributions conforming to the platform/python version defined at initialization are added. N(R3R<R¬RVRð(RŠR2RúRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR1äs    cC@s|jƒ}|jj|gƒS(sReturn a newest-to-oldest list of distributions for `project_name` Uses case-insensitive `project_name` comparison, assuming all the project's distributions use their project's name converted to all lowercase as their key. (tlowerR/R·(RŠR tdistribution_key((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __getitem__ós cC@su|j|ƒrq|jƒrq|jj|jgƒ}||krq|j|ƒ|jdtjdƒdt ƒqqndS(sLAdd `dist` if we ``can_add()`` it and it has not already been added R.thashcmptreverseN( R5t has_versionR/RôR.R°Rtoperatort attrgetterRÃ(RŠRŒRó((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRðþs   cC@s�y|j|ƒ}Wn#tk r8|s/‚nd}nX|dk rI|Sx%||jD]}||krW|SqWW|j||ƒS(s¸Find distribution best matching `req` and usable on `working_set` This calls the ``find(req)`` method of the `working_set` to see if a suitable distribution is already active. (This may raise ``VersionConflict`` if an unsuitable version of the project is already active in the specified `working_set`.) If a suitable distribution isn't active, this method returns the newest distribution in the environment that meets the ``Requirement`` in `req`. If no suitable distribution is found, and `installer` is supplied, then the result of calling the environment's ``obtain(req, installer)`` method will be returned. N(RžRaR3R.tobtain(RŠR�RTRRRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR s    cC@s|dk r||ƒSdS(sÞObtain a distribution matching `requirement` (e.g. via download) Obtain a distro that matches requirement (e.g. via download). In the base ``Environment`` class, this routine just returns ``installer(requirement)``, unless `installer` is None, in which case None is returned instead. This method is a hook that allows subclasses to attempt other ways of obtaining a distribution before falling back to the `installer` argument.N(R3(RŠt requirementR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR?#s cc@s0x)|jjƒD]}||r|VqqWdS(s=Yield the unique project names of the available distributionsN(R/R(RŠR.((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRû/s cC@s{t|tƒr|j|ƒnXt|tƒrdxF|D](}x||D]}|j|ƒqFWq5Wntd|fƒ‚|S(s2In-place addition of a distribution or environmentsCan't add %r to environment(R�R]RðRZRÕ(RŠtothertprojectRŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__iadd__5s cC@s@|jgddddƒ}x||fD]}||7}q(W|S(s4Add an environment or distribution to an environmentR=R0N(RˆR3(RŠRAtnewR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__add__AsN(RRRR3RDtPY_MAJORRèR5R6R1R9RðRÅR R?RûRCRE(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRZ·s        cB@seZdZRS(sTAn error occurred extracting a resource The following attributes are available from instances of this exception: manager The resource manager that raised this exception cache_path The base directory for resource extraction original_error The exception instance that caused extraction to fail (RRR(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRdMs cB@s•eZdZdZd„Zd„Zd„Zd„Zd„Z d„Z d„Z d„Z dd „Z ed „ƒZd „Zd „Zed „ZRS(s'Manage resource extraction and packagescC@s i|_dS(N(t cached_files(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèascC@st|ƒj|ƒS(sDoes the named resource exist?(RGRá(RŠtpackage_or_requirementRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRQdscC@st|ƒj|ƒS(s,Is the named resource an existing directory?(RGRR(RŠRHRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRRhs cC@st|ƒj||ƒS(s4Return a true filesystem path for specified resource(RGRÞ(RŠRHRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyROns cC@st|ƒj||ƒS(s9Return a readable file-like object for specified resource(RGRß(RŠRHRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRNts cC@st|ƒj||ƒS(s%Return specified resource as a string(RGRà(RŠRHRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRMzs cC@st|ƒj|ƒS(s1List the contents of the named resource directory(RGRP(RŠRHRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRP€s cC@sttjƒd}|jptƒ}tjdƒjƒ}t|jt ƒ�ƒ}||_ ||_ ||_ |‚dS(s5Give an error message for problems extracting file(s)is Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: {old_exc} The Python egg cache directory is currently set to: {cache_path} Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. N( R<texc_infotextraction_pathRYttextwraptdedenttlstripRdR�R�RÜt cache_pathtoriginal_error(RŠtold_excRNttmplterr((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytextraction_error†s   cC@sx|jptƒ}tjj||d|Œ}yt|ƒWntk rY|jƒnX|j|ƒd|j |<|S(s®Return absolute location in cache for `archive_name` and `names` The parent directory of the resulting path will be created if it does not already exist. `archive_name` should be the base filename of the enclosing egg (which may not be the name of the enclosing zipfile!), including its ".egg" extension. `names`, if provided, should be a sequence of path name parts "under" the egg's extraction location. This method should only be called by resource providers that need to obtain an extraction location, and only for names they intend to extract, as it tracks the generated names for possible cleanup later. s-tmpi( RJRYR«R¬R>t_bypass_ensure_directoryt ExceptionRSt_warn_unsafe_extraction_pathRG(RŠt archive_nametnamest extract_patht target_path((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytget_cache_path¢s    cC@swtjdkr*|jtjdƒ r*dStj|ƒj}|tj@sV|tj@rsd|}tj |t ƒndS(sN If the default extraction path is overridden and set to an insecure location, such as /tmp, it opens up an opportunity for an attacker to replace an extracted file with an unauthorized payload. Warn the user if a known insecure location is used. See Distribute #375 for more details. tnttwindirNsË%s is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable).( R«RÒR¿tenvirontstattst_modetS_IWOTHtS_IWGRPtwarningstwarnt UserWarning(R¬tmodetmsg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRV»s &cC@s@tjdkr<tj|ƒjdBd@}tj||ƒndS(s4Perform any platform-specific postprocessing of `tempname` This is where Mac header rewrites should be done; other platforms don't have anything special they should do. Resource providers should call this method ONLY after successfully extracting a compressed resource. They must NOT call it on resources that are already in the filesystem. `tempname` is the current (temporary) name of the file, and `filename` is the name it will be renamed to by the caller after this routine returns. tposiximiÿN(R«RÒR_R`tchmod(RŠttempnametfilenameRf((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt postprocessÕscC@s%|jrtdƒ‚n||_dS(sÒSet the base path where resources will be extracted to, if needed. If you do not call this routine before any extractions take place, the path defaults to the return value of ``get_default_cache()``. (Which is based on the ``PYTHON_EGG_CACHE`` environment variable, with various platform-specific fallbacks. See that routine's documentation for more details.) Resources are extracted to subdirectories of this path based upon information given by the ``IResourceProvider``. You may set this to a temporary directory, but then you must call ``cleanup_resources()`` to delete the extracted files when done. There is no guarantee that ``cleanup_resources()`` will be able to remove all extracted files. (Note: you may not change the extraction path for a given resource manager once resources have been extracted, unless you first call ``cleanup_resources()``.) s5Can't change extraction path, files already extractedN(RGRARJ(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRWés  cC@sdS(sB Delete all extracted resource files and directories, returning a list of the file and directory names that could not be successfully removed. This function does not have any concurrency protection, so it should generally only be called when the extraction path is a temporary directory exclusive to a single process. This method is not automatically called; you must call it explicitly or register it as an ``atexit`` function if you wish to ensure cleanup of a temporary directory used for extractions. N((RŠtforce((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRXR6N((RRRR3RJRèRQRRRORNRMRPRSR[t staticmethodRVRlRWRÅRX(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR\]s           cC@s"tjjdƒp!tjddƒS(sŒ Return the ``PYTHON_EGG_CACHE`` environment variable or a platform-relevant user cache dir for an app named "Python-Eggs". tPYTHON_EGG_CACHEtappnames Python-Eggs(R«R^R·Rtuser_cache_dir(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRYscC@stjdd|ƒS(s�Convert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters are replaced with a single '-'. s[^A-Za-z0-9.]+t-(tretsub(RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRfscC@sZyttjj|ƒƒSWn9tjjk rU|jddƒ}tjdd|ƒSXdS(sB Convert an arbitrary string to a standard version string RºR8s[^A-Za-z0-9.]+RrN(RŸRRRRRÁRsRt(R((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRg%s cC@stjdd|ƒjƒS(s±Convert an arbitrary string to a standard 'extra' name Any runs of non-alphanumeric characters are replaced with a single '_', and the result is always lowercased. s[^A-Za-z0-9.-]+R»(RsRtR7(R)((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRl1scC@s|jddƒS(s|Convert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. RrR»(RÁ(RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRm:scC@s;yt|ƒWn&tk r6}d|_d|_|SXtS(so Validate text as a PEP 508 environment marker; return an exception if invalid or False otherwise. N(Rot SyntaxErrorR3RktlinenoRÅ(ttextte((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRnBs  cC@sLy tjj|ƒ}|jƒSWn%tjjk rG}t|ƒ‚nXdS(sÙ Evaluate a PEP 508 environment marker. Return a boolean indicating the marker result in this environment. Raise SyntaxError if marker is invalid. This implementation uses the 'pyparsing' module. N(RtmarkerstMarkerR+t InvalidMarkerRu(RwR)R*Rx((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRoPs cB@sÂeZdZdZdZdZd„Zd„Zd„Z d„Z d„Z d„Z d„Z d„Zd „Zd „Zd „Zd „Zd „Zd„Zd„Zd„Zd„Zd„ZRS(sETry to implement resources and metadata for arbitrary PEP 302 loaderscC@s:t|ddƒ|_tjjt|ddƒƒ|_dS(NRœt__file__R6(R£R3R§R«R¬tdirnamet module_path(RŠR¦((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèfscC@s|j|j|ƒS(N(t_fnR~(RŠRÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÞjscC@stj|j||ƒƒS(N(tiotBytesIORà(RŠRÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRßmscC@s|j|j|j|ƒƒS(N(t_getRR~(RŠRÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRàpscC@s|j|j|j|ƒƒS(N(t_hasRR~(RŠRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRásscC@s%|jo$|j|j|j|ƒƒS(N(tegg_infoRƒR(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÖvscC@sE|js dS|j|j|j|ƒƒ}tjrA|jdƒS|S(NR6sutf-8(R„R‚RRtPY3tdecode(RŠRÒtvalue((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR×ys cC@st|j|ƒƒS(N(RjR×(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRØscC@s|j|j|j|ƒƒS(N(t_isdirRR~(RŠRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRR‚scC@s%|jo$|j|j|j|ƒƒS(N(R„RˆR(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÙ…scC@s|j|j|j|ƒƒS(N(t_listdirRR~(RŠRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRPˆscC@s)|jr%|j|j|j|ƒƒSgS(N(R„R‰R(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÚ‹s c B@sd|}|j|ƒs4edjeƒ�ƒ‚n|j|ƒjddƒ}|jddƒ}|j|j|ƒ}||dR (RŠtbaseRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR¶scC@s2t|jdƒr"|jj|ƒStdƒ‚dS(Ntget_datas=Can't perform this operation for loaders without 'get_data()'(R®R§R™R–(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‚»sN(RRRR3tegg_nameR„R§RèRÞRßRàRáRÖR×RØRRRÙRPRÚRFRƒRˆR‰RR‚(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR~_s,                 cB@s eZdZd„Zd„ZRS(s&Provider based on a virtual filesystemcC@stj||ƒ|jƒdS(N(R~Rèt _setup_prefix(RŠR¦((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèÉscC@sŠ|j}d}xt||kr…t|ƒrdtjj|ƒ|_tjj|dƒ|_||_ Pn|}tjj |ƒ\}}qWdS(NsEGG-INFO( R~R3t _is_egg_pathR«R¬tbasenameRšR>R„tegg_rootR (RŠR¬toldR˜((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR›Ís   (RRRRèR›(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÆs cB@sJeZdZd„Zd„Zd„Zd„Zd„Zed„ƒZ RS(s6Provides access to package resources in the filesystemcC@stjj|ƒS(N(R«R¬R­(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRƒßscC@stjj|ƒS(N(R«R¬R (RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRˆâscC@s tj|ƒS(N(R«tlistdir(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‰åscC@st|j|j|ƒdƒS(Ntrb(R RR~(RŠRÜRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRßèscC@s&t|dƒ�}|jƒSWdQXdS(NR¡(R RŒ(RŠR¬tstream((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‚ëscC@s)ttdtdƒƒ}t||ƒdS(NtSourceFileLoader(R£timportlib_machineryttypeR3R„(Rìt loader_cls((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _registerïs ( RRRRƒRˆR‰RßR‚R(R§(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR€Üs     cB@s<eZdZdZd„ZZd„Zd„Zd„Z RS(s.Provider that returns nothing for all requestscC@stS(N(RÅ(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5R6cC@sdS(NR6((RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‚scC@sgS(N((RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‰scC@sdS(N((RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRè sN( RRRR3R~RˆRƒR‚R‰Rè(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR|üs    t ZipManifestscB@s#eZdZed„ƒZeZRS(s zip manifest builder c@sBtj|ƒ�-‰‡fd†ˆjƒDƒ}t|ƒSWdQXdS(s Build a dictionary similar to the zipimport directory caches, except instead of tuples, store ZipInfo objects. Use a platform-specific path separator (os.sep) for the path keys for compatibility with pypy on Windows. c3@s3|])}|jdtjƒˆj|ƒfVqdS(R—N(RÁR«tseptgetinfo(R,RÒ(tzfile(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys sN(tzipfiletZipFiletnamelistR(RìR¬R#((R«s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytbuilds  (RRRR(R¯tload(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR¨stMemoizedZipManifestscB@s)eZdZejddƒZd„ZRS(s% Memoized zipfile manifests. t manifest_modsmanifest mtimecC@svtjj|ƒ}tj|ƒj}||ksC||j|krk|j|ƒ}|j||ƒ||R¿t_extract_resourcet _eager_to_zip(RŠRÜRÝR¾teagersRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÞcs     cC@s/|j}|jd}tj|ƒ}||fS(Niiÿÿÿÿ(iiiÿÿÿÿ(t file_sizet date_timettimetmktime(tzip_stattsizeRÈt timestamp((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_get_date_and_sizeps  c C@sÜ||jƒkr^x9|jƒ|D]'}|j|tjj||ƒƒ}q#Wtjj|ƒS|j|j|ƒ\}}ts�t dƒ‚ny(|j |j |j |ƒƒ}|j ||ƒrÆ|Stddtjj|ƒƒ\}} tj||jj|ƒƒtj|ƒt| ||fƒ|j| |ƒyt| |ƒWnltjk rµtjj|ƒr¯|j ||ƒr‚|Stjdkr¯t|ƒt| |ƒ|Sn‚nXWntjk r×|jƒnX|S(Ns>"os.rename" and "os.unlink" are not supported on this platforms .$extracttdirR\(t_indexRÄR«R¬R>R}RÎRÁt WRITE_SUPPORTtIOErrorR[RšR¿t _is_currentt_mkstemptwriteR§R™tcloseRRlRterrortisfileRÒR RS( RŠRÜR¾RÒtlastRÍRÌt real_pathtoutfttmpnam((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÄysD    c C@s£|j|j|ƒ\}}tjj|ƒs2tStj|ƒ}|j|ks_|j|krctS|j j |ƒ}t |dƒ�}|j ƒ}WdQX||kS(sK Return True if the file_path is current for this zip_path R¡N( RÎRÁR«R¬RØRÅR_tst_sizeR´R§R™R RŒ( RŠt file_pathR¾RÍRÌR_t zip_contentstft file_contents((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÓ°scC@sa|jdkrZg}x6dD].}|j|ƒr|j|j|ƒƒqqW||_n|jS(Nsnative_libs.txtseager_resources.txt(snative_libs.txtseager_resources.txt(RÆR3RÖR RØ(RŠRÆRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÃÀs  cC@s´y |jSWn¢tk r¯i}x~|jD]s}|jtjƒ}xX|r�tjj|d ƒ}||kr‡||j|dƒPqF|jƒg||R°R(RŠtindR¬tpartstparent((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÐÉs     cC@s.|j|ƒ}||jkp-||jƒkS(N(R½RÁRÐ(RŠR¼R¾((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRƒÚscC@s|j|ƒ|jƒkS(N(R½RÐ(RŠR¼((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRˆÞscC@s%t|jƒj|j|ƒdƒƒS(N((RRÐR·R½(RŠR¼((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‰áscC@s|j|j|j|ƒƒS(N(R½RRž(RŠRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÅäscC@s|j|j|j|ƒƒS(N(R½RR~(RŠRÝ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÂçsN(RRRR3RÆR±RÀRèR½R¿R•RÁRÞRnRÎRÄRÓRÃRÐRƒRˆR‰RÅRÂ(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR�?s$     7      cB@s;eZdZd„Zd„Zd„Zd„Zd„ZRS(s*Metadata handler for standalone PKG-INFO files Usage:: metadata = FileMetadata("/path/to/PKG-INFO") This provider rejects all data and metadata requests except for PKG-INFO, which is treated as existing, and will be the contents of the file at the provided location. cC@s ||_dS(N(R¬(RŠR¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèúscC@s|dkotjj|jƒS(NsPKG-INFO(R«R¬RØ(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÖýscC@s_|dkrtdƒ‚ntj|jddddƒ�}|jƒ}WdQX|j|ƒ|S(NsPKG-INFOs(No metadata except PKG-INFO is availabletencodingsutf-8terrorsRÁ(R¡R€R R¬RŒt_warn_on_replacement(RŠRÒRàtmetadata((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR×s  ! cC@sGdjdƒ}||krCd}|jtƒ�}tj|ƒndS(Ns�sutf-8s2{self.path} could not be properly decoded in UTF-8(R†R�R�RcRd(RŠRêtreplacement_charRQRg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRé s  cC@st|j|ƒƒS(N(RjR×(RŠRÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRØs(RRRRèRÖR×RéRØ(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRyîs     cB@seZdZd„ZRS(ssMetadata provider for egg directories Usage:: # Development eggs: egg_info = "/path/to/PackageName.egg-info" base_dir = os.path.dirname(egg_info) metadata = PathMetadata(base_dir, egg_info) dist_name = os.path.splitext(os.path.basename(egg_info))[0] dist = Distribution(basedir, project_name=dist_name, metadata=metadata) # Unpacked egg directories: egg_path = "/path/to/PackageName-ver-pyver-etc.egg" metadata = PathMetadata(egg_path, os.path.join(egg_path,'EGG-INFO')) dist = Distribution.from_filename(egg_path, metadata=metadata) cC@s||_||_dS(N(R~R„(RŠR¬R„((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRè)s (RRRRè(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRzscB@seZdZd„ZRS(s Metadata provider for .egg filescC@s`|jtj|_||_|jrFtjj|j|jƒ|_n |j|_|j ƒdS(s-Create a metadata provider from a zipimporterN( R¸R«R©R¹R§tprefixR¬R>R~R›(RŠtimporter((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRè1s   ! (RRRRè(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR{.sRt_distribution_finderscC@s|t|tfind_eggs_in_zipt zipimportt zipimporterR7R„t from_location( RíRñRòRêtsubitemtsubpathRóRŒtsubmeta((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRöQs$     cC@sdS(N(((RíRñRò((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt find_nothingoscC@sd„}t|d|dtƒS(sL Given a list of filenames, return them in descending order by version number. >>> names = 'bar', 'foo', 'Python-2.7.10.egg', 'Python-2.7.2.egg' >>> _by_version_descending(names) ['Python-2.7.10.egg', 'Python-2.7.2.egg', 'foo', 'bar'] >>> names = 'Setuptools-1.2.3b1.egg', 'Setuptools-1.2.3.egg' >>> _by_version_descending(names) ['Setuptools-1.2.3.egg', 'Setuptools-1.2.3b1.egg'] >>> names = 'Setuptools-1.2.3b1.egg', 'Setuptools-1.2.3.post1.egg' >>> _by_version_descending(names) ['Setuptools-1.2.3.post1.egg', 'Setuptools-1.2.3b1.egg'] cS@sYtjj|ƒ\}}tj|jdƒ|gƒ}g|D]}tjj|ƒ^q=S(s6 Parse each component of the filename Rr( R«R¬tsplitextt itertoolstchainR RRRÔ(RÒtextRåtpart((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _by_version…sR.R;(tsortedRÃ(RXR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_by_version_descendingvs c #@sÑtˆƒ‰tˆƒrHtjˆdtˆtjjˆdƒƒƒVdStˆƒ}‡‡fd†|Dƒ}t |ƒ}xQ|D]I}tjjˆ|ƒ}t ˆ|ˆƒ}x||ƒD] } | VqºWq€WdS(s6Yield distributions accessible on a sys.path directoryRêsEGG-INFONc3@s'|]}tˆ|ˆƒr|VqdS(N(t dist_factory(R,Rç(RòRñ(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys ¢s( t_normalize_cachedt_is_unpacked_eggR]RõRzR«R¬R>t safe_listdirRR( RíRñRòRâtfilteredtpath_item_entriesRçtfullpathtfactoryRŒ((RòRñs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt find_on_path�s       cC@sf|jƒ}tt|jdƒƒ}|r.tS| rEt|ƒrEtS| r_|jdƒr_tStƒS(s9 Return a dist_factory for a path_item and entry s .egg-infos .dist-infos .egg-link(s .egg-infos .dist-info( R7R-RRôtdistributions_from_metadataRœRVtresolve_egg_linktNoDists(RñRçRòR7tis_meta((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR°s   RcB@s2eZdZd„Zejr'eZnd„ZRS(sS >>> bool(NoDists()) False >>> list(NoDists()('anything')) [] cC@stS(N(RÅ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__bool__ÉscC@s tdƒS(N((titer(RŠR ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt__call__Îs(RRRRRtPY2t __nonzero__R(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÁs    cC@s†ytj|ƒSWnnttfk r*nXtk r�}|jtjtjtjfkpot |ddƒdk}|s‚‚q‚nXdS(sI Attempt to list contents of path, but suppress some exceptions. twinerrori N(( R«R tPermissionErrortNotADirectoryErrortOSErrorterrnotENOTDIRtEACCEStENOENTR£R3(R¬Rxt ignorable((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR Òs! cc@s‘tjj|ƒ}tjj|ƒrUttj|ƒƒdkrCdSt||ƒ}n t|ƒ}tjj|ƒ}t j |||dt ƒVdS(Nit precedence( R«R¬R}R R�R RzRyR�R]RùRv(R¬trootRêRç((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRçs cc@sDt|ƒ�2}x(|D] }|jƒ}|r|VqqWWdQXdS(s1 Yield non-empty lines from file at path N(R tstrip(R¬Ràtline((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytnon_empty_linesös   c@s>tˆƒ}‡fd†|Dƒ}tt|ƒ}t|dƒS(sa Given a path to an .egg-link, resolve distributions present in the referenced path. c3@s0|]&}tjjtjjˆƒ|ƒVqdS(N(R«R¬R>R}(R,tref(R¬(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys s((R%RRVtnext(R¬treferenced_pathstresolved_pathst dist_groups((R¬s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRs    t FileFindert_namespace_handlerst_namespace_packagescC@s|t|(R¬t path_partst module_partsRå(t package_nameR=(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytposition_in_sys_pathTs NR.(R<R¬RR�RRR/(t orig_pathRAR¦tpRB((RAR=R<s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5Ds"  cC@s tjƒzð|tkrdStjd}}d|kr²dj|jdƒd ƒ}t|ƒ|tkrxt |ƒnytj |j }Wq²t k r®t d|ƒ‚q²Xntj|gƒj|ƒtj|gƒx|D]}t||ƒqâWWdtjƒXdS(s9Declare that package 'packageName' is a namespace packageNR8iÿÿÿÿsNot a package:(t_impt acquire_lockR-R<R¬R3R>R RSR¢R R/RãRÕRôR°R8t release_lock(R6R¬RæRñ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRSes&        cC@sbtjƒzFx?tj|dƒD]+}t||ƒ}|r t||ƒq q WWdtjƒXdS(sDEnsure that previously-declared namespace packages include path_itemN((RERFR-R·R8R…RG(RñRætpackageRû((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR…†s cC@s`tjj||jdƒdƒ}t|ƒ}x+|jD]}t|ƒ|kr8Pq8q8W|SdS(sBCompute an ns-package subpath for a filesystem or zipfile importerR8iÿÿÿÿN(R«R¬R>R RR/(RíRñR6R¦Rût normalizedRú((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytfile_ns_handler’s " cC@sdS(N(R3(RíRñR6R¦((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytnull_ns_handler¦scC@stjjtjj|ƒƒS(s1Normalize a file/dir name for comparison purposes(R«R¬tnormcasetrealpath(Rk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRq­scC@s9y ||SWn&tk r4t|ƒ||<}|SXdS(N(R¡Rq(RkR±tresult((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR²s   cC@s|jƒjdƒS(s7 Determine if given path appears to be an egg. s.egg(R7Rô(R¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRœºscC@s.t|ƒo-tjjtjj|ddƒƒS(s@ Determine if given path appears to be an unpacked egg. sEGG-INFOsPKG-INFO(RœR«R¬RØR>(R¬((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÁs cC@sU|jdƒ}|jƒ}|rQdj|ƒ}ttj||tj|ƒndS(NR8(R RR>tsetattrR<R (R6RåRÒRæ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR3Ës  cc@s‡t|tjƒrVxn|jƒD]0}|jƒ}|r|jdƒ r|VqqWn-x*|D]"}xt|ƒD] }|VqpWq]WdS(s9Yield non-empty/non-comment lines of a string or sequencet#N(R�RRÓt splitlinesR#R¿Rj(tstrststss((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRjÓs  s \w+(\.\w+)*$s– (?P[^-]+) ( -(?P[^-]+) ( -py(?P[^-]+) ( -(?P.+) )? )? )? cB@sªeZdZd d dd„Zd„Zd„Zed„Zd„Z ddd„Z e j dƒZ edd„ƒZed „ƒZedd „ƒZedd „ƒZRS(s3Object representing an advertised importable objectcC@s[t|ƒstd|ƒ‚n||_||_t|ƒ|_t|ƒ|_||_dS(NsInvalid module name(tMODULERARÒt module_namettupletattrsR RŒ(RŠRÒRVRXR RŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRèós   cC@sfd|j|jf}|jr<|ddj|jƒ7}n|jrb|ddj|jƒ7}n|S(Ns%s = %st:R8s [%s]t,(RÒRVRXR>R (RŠRS((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR˜üs   cC@sdt|ƒS(NsEntryPoint.parse(%r)(RŸ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‹ scO@sO| s|s|r,tjdtddƒn|rE|j||Žn|jƒS(sH Require packages for this EntryPoint, then resolve it. sJParameters to load are deprecated. Call .resolve and .require separately.t stackleveli(RcRdtDeprecationWarningRERï(RŠRER4tkwargs((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR° s cC@sdt|jddgddƒ}ytjt|j|ƒSWn%tk r_}tt|ƒƒ‚nXdS(sD Resolve the entry point from its module and attrs. tfromlistRtleveliN( R¢RVt functoolstreduceR£RXRãR½RŸ(RŠR¦texc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRï s cC@sr|jr%|j r%td|ƒ‚n|jj|jƒ}tj|||d|jƒ}tttj|ƒƒdS(Ns&Can't require() without a distributionR ( R RŒRcRøRTRïRRRð(RŠRRRòR#((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRE s s]\s*(?P.+?)\s*=\s*(?P[\w.]+)\s*(:\s*(?P[\w.]+))?\s*(?P\[.*\])?\s*$cC@s�|jj|ƒ}|s0d}t||ƒ‚n|jƒ}|j|dƒ}|drl|djdƒnd}||d|d|||ƒS(sParse a single entry point from string `src` Entry point syntax follows the form:: name = some.module:some.attr [extra1, extra2] The entry name and module name are required, but the ``:attrs`` and ``[extras]`` parts are optional s9EntryPoint must be in 'name=module:attrs [extras]' formatR tattrR8RÒR¦((tpatternR;RAt groupdictt _parse_extrasR (RìtsrcRŒRCRgtresR RX((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÔ6 s  #cC@s9|s dStjd|ƒ}|jr2tƒ‚n|jS(Ntx((R^RÔtspecsRAR (Rìt extras_specR�((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRfJ s   cC@s…t|ƒstd|ƒ‚ni}xZt|ƒD]L}|j||ƒ}|j|krptd||jƒ‚n|||j '{project_name} ({version})' is being parsed as a legacy, non PEP 440, version. You may find odd behavior and sort order. In particular it will be sorted as less than 0.0. It is recommended to migrate to PEP 440 compatible versions. s Rº(RRRR�RŒRKRLR#RÁRcRdR�tvarsR(RŠtLVt is_legacyRQ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_warn_legacy_versionå s  cC@sgy |jSWnUtk rbt|j|jƒƒ}|dkr^d}t||j|ƒ‚n|SXdS(Ns(Missing 'Version:' header and/or %s file(R{RãRyt _get_metadatatPKG_INFOR3RA(RŠRRQ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÿ s   cC@s>y |jSWn)tk r6|j|jƒƒ|_nX|jS(s~ A map of extra to its list of (direct) requirements for this distribution, including the null extra. (t_Distribution__dep_mapRãt_filter_extrast_build_dep_map(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_dep_map s   cC@sªx£ttd|ƒƒD]Œ}|}|j|ƒ}|jdƒ\}}}|oet|ƒpet|ƒ }|rwg}nt|ƒp†d}|j|gƒj |ƒqW|S(s¤ Given a mapping of extras to dependencies, strip off environment markers and filter out any dependencies not matching the markers. RYN( RRR3RRwRnRoRlRôR (tdmR)t new_extraRòR»R*t fails_marker((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR” s   cC@s`i}xSdD]K}xBt|j|ƒƒD]+\}}|j|gƒjt|ƒƒq)Wq W|S(Ns requires.txts depends.txt(s requires.txts depends.txt(RkR‘RôR Re(RŠR—RÒR)Rò((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR•, s  "'cC@s‚|j}g}|j|jddƒƒxS|D]K}y|j|t|ƒƒWq/tk rytd||fƒ‚q/Xq/W|S(s@List of Requirements needed for this distro if `extras` are useds%s has no such extra feature %rN((R–R R·R3RlR¡Rc(RŠR R—tdepsR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRø3 s   cc@s5|j|ƒr1x|j|ƒD] }|VqWndS(N(RÖRØ(RŠRÒR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‘A scC@s„|dkrtj}n|j|d|ƒ|tjkr€t|jƒx6|jdƒD]"}|tjkrWt|ƒqWqWWndS(s>Ensure distribution is importable on `path` (default=sys.path)RÁsnamespace_packages.txtN( R3R<R¬RüR…RýR‘R RS(RŠR¬RÁtpkg((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytactivateF s   cC@sOdt|jƒt|jƒ|jp'tf}|jrK|d|j7}n|S(s@Return what this distribution's standard .egg filename should bes %s-%s-py%sRr(RmR RR3RFR=(RŠRk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRšQ s  cC@s(|jrd||jfSt|ƒSdS(Ns%s (%s)(RýRŸ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‹\ s cC@sMyt|ddƒ}Wntk r/d}nX|p9d}d|j|fS(NRs[unknown version]s%s %s(R£R3RAR (RŠR((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR˜b s    cC@s.|jdƒrt|ƒ‚nt|j|ƒS(sADelegate all unrecognized public attributes to .metadata providerR»(R¿RãR£R|(RŠRc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt __getattr__j scK@s(|jt|ƒtjj|ƒ||�S(N(RùRR«R¬R�(RìRkRêR ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRõp scC@sTt|jtjjƒr1d|j|jf}nd|j|jf}tj|ƒS(s?Return a ``Requirement`` that matches this distribution exactlys%s==%ss%s===%s(R�R‚RRRR R^RÔ(RŠtspec((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRw scC@sD|j||ƒ}|dkr:td||ffƒ‚n|jƒS(s=Return the `name` entry point of `group` or raise ImportErrorsEntry point %r not foundN(RKR3R½R°(RŠR@RÒR÷((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRI€ s cC@scy |j}Wn3tk rBtj|jdƒ|ƒ}|_nX|dk r_|j|iƒS|S(s=Return the entry point map for `group`, or the full entry mapsentry_points.txtN(t_ep_mapRãR_RqR‘R3R·(RŠR@tep_map((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRJ‡ s    cC@s|j|ƒj|ƒS(s<Return the EntryPoint object for `group`+`name`, or ``None``(RJR·(RŠR@RÒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRK“ sc C@s¬|p |j}|sdSt|ƒ}tjj|ƒ}g|D]}|rVt|ƒpY|^q>}xót|ƒD]Ÿ\}}||kr˜|r‘PqdSqo||kro|jtkro| rÎ|||krÎdS|tjkrê|j ƒn|j ||ƒ|j ||ƒPqoqoW|tjkr.|j ƒn|rG|j d|ƒn |j |ƒdSxMt r§y|j ||dƒ} Wntk r�Pq[X|| =|| =| }q[WdS(säEnsure self.location is on path If replace=False (default): - If location is already in path anywhere, do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent. - Else: add to the end of path. If replace=True: - If location is already on path anywhere (not eggs) or higher priority than its parent (eggs) do nothing. - Else: - If it's an egg and its parent directory is on path, insert just ahead of the parent, removing any lower-priority entries. - Else: add it to the front of path. Nii(RýRR«R¬R}t enumerateR!RrR<tcheck_version_conflictRÿR°RÃR:RA( RŠR¬tlocRÁtnloctbdirRDtnpathRútnp((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRü— sB +       cC@sý|jdkrdStj|jdƒƒ}t|jƒ}x¼|jdƒD]«}|tjksJ||ksJ|tkr}qJn|dkr�qJnt tj|ddƒ}|rÛt|ƒj |ƒsJ|j |jƒrÛqJnt d|||jfƒqJWdS( Nt setuptoolssnamespace_packages.txts top_level.txtt pkg_resourcestsiteR|sIModule %s was already imported from %s, but %s is being added to sys.path(R©R¨Rª( R.RRR‘RqRýR<R R-R£R3R¿t issue_warning(RŠtnspR£tmodnametfn((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR¢Û s"  cC@s8y |jWn&tk r3tdt|ƒƒtSXtS(NsUnbuilt egg for (RRAR«R‰RÅRÃ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR<ñ s   cK@sYd}x0|jƒD]"}|j|t||dƒƒqW|jd|jƒ|j|�S(s@Copy this distribution, substituting in any changed keyword argss<project_name version py_version platform location precedenceRêN(R RôR£R3R|Rˆ(RŠR RXRc((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytcloneù s  cC@s g|jD]}|r |^q S(N(R–(RŠtdep((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR  sN((.RRRR’R3RFRrRèR(RùR�R•R:R„R…R†R‡RˆR‰RŠR.R‚R�RR–RnR”R•RøR‘RÅRœRšR‹R˜R�RõRRIRJRKRüR¢R<R¯R (((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR]Š sR                      D   tEggInfoDistributioncB@seZd„ZRS(cC@s.t|j|jƒƒ}|r*||_n|S(sñ Packages installed by distutils (e.g. numpy or scipy), which uses an old safe_version, and so their version numbers can get mangled when converted to filenames (e.g., 1.11.0.dev0+2329eae to 1.11.0.dev0_2329eae). These distributions will not be parsed properly downstream by Distribution and safe_version, so take an extra step and try to get the version number from the metadata file itself instead of the filename. (RyR‘R’R{(RŠt md_version((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR� s  (RRR�(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR± stDistInfoDistributioncB@sJeZdZdZejdƒZed„ƒZed„ƒZ d„Z RS(sV Wrap an actual or potential sys.path entry w/metadata, .dist-info style. tMETADATAs([\(,])\s*(\d.*?)\s*([,\)])cC@sTy |jSWnBtk rO|j|jƒ}tjjƒj|ƒ|_|jSXdS(sParse and cache metadataN(t _pkg_infoRãR×R’temailtparsertParsertparsestr(RŠRê((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_parsed_pkg_info! s   cC@s6y |jSWn$tk r1|jƒ|_|jSXdS(N(t_DistInfoDistribution__dep_mapRãt_compute_dependencies(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR–+ s   c@sÛigd6}|_g‰x3|jjdƒp2gD]}ˆjt|ƒƒq3W‡fd†}t|dƒƒ}|dj|ƒxR|jjdƒpšgD]8}t|jƒƒ}t t||ƒƒ|ƒ||R4(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR˜` s(RRR˜(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÃ_ scc@sŸtt|ƒƒ}x†|D]~}d|krA||jdƒ }n|jdƒrŒ|d jƒ}y|t|ƒ7}WqŒtk rˆdSXnt|ƒVqWdS(sŠYield ``Requirement`` objects for each specification in `strs` `strs` must be a string, or a (possibly-nested) iterable thereof. s #s\iþÿÿÿN(RRjRžRôR#R't StopIterationR^(RRRlR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRed s   cB@sMeZd„Zd„Zd„Zd„Zd„Zd„Zed„ƒZ RS(cC@sytt|ƒj|ƒWn+tjjk rG}tt|ƒƒ‚nX|j|_ t |jƒ}||j ƒ|_ |_ g|jD]}|j|jf^q†|_ttt|jƒƒ|_|j |jt|jƒ|jròt|jƒndf|_t|jƒ|_dS(s>DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N(tsuperR^RèRRtInvalidRequirementRÃRŸRÒt unsafe_nameRfR7R R.t specifierR=RRjRWRRlR R¿R*R3thashCmpRƒt_Requirement__hash(RŠtrequirement_stringRxR Rž((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRè{ s + $cC@st|tƒo|j|jkS(N(R�R^RÉ(RŠRA((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‰� scC@s ||k S(N((RŠRA((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRŠ• scC@sGt|tƒr1|j|jkr%tS|j}n|jj|dtƒS(Nt prereleases(R�R]R.RÅRRÈtcontainsRÃ(RŠRú((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRõ˜ s  cC@s|jS(N(RÊ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR„¤ scC@sdt|ƒS(NsRequirement.parse(%r)(RŸ(RŠ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR‹§ scC@st|ƒ\}|S(N(Re(RSR�((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÔª s( RRRèR‰RŠRõR„R‹RnRÔ(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR^z s     cC@st|kr|tfS|S(sJ Ensure object appears in the mro even for old-style classes. (tobject(tclasses((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_always_object° s  cC@sPttjt|dt|ƒƒƒƒ}x"|D]}||kr.||Sq.WdS(s2Return an adapter factory for `ob` from `registry`RˆN(RÐtinspecttgetmroR£R¥(tregistryR/R1tt((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR¤º s'  cC@s)tjj|ƒ}tj|dtƒdS(s1Ensure that the parent directory of `path` existstexist_okN(R«R¬R}R tmakedirsRÃ(R¬R}((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRp scC@s^tstdƒ‚nt|ƒ\}}|rZ|rZt|ƒ rZt|ƒt|dƒndS(s/Sandbox-bypassing version of ensure_directory()s*"os.mkdir" not supported on this platform.iíN(RÑRÒR R RTR(R¬R}Rk((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRTÈ s  cc@s¥d}g}x‡t|ƒD]y}|jdƒr…|jdƒrs|sI|rW||fVn|dd!jƒ}g}q’td|ƒ‚q|j|ƒqW||fVdS(ssSplit a string or iterable thereof into (section, content) pairs Each ``section`` is a stripped version of the section header ("[section]") and each ``content`` is a list of stripped lines excluding blank lines and comment-only lines. If there are any such lines before the first section header, they're returned in a first ``section`` of ``None``. t[t]iiÿÿÿÿsInvalid section headingN(R3RjR¿RôR#RAR°(RStsectiontcontentR$((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRkÒ s  cO@s7tj}ztt_tj||ŽSWd|t_XdS(N(R«R tos_openttempfiletmkstemp(R4R told_open((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyRÔì s   tignoretcategoryR°cO@s|||Ž|S(N((RàR4R]((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _call_asideÿ s c@s:tƒ‰ˆ|d<|j‡fd†tˆƒDƒƒdS(s=Set up global resource manager (deliberately not state-saved)t_managerc3@s3|])}|jdƒs|tˆ|ƒfVqdS(R»N(R¿R£(R,RÒ(RÜ(s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys sN(R\RRÏ(R%((RÜs:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt _initialize s    cC@s¦tjƒ}tdd|ƒ|j}|j}|j}|j}|}td„|Dƒƒ|d„dtƒg|_ t t |j t jƒƒtƒjtƒƒdS(sE Prepare the master working set and make the ``require()`` API available. This function has explicit effects on the global state of pkg_resources. It is intended to be invoked once at the initialization of this module. Invocation by other packages is unsupported and done at their own risk. RÎRTcs@s!|]}|jdtƒVqdS(RÁN(RœRÅ(R,RŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pys + scS@s|jdtƒS(NRÁ(RœRÃ(RŒ((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyR5/ R6R%N(R[RîR!RERLR&RFRWRÅRâRRRæR<R¬RRR�(RTRERLRURFR†((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pyt_initialize_master_working_set s        (ÔRt __future__RR<R«R€RÉRsR1R¬R÷RcR_R`tpkgutilR=R=RR¯t email.parserR¶RRÜRKRÿRÑRRER½timptpkg_resources.externRtpkg_resources.extern.six.movesRRRRRRR RÃRÑRÅR RÛtos.pathR R timportlib.machineryt machineryR¤RR3R6R RRR¢t version_infot RuntimeErrorRRRRERTRUtresources_streamRXt resource_dirRNRWRRRMRLRPRORQRîR,R-tRuntimeWarningRRRR!R'R)R,R0R1R2t _sget_nonet _sset_noneRDt__all__RUR`RaR’RbRcR™RRFRrRsRtRuRvR„RGR?R¹R9R�R:RÄRhRiRFR†RHRIRJRKRwRxRÎR[RRRZR‡RdR\RYRfRgRlRmRnRoR~RR€R§R|R}R¨R±R�RøRyRzR{R‚RVRöRýRRRRR RR%Rt ImpImporterR®R+RƒR8R5RSR…RJRKRqRRœRR3RjR;RUtVERBOSEt IGNORECASER€R_RuRyR]R±R³RR«RARÃReRR^RÐR¤RpRTRkRÔtfilterwarningsRáRRãRä(((s:/usr/lib/python2.7/site-packages/pkg_resources/__init__.pytsÒ                                 +                                    .    ÿ„“´    d   ¬'            ! !         „ ÿ}2   6