N3{YcF@s dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl m Z yddl m Z mZWn'ek rddlm Z mZnXyeWn!ek r ddlmZnXy!edZddlmZWn6ek rceZddlmZeed ZnXdd lmZy&dd lmZm Z m!Z!e"Z#Wnek re$Z#nXdd lm%Z&dd l'm(Z(m)Z)ej*ddfkoej+j,dkrddl-j.Z/neZ/yddl0Z0Wnek r<nXddZ1iZ2dZ3dZ4dZ5dZ6dZ7dZ8dZ9dZ:Z;dZ<dddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;d<d=d>d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]d^d_gEZ=d6e>fd`YZ?d7e?fdaYZ@d8e?fdbYZAd9e?fdcYZBiZCejDd ZEdZFddZGdeZHdfZIdZJdgZKdhZLgdiZMdjZNdkZOejPdlZQejPdmZReOZSdnZTdoZUeUZVdpZWdqZXedrZYdsZZdNfdtYZ[dOe[fduYZ\d1e]fdvYZ^d0e]fdwYZ_e_Z`d:eafdxYZbd2fdyYZcdzZdd{Zed|Zfd}Zgd~Zhidgd6dgd6dddgd6gd6gd6gd6Ziidd6dd6dd6dd6dd6dd6dd6ZjdZkdZldZmdZneidZodZpdeqkr%epZondUfdYZreKe]erdVerfdYZsdWesfdYZteKeueete/ek reKe/jvetndSerfdYZwewZxdZydXesfdYZzeKej{ezdPewfdYZ|dQetfdYZ}dRezfdYZ~e3ddidZe$dZe$dZeej{ee$dZee]ee$dZee jee/ek ree/jene3ddie3ddidZdZdZedZdZee jeeej{ee/ek rWee/jendZee]edZidZdZdZejPdjZejPdjZejPdjZejPdjZejPdjZejPdjZejPdjZejPdjZejPdejejBjZejPdejZidd6dd6dd6dd6dd6jZdZdZd5e]fdYZdZd3e]fdYZdefdYZied6ed6ed6ZdZdZdZd4fdYZidd6dd6dd6dd6dd6dd6ZdZdZdZdZdZecZdZeeqe3dd*e^yddlmZWnek r nXyejeWne@k r e^gZx0ejeee_D]Zejeq* Wx0ejD]%Zeejkrp ejenqK Wejej(nXejZejZejZejUZUeUZVedge_eeejejdS(sYPackage 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. iN(t get_importer(turlparset urlunparse(t ImmutableSetcCs |jS(N(tnext(to((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt(s(tStringIO(tBytesIOcBsZ|dkre}n|dkr-|}nee|j|d||fdUdS(Ntexec(tNonetglobalstcompiletopentread(tfntglobstlocs((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytexecfile-s     (tutime(tmkdirtrenametunlink(R (tisdirtsplititcpythonicCs^tstdnt|\}}|rZ|rZt| rZt|t||ndS(Ns*"os.mkdir" not supported on this platform.(t WRITE_SUPPORTtIOErrorRRt_bypass_ensure_directoryR(tnametmodetdirnametfilename((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRKs  cKs>t}x.|jD] \}}|||<|t|/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_declare_stateWs  cCsLi}t}x6tjD](\}}|d|||||/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt __getstate__]s   cCsJt}x:|jD],\}}|dt|||||qW|S(Nt_sset_(R R!R"(R)R%R*R+((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt __setstate__ds $cCs |jS(N(tcopy(R&((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _sget_dictjscCs|j|j|dS(N(tcleartupdate(tkeytobR)((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _sset_dictms cCs |jS(N(R,(R&((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _sget_objectqscCs|j|dS(N(R.(R3R4R)((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _sset_objecttscGsdS(N(R (targs((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRwscCs{t}tj|}|dk rwtjdkrwy-ddjtd |jdf}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_platformtmacosVersionStringtmatchR tsystplatformtjoint _macosx_verstgroupt ValueError(tplattm((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_supported_platformzs - 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_requirementst parse_versiont 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_maintAvailableDistributionscBseZdZdZRS(s.Abstract base for dependency resolution errorscCs|jjt|jS(N(t __class__t__name__treprR8(tself((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__repr__s(Rt __module__t__doc__R(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRbscBseZdZRS(sAAn already-installed version conflicts with the requested version(RRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRcscBseZdZRS(s&A requested distribution was not found(RRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRdscBseZdZRS(s>Distribution doesn't have an "extra feature" of the given name(RRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyResiiicCs|t|/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCst|tr2tj|p1tt|dSytj|}Wn(tk rmt |tj|}nXt |dd}t t ||S(s?Return an IResourceProvider for the named module or requirementit __loader__N(t isinstanceR`RVtfindRGtstrR>tmodulestKeyErrort __import__tgetattrR t _find_adapterR(t moduleOrReqtmoduletloader((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRIs#  cCs|sddl}|jd}|dkrddl}d}tjj|rt|dr|j|}d|kr|d}qqqn|j|j dn|dS(Niits0/System/Library/CoreServices/SystemVersion.plistt readPlisttProductVersionR:( R?tmac_vertplistlibtostpathtexiststhasattrRtappendR(t_cacheR?tversionRtplistt plist_content((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRAs    cCsidd6dd6j||S(NtppctPowerPCtPower_Macintosh(tget(tmachine((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _macosx_archscCsyddlm}Wn!tk r7ddlm}nX|}tjdkr|jd ryTt}tj dj dd}dt |d t |d t |fSWqt k rqXn|S( sReturn this platform's string for platform-specific distributions XXX Currently this is the same as ``distutils.util.get_platform()``, but it needs some hacks for Linux and Mac OS X. i(RkR9smacosx-it t_smacosx-%d.%d-%sii(t sysconfigRkt ImportErrortdistutils.utilR>R?t startswithRARtunametreplacetintRRC(RkRDRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR;s    smacosx-(\d+)\.(\d+)-(.*)sdarwin-(\d+)\.(\d+)\.(\d+)-(.*)c CsO|d ks$|d ks$||kr(tStj|}|rKtj|}|stj|}|rt|jd}d|jd|jdf}|dkr|dks|dkr|dkrtSntS|jd|jdks|jd|jdkrtSt|jdt|jdkrGtStStS( sCan code for the `provided` platform run on the `required` platform? Returns true if either platform is ``None``, or the platforms are equal. XXX Needs compatibility checks for Linux and other unixy OSes. is%s.%siis10.3is10.4iN(R tTrueR<R=tdarwinVersionStringRRBtFalse(tprovidedtrequiredtreqMactprovMact provDarwintdversiont macosversion((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRls*$"*cCsNtjdj}|d}|j||dt _getframet f_globalsR1RGRH(t dist_spect script_nametnsR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRHHs    cCsdt|tr!tj|}nt|tr?t|}nt|ts`td|n|S(s@Return a current distribution object for a Requirement or strings-Expected string, Requirement, or Distribution(Rt basestringR`tparseRIR_t TypeError(tdist((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRJRscCst|j||S(sDReturn `name` entry point of `group` for `dist` or raise ImportError(RJRK(RRBR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRKZscCst|j|S(s=Return the entry point map for `group`, or the full entry map(RJRL(RRB((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRL^scCst|j||S(s<Return the EntryPoint object for `group`+`name`, or ``None``(RJRM(RRBR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRMbscBs>eZdZdZdZdZdZdZRS(cCsdS(s;Does the package's distribution contain the named metadata?N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt has_metadataiscCsdS(s'The named metadata resource as a stringN((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt get_metadatalscCsdS(sYield 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>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_metadata_linesoscCsdS(s>Is the named metadata a directory? (like ``os.path.isdir()``)N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytmetadata_isdiruscCsdS(s?List of metadata names in the directory (like ``os.listdir()``)N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytmetadata_listdirxscCsdS(s=Execute the named script in the supplied namespace dictionaryN((Rt namespace((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRH{s(RRRRRRRRH(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRzgs      cBsDeZdZdZdZdZdZdZdZRS(s3An object that provides access to package resourcescCsdS(sdReturn a true filesystem path for `resource_name` `manager` must be an ``IResourceManager``N((tmanagert resource_name((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_resource_filenamescCsdS(siReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``N((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_resource_streamscCsdS(smReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``N((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_resource_stringscCsdS(s,Does the package contain the named resource?N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt has_resourcescCsdS(s>Is the named resource a directory? (like ``os.path.isdir()``)N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRTscCsdS(s?List of resource names in the directory (like ``os.listdir()``)N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRRs( RRRRRRRRTRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR{s     cBseZdZddZdZdZdZddZdZ dZ de dZ ddd Z dde d Zd Zd Zd ZdZdZRS(sDA collection of active distributions on sys.path (or a similar list)cCs^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 callbacksR R>Rt add_entry(RRtentry((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__init__s       cCsT|jj|g|jj|x*t|tD]}|j||tq3WdS(sAdd 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(Rt setdefaultRRRXRtaddR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs cCs|jj|j|kS(s9True if `dist` is the active distribution for its project(RRR3(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt __contains__scCsG|jj|j}|dk r?||kr?t||n|SdS(sFind 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(RRR3R Rc(RtreqR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs ccsgx`|D]X}|j|}|dkrGx4|jD] }|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(RLR tvalues(RRBRRRtep((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRNs    cCsQtjdj}|d}|j||d<|j|dj||dS(s?Locate distribution for `requires` and run `script_name` scriptiRiN(R>RRR1RGRH(RtrequiresRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRHs    ccspi}xc|jD]X}||jkr+qnx:|j|D]+}||kr9d||<|j|Vq9q9WqWdS(sYield 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(RRR(RtseentitemR3((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__iter__s  cCs|r|j|j|n|dkr4|j}n|jj|g}|jj|jg}|j|jkrwdS||j|j<|j|kr|j|jn|j|kr|j|jn|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. If it's added, any callbacks registered with the ``subscribe()`` method will be called. N( t insert_onRR tlocationRRR3RRt _added_new(RRRtinserttkeystkeys2((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs   c CsVt|ddd}i}i}g}x$|rQ|jd}||krUq.n|j|j}|dkr|jj|j}|dkr|dkrt|j}n|j|||}||j<|dkrt |qn|j |n||krt ||n|j |j |jdddt||/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytresolves.         &cCsOt|}|ji}i}|dkrJt|j}||7}n ||}|jg} tt| j|x|D]} x|| D]} | jg} y| j | ||} Wn8t k rt j d}||| <|rqq'PqXtt| j| |j tj| PqWqWt|}|j||fS(sbFind all activatable distributions in `plugin_env` Example usage:: distributions, errors = working_set.find_plugins( Environment(plugin_dirlist) ) map(working_set.add, distributions) # add plugins+libs to sys.path print 'Could not load', errors # display errors The `plugin_env` should be an ``Environment`` instance that contains only distributions that are in the project's "plugin directory" or directories. The `full_env`, if supplied, should be an ``Environment`` contains all currently-available distributions. If `full_env` is not supplied, one is created automatically from the ``WorkingSet`` this method is called on, which will typically mean that every directory on ``sys.path`` will be scanned for distributions. `installer` is a standard installer callback as used by the ``resolve()`` method. The `fallback` flag indicates whether we should attempt to resolve older versions of a plugin if the newest version cannot be resolved. This method returns a 2-tuple: (`distributions`, `error_info`), where `distributions` is a list of the distributions found in `plugin_env` that were loadable, along with any other distributions that are needed to resolve their dependencies. `error_info` is a dictionary mapping unloadable plugin distributions to an exception instance describing the error that occurred. Usually this will be a ``DistributionNotFound`` or ``VersionConflict`` instance. iN(RtsortR R\RRtmapRtas_requirementRRbR>texc_infoR2tdicttfromkeys(Rt plugin_envtfull_envRtfallbacktplugin_projectst error_infot distributionsRt shadow_sett project_nameRRt resolveesR+((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt find_pluginsAs6"           cGs7|jt|}x|D]}|j|qW|S(sEnsure that distributions matching `requirements` are activated `requirements` must be a string or a (possibly-nested) sequence thereof, specifying the distributions and versions required. The return value is a sequence of the distributions that needed to be activated to fulfill the requirements; all relevant distributions are included, even if they were already activated in this working set. (RRgR(RRtneededR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRGs  cCsB||jkrdS|jj|x|D]}||q*WdS(sAInvoke `callback` for all distributions (including existing ones)N(RR(RtcallbackR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt subscribes  cCs"x|jD]}||q WdS(N(R(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs*|j|jj|jj|jfS(N(RRR/RR(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR,scCsH|\}}}}||_|j|_|j|_||_dS(N(RR/RRR(Rte_k_b_cRRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR.s  N(RRRR RRRRRNRHRRRRRRGRRR,R.(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR]s"      / M    cBseZdZd eedZdZdZd dZ dZ dZ d dZ d dZ d Zd Zd ZRS( s5Searchable snapshot of distributions on a search pathcCs5i|_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_distmapRR?tpythontscan(Rt search_pathR?R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs     cCsC|jdks0|jdks0|j|jkoBt|j|jS(sIs 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(RR t py_versionRlR?(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytcan_addscCs|j|jj|dS(s"Remove `dist` from the environmentN(RR3tremove(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCsQ|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(R R>RRXR(RRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs    cCsy|j|SWn0tk rA|j}||jkrBgSnX||jkrv|j|}|j|/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt __getitem__s   cCs|j|r{|jr{|jj|jg}||kr{|j||j|jkrxt|j|jqxq{ndS(s<Add `dist` if we ``can_add()`` it and it isn't already addedN(Rt has_versionRRR3RRR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs   cCsW|j|}|dk r|Sx%||jD]}||kr-|Sq-W|j||S(sFind 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(RR R3tobtain(RRRVRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s   cCs|dk r||SdS(sObtain 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(R (Rt requirementR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s ccs0x)|jjD]}||r|VqqWdS(s=Yield the unique project names of the available distributionsN(RR(RR3((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR+s cCs{t|tr|j|nXt|trdxF|D](}x||D]}|j|qFWq5Wntd|f|S(s2In-place addition of a distribution or environmentsCan't add %r to environment(RR_RR\R(RtothertprojectR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__iadd__0s cCs@|jgdddd}x||fD]}||7}q(W|S(s4Add an environment or distribution to an environmentR?RN(RR (RR"tnewR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__add__<sN(RRRR RFtPY_MAJORRRRRRRRR RR$R&(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR\s      cBseZdZRS(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>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRfGs cBseZdZdZdZdZdZdZdZ dZ dZ dZ dd Z ed Zd Zd Zed ZRS(s'Manage resource extraction and packagescCs i|_dS(N(t cached_files(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR[scCst|j|S(sDoes the named resource exist?(RIR(Rtpackage_or_requirementR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRS^scCst|j|S(s,Is the named resource an existing directory?(RIRT(RR)R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRTbs cCst|j||S(s4Return a true filesystem path for specified resource(RIR(RR)R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRQhs cCst|j||S(s9Return a readable file-like object for specified resource(RIR(RR)R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRPns cCst|j||S(s%Return specified resource as a string(RIR(RR)R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyROts cCst|j|S(s1List the contents of the named resource directory(RIRR(RR)R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRRzs cCs]tjd}|jpt}td||f}||_||_||_|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: %s The Python egg cache directory is currently set to: %s 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>Rtextraction_pathR[RfRt cache_pathtoriginal_error(Rtold_excR+terr((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytextraction_errors   cCsn|jpt}tjj||d|}yt|Wn|jnX|j|d|j|<|S(sReturn 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( R*R[RRR@RR/t_warn_unsafe_extraction_pathR((Rt archive_nametnamest extract_patht target_path((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytget_cache_paths   cCswtjdkr*|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).( RRRtenvirontstattst_modetS_IWOTHtS_IWGRPtwarningstwarnt UserWarning(RRtmsg((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR0s &cCs@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. tposiximiN(RRR9R:tchmod(RttempnameR R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt postprocessscCs%|jrtdn||_dS(sSet 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(R(RCR*(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRYs  cCsdS(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((Rtforce((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRZsN((RRRR R*RRSRTRQRPRORRR/R5t staticmethodR0RDRYRRZ(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR^Ws           cCsytjdSWntk r"nXtjdkrBtjjdSd}dd|fd|fd|fdd|fg}x|D]\}}d }xn|D]5}|tjkrtjj|tj|}qPqW|rtjj||}ntjj|d SqWtd dS(s Determine the default cache location This returns the ``PYTHON_EGG_CACHE`` environment variable, if set. Otherwise, on Windows, it returns a "Python-Eggs" subdirectory of the "Application Data" directory. On all other systems, it's "~/.python-eggs". tPYTHON_EGG_CACHER6s~/.python-eggssApplication DatatAPPDATAt USERPROFILEt HOMEDRIVEtHOMEPATHtHOMEtWINDIRRs Python-Eggss3Please set the PYTHON_EGG_CACHE enviroment variableN(sAPPDATA((sAPPDATAN(RI(RJRK(RK(sHOME((sHOMEN(RM( RR8RRRt expanduserR R@t RuntimeError(tapp_datat app_homesRtsubdirRR3((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR[s0     cCstjdd|S(sConvert 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>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRi0scCs%|jdd}tjdd|S(sConvert an arbitrary string to a standard version string Spaces become dots, and all other non-alphanumeric characters become dashes, with runs of multiple dashes condensed to a single dash. RR:s[^A-Za-z0-9.]+RS(RRTRU(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRj8scCstjdd|jS(sConvert 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(RTRUR(textra((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRoBscCs|jddS(s|Convert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. RSR(R(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRpKsRRR?R>RRtpython_implementationtpython_versiontpython_full_versionRVcCstjS(N(RR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRYstos_namecCstjS(N(R>R?(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRZst sys_platformcCstjjdS(Ni(R>RR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR[scCsdtjdtjdfS(Ns%s.%sii(R>t version_info(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR\scCs tdS(NR(t _platinfo(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR]stplatform_versioncCs tdS(NR(R](((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR^stplatform_machinecCstdptS(NRW(R]t_pyimp(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR_scCs;yddl}Wntk r$dSXt||dS(NiRcSsdS(NR((((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRgs(R?RR(tattrR?((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR]bs  cCsDtjdkrdStjjdr)dSdtjkr<dSdSdS(Ntclit IronPythontjavatJythont__pypy__tPyPytCPython(R>R?Rtbuiltin_module_names(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR`iscCsEidd6dd6}d|_d|_|j|j|j|_|S(s Given a SyntaxError from a marker evaluation, normalize the error message: - Remove indications of filename and line number. - Replace platform-specific error messages with standard error messages. sinvalid syntaxsunexpected EOF while parsingsparenthesis is never closedN(R R tlinenoRR@(texctsubs((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytnormalize_exceptionss   cCs7yt|Wn"tk r2ttjdSXtS(sHValidate text as a PEP 426 environment marker; return exception or Falsei(Rrt SyntaxErrorRmR>RR(ttext((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRqs  csNs ddlmmddlddlddlfd}fd}fd}fd}ji|j6|j6|j6|j 6dd 6d d 6j d 6j d 6t dr |j /opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytand_testscsBtjjgtdt|dD]}||^q%S(Nii(RrRstor_RuRv(RwRx(RyRz(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyttestscsa|dd}|jkrQ|ddjkrCtdn|dStddS(NiiisEmpty parenthesess5Language feature not supported in environment markers(tLPARtRPARRn(Rwtt(Ryttoken(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytatoms cst|dkr!tdn|dd}|d}|dkrt|ddkr|dkrtd}q}d }qny|}Wn'tk rtt|d nX||d|dS( Nis5Chained comparison not allowed in environment markersiiiitnotsnot insis nots, operator not allowed in environment markers(RvRnRR(Rwtcomptcop(Rpt_opstevaluate(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt comparisons     cSs ||kS(N((txty((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRssnot incSs ||kS(N((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRstins==s!=tor_testcszx t|dkr"|d}qWy|d}Wn8tk rotdtdj|dnX||S(Niiis)Comparison or logical expression expecteds7Language feature not supported in environment markers: (RvRRntsym_name(Rwtop(Rtsymbol(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRys  csx t|dkr"|d}qW|d}|d}|kr|yt|}Wn!tk rttd|nX|S|kr|d}|d dks|jds|jdsd|krtd n|dd !Std dS( NiiisUnknown name %rs'"s"""s'''s\s1Only plain strings allowed in environment markersis5Language feature not supported in environment markers(Rvt_marker_valuesRRnR(RwtkindRRts(RpRq(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs$      .   i(RRpRqRRzR2R}R{RRteqtneRRtparsertexprttotuple(RoRVRR{R}RR((RpRqRRRyRzRRs>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRrs$     " cCsddl}|j}x9|jD]+}|jdd}|j|||RRnR8(RoRRR3tnew_keytresultte((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_markerlib_evaluates   RcBseZdZdZdZdZdZdZdZ dZ dZ dZ e jdkrodZn d Zd Zd Zd Zd ZdZdZdZdZdZdZdZRS(sETry to implement resources and metadata for arbitrary PEP 302 loaderscCs:t|dd|_tjjt|dd|_dS(NRt__file__R(RR RRRRt module_path(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs|j|j|S(N(t_fnR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR scCst|j||S(N(RR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR scCs|j|j|j|S(N(t_getRR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs|j|j|j|S(N(t_hasRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs%|jo$|j|j|j|S(N(tegg_infoRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRsicCs)|js dS|j|j|j|S(NR(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs cCs2|js dS|j|j|j|jdS(NRsutf-8(RRRtdecode(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs cCst|j|S(N(RmR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR#scCs|j|j|j|S(N(t_isdirRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRT&scCs%|jo$|j|j|j|S(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR)scCs|j|j|j|S(N(t_listdirRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRR,scCs)|jr%|j|j|j|SgS(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR/s cBsd|}|j|s,ed|n|j|jdd}|jdd}|j|j|}||d/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRH4s  %cCstddS(Ns9Can't perform this operation for unregistered loader type(tNotImplementedError(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRFscCstddS(Ns9Can't perform this operation for unregistered loader type(R(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRKscCstddS(Ns9Can't perform this operation for unregistered loader type(R(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRPscCs&|r"tjj||jdS|S(Nt/(RRR@R(RtbaseR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRUscCs2t|jdr"|jj|StddS(Ntget_datas=Can't perform this operation for loaders without 'get_data()'(RRRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRZsN(i(RRRR tegg_nameRRRRRRRRR>R\RRRTRRRRRHRRRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs0                  cBs eZdZdZdZRS(s&Provider based on a virtual filesystemcCstj|||jdS(N(RRt _setup_prefix(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRgscCs|j}d}x}||kr|jjdrmtjj||_tjj|d|_ ||_ Pn|}tjj |\}}qWdS(Ns.eggsEGG-INFO( RR RtendswithRRtbasenameRR@Rtegg_rootR(RRtoldR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRks  (RRRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRds cBs;eZdZdZdZdZdZdZRS(s6Provides access to package resources in the filesystemcCstjj|S(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR|scCstjj|S(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs tj|S(N(Rtlistdir(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCst|j|j|dS(Ntrb(R RR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs/t|d}z|jSWd|jXdS(NR(R Rtclose(RRtstream((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs(RRRRRRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRys     cBs<eZdZdZZdZdZdZdZ RS(s.Provider that returns nothing for all requestscCstS(N(R(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCsdS(NR((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCsgS(N((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCsdS(N((R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRsN( RRRRRRRR RR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs    cCsmt}tj|}zCx<|jD].}|jdtj}|j||| os.sep on pypy it is the same (one reason why distribute did work in some cases on pypy and win32). * [1] - zipinfo.compress_type * [2] - zipinfo.compress_size * [3] - zipinfo.file_size * [4] - len(utf-8 encoding of filename) if zipinfo & 0x800 len(ascii encoding of filename) otherwise * [5] - (zipinfo.date_time[0] - 1980) << 9 | zipinfo.date_time[1] << 5 | zipinfo.date_time[2] * [6] - (zipinfo.date_time[3] - 1980) << 11 | zipinfo.date_time[4] << 5 | (zipinfo.date_time[5] // 2) * [7] - zipinfo.CRC RN( RtzipfiletZipFiletnamelistRRtseptgetinfoR(Rtzipinfotzfiletzitemtzpath((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytbuild_zipmanifests  cBseZdZdZdZdZdZdZe dZ dZ dZ dZ d Zd Zd Zd Zd ZdZRS(s"Resource support for zips and eggscCs?tj||t|jj|_|jjtj|_dS(N( RRRRtarchiveRRRtzip_pre(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs@|j|jr#|t|jStd||jfdS(Ns%s is not a subpath of %s(RRRvtAssertionError(Rtfspath((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _zipinfo_namescCsd|j|}|j|jtjrG|t|jdjtjStd||jfdS(Nis%s is not a subpath of %s(RRRRRRvRR(Rtzip_pathR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_partss  !cCs|jstdn|j|}|j}dj|j||kr~x*|D]}|j||j|qXWn|j||S(Ns5resource_filename() only supported for .egg, not .zipR(RRt_resource_to_zipt_get_eager_resourcesR@Rt_extract_resourcet _eager_to_zip(RRRRteagersR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs     cCs/|j}|jd}tj|}||fS(Nii(iii(t file_sizet date_timettimetmktime(tzip_stattsizeRt timestamp((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_get_date_and_sizes  c Cs||jkr^x9|j|D]'}|j|tjj||}q#Wtjj|S|j|j|\}}tst dny(|j |j |j |}|j ||r|Stddtjj|\}} tj||jj|tj|t| ||f|j| |yt| |Wnltjk rtjj|r|j ||r|Stjdkrt|t| ||SnnXWntjk r|jnX|S(Ns>"os.rename" and "os.unlink" are not supported on this platforms .$extracttdirR6(t_indexRRRR@RRRRRR5RRt _is_currentt_mkstemptwriteRRRRRDRterrortisfileRRR/( RRRRtlastRRt real_pathtoutfttmpnam((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs@$    c Cs|j|j|\}}tjj|s2tStj|}|j|ks_|j|krctS|j j |}t |d}|j }|j ||kS(sK Return True if the file_path is current for this zip_path R(RRRRRRR9tst_sizetst_mtimeRRR RR( Rt file_pathRRRR9t zip_contentstft file_contents((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR&s  cCsa|jdkrZg}x6dD].}|j|r|j|j|qqW||_n|jS(Nsnative_libs.txtseager_resources.txt(snative_libs.txtseager_resources.txt(RR RRR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR7s  cCsy |jSWntk ri}x~|jD]s}|jtj}xX|rtjj|d }||kr||j|dPqF|jg||/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR@s     cCs.|j|}||jkp-||jkS(N(RRR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRQscCs|j||jkS(N(RR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRUscCs%t|jj|j|dS(N((RRRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRXscCs|j|j|j|S(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR[scCs|j|j|j|S(N(RRR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR^sN(RRRR RRRRRRFRRRRRRRRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs    1      cBs2eZdZdZdZdZdZRS(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. cCs ||_dS(N(R(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRpscCs |dkS(NsPKG-INFO((RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRsscCsH|dkr8t|jd}|j}|j|StddS(NsPKG-INFOtrUs(No metadata except PKG-INFO is available(R RRRR(RRRtmetadata((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRvs    cCst|j|S(N(RmR(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR~s(RRRRRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR|ds     cBseZdZdZRS(sqMetadata 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) cCs||_||_dS(N(RR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs (RRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR}scBseZdZdZRS(s Metadata provider for .egg filescCsrt|j|_|jtj|_||_|jrXtjj |j|j|_ n |j|_ |j dS(s-Create a metadata provider from a zipimporterN( RRRRRRRtprefixRR@RR(Rtimporter((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs  ! (RRRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR~sRt_distribution_finderscCs|t|/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs+t|}tt|}||||S(s.Yield distributions accessible via `path_item`(RRR(t path_itemtonlyRtfinder((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRXs ccst|}|jdr2tj|d|Vn|r<dSxf|jdD]U}|jdrLtjj||}x(t t j ||D] }|VqWqLqLWdS(NsPKG-INFORRs.egg( R~RR_t from_filenameRRRRRR@t find_in_zipt zipimportt zipimporter(RRRRtsubitemtsubpathR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs cCsdS(N(((RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt find_nothingsc cst|}tjj|r tj|tjr |jjdrwtj |dt |tjj |dVq xtj |D]}}|j}|jds|jdrtjj ||}tjj|rt ||}n t |}tj|||dtVq| r]|jdr]xttjj ||D] }|VqKWq| r|jdrttjj ||}z|j} Wd|jXxU| D]J} | jsqnx.ttjj || jD] } | VqWPqWqqWndS( s6Yield distributions accessible on a sys.path directorys.eggRsEGG-INFOs .egg-infos .dist-infot precedences .egg-linkN(t_normalize_cachedRRRtaccesstR_OKRRR_RR}R@RR|t from_locationRyRXR t readlinesRtstriptrstrip( RRRRRtfullpathRRt entry_filet entry_linestlineR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt find_on_paths: '    "    ( t_namespace_handlerst_namespace_packagescCs|t|/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs t|}|dkrdS|j|}|dkr;dStjj|}|dkrtj|}tj|RRtimpt new_moduleRt_set_parent_nsRRRRRt load_module(t packageNameRRRRthandlerRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _handle_nss*           cCs tjz|tkrdStjd}}d|krdj|jdd }t||tkrxt |nytj |j }Wqt k rt d|qXntj|gj|tj|gx|D]}t||qWWdtjXdS(s9Declare that package 'packageName' is a namespace packageNR:isNot a package:(Rt acquire_lockRR>RR R@RRURRRRRRRRt release_lock(RRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRU(s&        cCsbtjzFx?tj|dD]+}t||}|r t||q q WWdtjXdS(sDEnsure that previously-declared namespace packages include path_itemN((RRRRRRR(RRtpackageR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRHs cCs`tjj||jdd}t|}x+|jD]}t||kr8Pq8q8W|SdS(sBCompute an ns-package subpath for a filesystem or zipfile importerR:iN(RRR@RRR(RRRRRt normalizedR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytfile_ns_handlerRs " cCsdS(N(R (RRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytnull_ns_handlerescCstjjtjj|S(s1Normalize a file/dir name for comparison purposes(RRtnormcasetrealpath(R ((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRtkscCs9y ||SWn&tk r4t|||<}|SXdS(N(RRt(R RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRos   cCsU|jd}|j}|rQdj|}ttj||tj|ndS(NR:(RRR@tsetattrR>R(RRRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRvs  ccst|trSxn|jD]0}|j}|r|jd r|VqqWn-x*|D]"}xt|D] }|VqmWqZWdS(sAYield non-empty/non-comment lines of a ``basestring`` or sequencet#N(RRt splitlinesRRRm(tstrsRtss((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRm~s  s \s*(#.*)?$s\s*\\\s*(#.*)?$s\s*((\w|[-.])+)s!\s*(<=?|>=?|==|!=)\s*((\w|[-.])+)s\s*,s\s*\[s\s*\]s \w+(\.\w+)*$sL(?P[^-]+)( -(?P[^-]+) (-py(?P[^-]+) (-(?P.+))? )? )?s(\d+ | [a-z]+ | \.| -)tctpretpreviewsfinal-RStrct@tdevccsuxitj|D]X}t||}| s|dkr>qn|d dkr_|jdVqd|VqWdVdS(NR:it 0123456789it*s*final(t component_reRRtzfill(Rtpart((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_parse_version_partss cCsg}xt|jD]}|jdr|dkrdx'|r`|ddkr`|jq=Wnx'|r|ddkr|jqgWn|j|qWt|S(sConvert a version string to a chronologically-sortable key This is a rough cross between distutils' StrictVersion and LooseVersion; if you give it versions that would work with StrictVersion, then it behaves the same; otherwise it acts like a slightly-smarter LooseVersion. It is *possible* to create pathological version coding schemes that will fool this parser, but they should be very rare in practice. The returned value will be a tuple of strings. Numeric portions of the version are padded to 8 digits so they will compare numerically, but without relying on how numbers compare relative to strings. Dots are dropped, but dashes are retained. Trailing zeros between alpha segments or dashes are suppressed, so that e.g. "2.4.0" is considered the same as "2.4". Alphanumeric parts are lower-cased. The algorithm assumes that strings like "-" and any alpha string that alphabetically follows "final" represents a "patch level". So, "2.4-1" is assumed to be a branch or patch of "2.4", and therefore "2.4.1" is considered newer than "2.4-1", which in turn is newer than "2.4". Strings like "a", "b", "c", "alpha", "beta", "candidate" and so on (that come before "final" alphabetically) are assumed to be pre-release versions, so that the version "2.4" is considered newer than "2.4a1". Finally, to handle miscellaneous cases, the strings "pre", "preview", and "rc" are treated as if they were "c", i.e. as though they were release candidates, and therefore are not as new as a version string that does not contain them, and "dev" is replaced with an '@' so that it sorts lower than than any other pre-release tag. R.s*finalis*final-t00000000(R2RRRRttuple(RRR1((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRhs cBseZdZd d d dZdZdZed d dZd d dZ d dZ e e Z d dZ e e Z d dZ e e Z RS( s3Object representing an advertised importable objectcCsnt|std|n||_||_t||_tjddj|j |_ ||_ dS(NsInvalid module namesx[%s]t,( tMODULERCRt module_nameR4tattrsR`RR@RR(RRR7R8RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs   "cCsfd|j|jf}|jr<|ddj|j7}n|jrb|ddj|j7}n|S(Ns%s = %st:R:s [%s]R5(RR7R8R@R(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__str__s   cCsdt|S(NsEntryPoint.parse(%r)(R(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCs|r|j||nt|jttdg}xN|jD]C}yt||}WqDtk rtd||fqDXqDW|S(NRs%r has no %r attribute(RGRR7R R8RRR(RRGRRRRa((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytloads! cCs]|jr%|j r%td|ntttjtj|jj|j||dS(Ns&Can't require() without a distribution( RRReRRRVRRR(RRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRGs cCsyd }}|jdd\}}d|krz|jdd\}}tjd|}|jrntn|j}nd|kr|jdd\}}t|jstn|jjd}nWn tk rtd|n#X||j|j|||SdS( 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 t=it[sx[R9R:s9EntryPoint must be in 'name=module:attrs [extras]' formatN(( RR`RtspecsRCRR6RR(tclstsrcRR8RRtvalueR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs&         cCst|std|ni}xZt|D]L}|j||}|j|krptd||jn|||j/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt parse_groups cCst|tr|j}n t|}i}x~|D]v\}}|dkrj|s[q7ntdn|j}||krtd|n|j|||||/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt parse_map)s    ((N(RRRR RR:RRR;RGRt classmethodRDRG(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRas       cCs?|s dSt|}|djdr;t|d dS|S(NRismd5=(R(RRR(Rtparsed((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_remove_md5_fragment>s  cBseZdZdZd!d!d!d!ed!edZd!dZe eZe dZ dZ dZ dZdZd Zd Zd Zd Ze eZd Ze eZdZe eZdZe eZd"dZdZd!dZdZdZdZdZd!dZe eZdZdZ d!dZ!dZ"d!dZ#dZ$dZ%dZ&d Z'e e'Z'RS(#s5Wrap an actual or potential sys.path entry w/metadatasPKG-INFOcCsjt|p d|_|dk r3t||_n||_||_||_||_|p`t |_ dS(NtUnknown( RiR R Rjt_versionRR?RRRt _provider(RRRR RRR?R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRKs     c Ksdgd\}}}}tjj|\}} | jtkrt|} | r|| jdddd\}}}}nt| j}n|||d|d|d|d ||S( NiRtvertpyverRDR RRR?(R RRtsplitextRt_distributionImpltEGG_NAMERB( R?RRRR$R RRR?textR=((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRXs !cCs7t|dd|j|jt|j|j|jfS(Ntparsed_version((RRR3RJRRR?(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRjs  cCs t|jS(N(thashthashcmp(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__hash__sscCs|j|jkS(N(RV(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__lt__tscCs|j|jkS(N(RV(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__le__vscCs|j|jkS(N(RV(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__gt__xscCs|j|jkS(N(RV(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__ge__zscCs&t||jstS|j|jkS(N(RRRRV(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__eq__|scCs ||k S(N((RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt__ne__scCs:y |jSWn(tk r5|jj|_}|SXdS(N(t_keyRR R(RR3((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR3s   cCs:y |jSWn(tk r5t|j|_}|SXdS(N(t_parsed_versionRRhR(Rtpv((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRTs   cCsy |jSWntk rxu|j|jD]G}|jjdr.t|jdddj|_|jSq.Wt d|j|nXdS(Nsversion:R9is(Missing 'Version:' header and/or %s file( RLRt _get_metadatatPKG_INFORRRjRRRC(RR ((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs  % cCsy |jSWntk rigd6}|_xdD]}xt|j|D]\}}|rd|kr|jdd\}}t|rg}qt|sg}qnt|pd}n|j |gj t |qRWq6W|SXdS(Ns requires.txts depends.txtR9i(s requires.txts depends.txt( t_Distribution__dep_mapRR RnRaRRqRrRoRRRg(RtdmRRVtreqstmarker((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_dep_maps    "     'cCs|j}g}|j|jddxS|D]K}y|j|t|Wq/tk rytd||fq/Xq/W|S(s@List of Requirements needed for this distro if `extras` are useds%s has no such extra feature %rN((RgRRR RoRRe(RRRdtdepsRS((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs   ccs5|j|r1x|j|D] }|VqWndS(N(RR(RRR ((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRascCsd|dkrtj}n|j||tjkr`t|jttt|j dndS(s>Ensure distribution is importable on `path` (default=sys.path)snamespace_packages.txtN( R R>RRRRRRRURa(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytactivates    cCsOdt|jt|j|jp'tf}|jrK|d|j7}n|S(s@Return what this distribution's standard .egg filename should bes %s-%s-py%sRS(RpR RRR'R?(RR ((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs  cCs(|jrd||jfSt|SdS(Ns%s (%s)(RR(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRs cCsMyt|dd}Wntk r/d}nX|p9d}d|j|fS(NRs[unknown version]s%s %s(RR RCR (RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR:s   cCs.|jdrt|nt|j|S(sADelegate all unrecognized public attributes to .metadata providerR(RRRRM(RRa((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt __getattr__scKs(|jt|tjj|||S(N(RRRRR(R?R RR$((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCstjd|j|jfS(s?Return a ``Requirement`` that matches this distribution exactlys%s==%s(R`RR R(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRscCsD|j||}|dkr:td||ffn|jS(s=Return the `name` entry point of `group` or raise ImportErrorsEntry point %r not foundN(RMR RR;(RRBRR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRK s cCscy |j}Wn3tk rBtj|jd|}|_nX|dk r_|j|iS|S(s=Return the entry point map for `group`, or the full entry mapsentry_points.txtN(t_ep_mapRRaRGRaR R(RRBtep_map((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRL s    cCs|j|j|S(s<Return the EntryPoint object for `group`+`name`, or ``None``(RLR(RRBR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRM sc Csd|p |j}|sdSt|}tjj|}g|D]}|rVt|pY|^q>}xt|D]w\}}||krPqo||kro|jtkro|tjkr|j n|j |||j ||PqoqoW|tjkr|j n|j |dSxFy|j ||d}Wnt k rHPqX||=||=|}qdS(s@Insert self.location in path before its nearest parent directoryNi(RRRRRt enumerateRRuR>tcheck_version_conflictRRtindexRC( RRtloctnloctbdirtptnpathRtnp((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s6 +      c Cs|jdkrdStj|jd}t|j}x|jdD]}|tjksJ||ksJ|tkr}qJn|dkrqJnt tj|dd}|rt|j |sJ|j |jrqJnt d|||jfqJWdS( Nt setuptoolssnamespace_packages.txts top_level.txtt pkg_resourcestsiteRsIModule %s was already imported from %s, but %s is being added to sys.path(RwRvssite( R3RRRaRtRR>RRRR Rt issue_warning(RtnspRptmodnameR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRn@ s"  cCs8y |jWn&tk r3tdt|tSXtS(NsUnbuilt egg for (RRCRyRRR(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRU s   cKsMx*dD]"}|j|t||d qW|jd|j|j|S( s@Copy this distribution, substituting in any changed keyword argsR RRR?RRR(s project_namesversions py_versionsplatformslocations precedenceN(RRR RMR(RR$Ra((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytclone] s   cCs g|jD]}|r |^q S(N(Rg(Rtdep((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRh sN(((RRRRbR R'RuRRRHtpropertyRVRWRXRYRZR[R\R]R3RTRRgRRaRiRRR:RjRRRKRLRMRRnRR|R(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR_GsV                              '   tDistInfoDistributioncBsSeZdZdZejdZedZedZ dZ dZ RS(sGWrap an actual or potential sys.path entry w/metadata, .dist-info styletMETADATAs([\(,])\s*(\d.*?)\s*([,\)])cCsXy |jSWnFtk rSddlm}|j|j|j|_|jSXdS(sParse and cache metadatai(tParserN(t _pkg_infoRt email.parserRtparsestrRRb(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_parsed_pkg_infor s   !cCs6y |jSWn$tk r1|j|_|jSXdS(N(t_DistInfoDistribution__dep_mapRt_compute_dependencies(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRg| s   cCsy|jdddg}|dj}|dj}tj|jd|}|jddjdd}||fS(sConvert 'Foobar (1); baz' to ('Foobar ==1', 'baz') Split environment marker, add == prefix to version specifiers as necessary, and remove parenthesis. t;iRis\1==\2\3t(t)(RRRTRUtEQEQR(Rt requires_distRtdistverstmark((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_preparse_requirement s c sddlm}igd6}|_gxc|jjdpBgD]I}|j|\}}tt|}|||_ j |qCWfd}t |d}|dj |xR|jjdpgD]8} t | j} tt || ||| /opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pytreqs_for_extra s sProvides-ExtraN(RR R RRtget_allRRRgRRt frozensetRRoRR( Rtcompile_markerRdRRRRIRtcommonRV((Res>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s$( RRRRbRTR RR~RRgRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRm s  s.eggs .egg-infos .dist-infocOs{d}t}y-x&tj|j|kr:|d7}qWWntk rOnXddlm}|d|d||dS(Nii(R>t stacklevel(R R>RRRCR=R>(R8R$tlevelR%R>((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRy s  c #s#tt|fd}xD]}t|}|sRtd|n|jd}|j}g}t||}|r|j}|tt||dd\}}}n|tt ||d d\}}}g|D]\}} |t | f^q}t |||Vq(WdS( sYield ``Requirement`` objects for each specification in `strs` `strs` must be an instance of ``basestring``, or a (possibly-nested) iterable thereof. cs?g}x|||s t||r`yt}d}Wq`tk r\tdq`Xn|||}|std|d|d||n|j|j||j}t||}|r|j}q |||s td|d||q q W|||}|r2|j}n|||fS(Nis+\ must not appear on the last nonblank lines Expected s intatsExpected ',' or end-of-list in(tCONTINUERt StopIterationRCRRBtendtCOMMA(tITEMt TERMINATORR Rstgroupst item_nameR!R=(RB(s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt scan_list s0   $ sMissing distribution specis 'extra' nameis version specN(i(ii( titerRmtDISTRORCRBRtOBRACKETtCBRACKETtVERSIONtLINE_ENDRjR`( R%RR R=R RsRR>RR&((RBs>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRg s"!    $$+cCs\g|D]}|j|f^q}|jg|D]\}}|^q3|ddd/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s" cBsSeZdZdZdZdZdZdZdZe eZRS(c Cs|t||_}||j|_|_g|D](\}}t|t|||f^q6}|jg|D]\}}}} || f^qu|_|t t t ||_ |_ |jt g|D]\}}}} ||f^qt|j f|_t|j|_dS(s>DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N(Rit unsafe_nameRR R3Rht state_machineRR>R4RRoRoRRthashCmpRUt_Requirement__hash( RR R>RRR+RoRIttransRN((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s5 ."4cCsgdjg|jD]}dj|^q}dj|j}|rSd|}nd|j||fS(NR5Rs[%s]s%s%s%s(R@R>RR (RRR>R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR: s . cCst|to|j|jkS(N(RR`R(RR"((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR\ sc Cs t|tr=|j|jkr%tS|jr[|j}q[nt|tr[t|}nd}d}x|jD]{\}}}}||||}|dkrtS|dkrt S|dkrt }qt|dks|dkrtt}qtqtW|dkrt }n|S(NcSs||k||kS(N((tatb((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR$ stFtTt+RS( RR_R3RRoRTRRhR R( RRRtcompareRIRRRNtaction((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s,        cCs|jS(N(R(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRW1 scCsdt|S(NsRequirement.parse(%r)(R(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR4 scCsWtt|}|rDt|dkr2|dStd|ntd|dS(NiisExpected only one requirementsNo requirements found(RRgRvRC(RRe((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR7 s ( RRRR:R\RRWRRRF(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR` s       s--TtsT+Fs>=sT..s==sF++s!=cCs:t|ts3d|tfdY}|jdS|jS(s&Get an mro for a type or classic classR?cBseZRS((RR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR?O si(Rttypetobjectt__mro__(R?((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt_get_mroL s cCsAx:tt|dt|D]}||kr||SqWdS(s2Return an adapter factory for `ob` from `registry`RN(RRR(tregistryR4R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRS s% cCs8tjj|}tjj|s4tj|ndS(s1Ensure that the parent directory of `path` existsN(RRRRtmakedirs(RR((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRsZ sccsd}g}xt|D]y}|jdr|jdrs|sI|rW||fVn|dd!j}g}qtd|q|j|qW||fVdS(srSplit 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``. R=t]iisInvalid section headingN(R RmRRRRCR(RtsectiontcontentR ((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRn` s  cOsDddlm}tj}ztt_|||SWd|t_XdS(Ni(tmkstemp(ttempfileRRR tos_open(R8R$Rtold_open((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyRy s   cCs@x9ttD]+}|jds tt|||/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyt _initialize sR(t __requires__cCs |jS(N(Ri(R((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyR s(RR>RRRTRRRR=R9RrtpkgutilRRRRt urllib.parseRRtsetsRRRt cStringIORRRtioR RRRRRRRRR Rtos.pathRRR\timplementationRtimportlib._bootstrapt _bootstraptimportlib_bootstrapRRR"R'R,R.R0R5R6R7t _sget_nonet _sset_noneRFt__all__t ExceptionRbRcRdReRRR'RuRvRwRxRyRRIRARR;R R<RRkRlRHRRJRKRLRMRzR{RR]R\RRORfR^R[RiRjRoRpt _marker_namesRR]R`RmRqRrRR RRRRtSourceFileLoaderRRRRRR|R}R~RRXRRR t ImpImportert FileFinderRRRURRRRtRRRmR=RRRRRRRR6tVERBOSEt IGNORECASERRR/RRR2RhRaRJR_RRQRyRgRR`RRRRsRnRRRt__main__RRVRGRRRRRRRRNRRWRR(((s>/opt/alt/python34/lib/python3.4/site-packages/pkg_resources.pyts                  '                                 1      )            Z  c    !     (           , )n '?   > <