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KO}ӽmSşذqsOy?\[,d@'73'j%kOe`1.g2"e =YIzS2|zŐƄa\U,dP;jhhhaxǶ?КZ՚.q SE+XrbOu%\GتX(H,N^~]JyEZQKceTQ]VGYqnah;y$cQahT&QPZ*iZ8UQQM.qo/T\7X"u?Mttl2Xq(IoW{R^ ux*SYJ! 4S.Jy~ BROS[V|žKNɛP(L6V^|cR7i7nZW1Fd@ Ara{詑|(T*dN]Ko?s=@ |_EvF]׍kR)eBJc" MUUbY6`~V޴dJKß&~'d3i WWWWWW
Current Directory: /usr/lib/python2.7/site-packages
Viewing File: /usr/lib/python2.7/site-packages/pkg_resources.pyc
� b-�QcF@sP dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z yddl m Z m Z Wn'e k r�ddlm Z m Z nXyeWn!ek r�ddlmZnXy0ed�ZddlmZeed�ZWnWek rweZddlmZed �Zeed �ZddlZejZnXdd lm Z y&dd lm!Z!m"Z"m#Z#e$Z%Wne k r�e&Z%nXdd lm'Z(ddl)m*Z*m+Z+ej,ddfkoej-j.dkr'ddl/j0Z1neZ1yddl2Z2Wne k rPnXdd�Z3iZ4d�Z5d�Z6d�Z7d�Z8d�Z9d�Z:d�Z;d�Z<Z=d�Z>ddddd 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_d`gEZ?d7e@fda��YZAd8eAfdb��YZBd9eAfdc��YZCd:eAfdd��YZDiZEejFd ZGdZHdeZIdfZJdgZKdZLdh�ZMdi�ZNgdj�ZOdk�ZPdl�ZQejRdm�ZSejRdn�ZTeQZUdo�ZVdp�ZWeWZXdq�ZYdr�ZZeds�Z[dt�Z\dOfdu��YZ]dPe]fdv��YZ^d2e_fdw��YZ`d1e_fdx��YZaeaZbd;ecfdy��YZdd3fdz��YZed{�Zfd|�Zgd}�Zhd~�Zid�Zjid�gd�6d�gd�6d�d�d�gd�6gd�6gd�6gd�6Zkid��d�6d��d�6d��d�6d��d�6d��d�6d��d�6d��d�6Zld��Zmd��Znd��Zoeid��Zpd��Zqd�er�kr0eqZpndVfd���YZseMe_es�dWesfd���YZtdXetfd���YZueMeve�eu�e1ek r�eMe1jweu�ndTesfd���YZxex�Zyd��ZzdYetfd���YZ{eMej|e{�dQexfd���YZ}dReufd���YZ~dSe{fd���YZd�fd���YZ�d�fd���YZ�d��Z�ydd�l�m�Z�m�Z�Wne k r�n Xe�Z�[�[�e5d�d�i�d��Z�e&d��Z�e&d��Z�e�ej|e��e&d��Z�e�e_e��e&d��Z�e�e�e��e1ek r9e�e1j�e��ne5d�d�i�e5d�d�i�d��Z�d��Z�d��Z�ed��Z�d��Z�e�e�e��e�ej|e��e1ek r�e�e1j�e��nd��Z�e�e_e��d��Z�id��Z�d��Z�d��Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd��j�Z�ejRd�ej�ej�B�j�Z�ejRd�ej��Z�id�d�6d�d�6d�d�6d�d�6d�d�6j�Z�d��Z�d��Z�d6e_fd���YZ�d��Z�d4e_fd���YZ�d�e�fd���YZ�ie�d�6e�d�6e�d�6Z�d��Z�d��Z�d��Z�d5fd���YZ�id�d�6d�d�6d�d�6d�d�6d�d�6d�d�6Z�d��Z�d��Z�d��Z�d��Z�d��Z�ee�Z�d��Z�e�er��e5d�d+e`��ydd�l�m�Z�Wne k rN n�Xye�j�e��Wn�eBk r� e`g�Z�x0e�j�e�e��ea��D]Z�e�j�e��q� Wx0ej�D]%Z�e�e�j�kr� e�j�e��nq� We�j�ej�(nXe�j�Z�e�j�Z�e�j�Z�e�jWZWeWZXe�d���ge�_�e�e�e�j�ej���dS(�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. i����N(turlparset urlunparse(t ImmutableSetcCs |j�S(N(tnext(to((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt<lambda>s(tStringIOcBsc|dkrBejd�}|j}|dkr<|j}n~n|dkrW|}nddUdS(Nisexec code in globs, locs(tNonetsyst _getframet f_globalstf_locals(tcodetglobstlocstframe((s1/usr/lib/python2.7/site-packages/pkg_resources.pytexec_ s      (tBytesIOtexeccCsY|dkrt�}n|dkr-|}nttt|�j�|d�||�dS(NR(RtglobalsRtcompiletopentread(tfnR R((s1/usr/lib/python2.7/site-packages/pkg_resources.pytexecfile.s     (tutime(tmkdirtrenametunlink(R(tisdirtsplititcpythoni�cCs^tstd��nt|�\}}|rZ|rZt|� rZt|�t||�ndS(Ns*"os.mkdir" not supported on this platform.(t WRITE_SUPPORTtIOErrorRRt_bypass_ensure_directoryR(tnametmodetdirnametfilename((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR"Ns  cKs>t�}x.|j�D] \}}|||<|t|<qWdS(N(Rtitemst _state_vars(tvartypetkwtgR#tval((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_declare_stateZs  cCsLi}t�}x6tj�D](\}}|d|||�||<qW|S(Nt_sget_(RR(R'(tstateR+tktv((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __getstate__`s   cCsJt�}x:|j�D],\}}|dt|||||�qW|S(Nt_sset_(RR'R((R/R+R0R1((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __setstate__gs $cCs |j�S(N(tcopy(R,((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _sget_dictmscCs|j�|j|�dS(N(tcleartupdate(tkeytobR/((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _sset_dictps cCs |j�S(N(R2(R,((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _sget_objecttscCs|j|�dS(N(R4(R9R:R/((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _sset_objectwscGsdS(N(R(targs((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRzscCs{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_platformtmacosVersionStringtmatchRRtplatformtjoint _macosx_verstgroupt ValueError(tplattm((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_supported_platforms - 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_packagest get_importertrun_maintAvailableDistributionscBseZdZd�ZRS(s.Abstract base for dependency resolution errorscCs|jjt|j�S(N(t __class__t__name__treprR>(tself((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__repr__�s(R�t __module__t__doc__R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRg�scBseZdZRS(sAAn already-installed version conflicts with the requested version(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRh�scBseZdZRS(s&A requested distribution was not found(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRi�scBseZdZRS(s>Distribution doesn't have an "extra feature" of the given name(R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRj�siiicCs|t|<dS(sRegister `provider_factory` to make providers for `loader_type` `loader_type` is the type or class of a PEP 302 ``module.__loader__``, and `provider_factory` is a function that, passed a *module* object, returns an ``IResourceProvider`` for that module. N(t_provider_factories(t loader_typetprovider_factory((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs�t|t�r2tj|�p1tt|��dSytj|}Wn(tk rmt |�tj|}nXt |dd�}t t |�|�S(s?Return an IResourceProvider for the named module or requirementit __loader__N(t isinstanceReR[tfindRLtstrRtmodulestKeyErrort __import__tgetattrRt _find_adapterR�(t moduleOrReqtmoduletloader((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRN�s#  cCs�|s�ddl}|j�d}|dkr�ddl}d}tjj|�r�t|d�r�|j|�}d|kr�|d}q�q�q�n|j|j d��n|dS(Ni����its0/System/Library/CoreServices/SystemVersion.plistt readPlisttProductVersionR@( RDtmac_vertplistlibtostpathtexiststhasattrR�tappendR(t_cacheRDtversionR�tplistt plist_content((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRF�s    cCsidd6dd6j||�S(NtppctPowerPCtPower_Macintosh(tget(tmachine((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _macosx_arch scCs�yddlm}Wn!tk r7ddlm}nX|�}tjdkr�|jd� r�yTt�}tj �dj dd�}dt |d �t |d �t |�fSWq�t k r�q�Xn|S( s�Return 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����(RpR?smacosx-it t_smacosx-%d.%d-%sii(t sysconfigRpt ImportErrortdistutils.utilRRDt startswithRFR�tunametreplacetintR�RH(RpRIR�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRAs    smacosx-(\d+)\.(\d+)-(.*)sdarwin-(\d+)\.(\d+)\.(\d+)-(.*)c CsO|d ks$|d ks$||kr(tStj|�}|rKtj|�}|s�tj|�}|r�t|jd��}d|jd�|jd�f}|dkr�|dks�|dkr�|dkr�tSntS|jd�|jd�ks|jd�|jd�krtSt|jd��t|jd��krGtStStS( s�Can 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(RtTrueRBRCtdarwinVersionStringR�RGtFalse(tprovidedtrequiredtreqMactprovMact provDarwintdversiont macosversion((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRq3s*$"*cCsNtjd�j}|d}|j�||d<t|�dj||�dS(s@Locate distribution `dist_spec` and run its `script_name` scriptiR�iN(RR R R7RLRM(t dist_spect script_nametnsR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRMfs    cCsdt|t�r!tj|�}nt|t�r?t|�}nt|t�s`td|��n|S(s@Return a current distribution object for a Requirement or strings-Expected string, Requirement, or Distribution(R�t basestringRetparseRNRdt TypeError(tdist((s1/usr/lib/python2.7/site-packages/pkg_resources.pyROpscCst|�j||�S(sDReturn `name` entry point of `group` for `dist` or raise ImportError(RORP(R�RGR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRPxscCst|�j|�S(s=Return the entry point map for `group`, or the full entry map(RORQ(R�RG((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRQ|scCst|�j||�S(s<Return the EntryPoint object for `group`+`name`, or ``None``(RORR(R�RGR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRR�scBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsdS(s;Does the package's distribution contain the named metadata?N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt has_metadata�scCsdS(s'The named metadata resource as a stringN((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt get_metadata�scCsdS(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#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_metadata_lines�scCsdS(s>Is the named metadata a directory? (like ``os.path.isdir()``)N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytmetadata_isdir�scCsdS(s?List of metadata names in the directory (like ``os.listdir()``)N((R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pytmetadata_listdir�scCsdS(s=Execute the named script in the supplied namespace dictionaryN((R�t namespace((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRM�s(R�R�R�R�R�R�R�RM(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s      cBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(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((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_filename�scCsdS(siReturn a readable file-like object for `resource_name` `manager` must be an ``IResourceManager``N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_stream�scCsdS(smReturn a string containing the contents of `resource_name` `manager` must be an ``IResourceManager``N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_resource_string�scCsdS(s,Does the package contain the named resource?N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt has_resource�scCsdS(s>Is the named resource a directory? (like ``os.path.isdir()``)N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRY�scCsdS(s?List of resource names in the directory (like ``os.listdir()``)N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRW�s( R�R�R�R�R�R�R�RYRW(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cBs�eZdZdd�Zd�Zd�Zd�Zdd�Zd�Z d�Z de d�Z ddd �Z dde d �Zd �Zd �Zd �Zd�Zd�ZRS(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 callbacksRRR�t add_entry(R�R�tentry((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__init__�s       cCsT|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�R]R�taddR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs|jj|j�|kS(s9True if `dist` is the active distribution for its project(R�R�R9(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __contains__�scCsG|jj|j�}|dk r?||kr?t||��n|SdS(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�R9RRh(R�treqR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s ccsgx`|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(RQRtvalues(R�RGR#R�R�tep((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRSs    cCsQtjd�j}|d}|j�||d<|j|�dj||�dS(s?Locate distribution for `requires` and run `script_name` scriptiR�iN(RR R R7RLRM(R�trequiresR�R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRMs    ccspi}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�tseentitemR9((s1/usr/lib/python2.7/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|j�n|j|kr�|j|j�n|j |�dS(s�Add `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_onR�RtlocationR�R�R9R�R�t _added_new(R�R�R�tinserttkeystkeys2((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�1s   c CsVt|�ddd�}i}i}g}x$|rQ|jd�}||krUq.n|j|j�}|dkr|jj|j�}|dkr�|dkr�t|j�}n|j|||�}||j<|dkr�t |��q�n|j |�n||krt ||��n|j |j |j�ddd��t||<q.W|S(sList all distributions needed to (recursively) meet `requirements` `requirements` must be a sequence of ``Requirement`` objects. `env`, if supplied, should be an ``Environment`` instance. If not supplied, it defaults to all distributions available within any entry or distribution in the working set. `installer`, if supplied, will be invoked with each requirement that cannot be met by an already-installed distribution; it should return a ``Distribution`` or ``None``. Ni����i(tlisttpopR�R9RR�RaR�t best_matchRiR�RhtextendR�textrasR�( R�t requirementstenvt installert processedtbestt to_activateR�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytresolveMs.         &cCsOt|�}|j�i}i}|dkrJt|j�}||7}n ||}|jg�} tt| j|��x�|D]�} x�|| D]�} | j�g} y| j | ||�} Wn8t k r�t j �d}||| <|r�q�q'Pq�Xtt| j| ��|j tj| ��Pq�Wq�Wt|�}|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(R�tsortRRaR�R�tmapR�tas_requirementRRgRtexc_infoR8tdicttfromkeys(R�t plugin_envtfull_envR�tfallbacktplugin_projectst error_infot distributionsR�t shadow_sett project_nameR�R�t resolveesR1((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt find_plugins|s6#           cGs7|jt|��}x|D]}|j|�qW|S(s�Ensure 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. (RRlR�(R�R�tneededR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRL�s  cCsB||jkrdS|jj|�x|D]}||�q*WdS(sAInvoke `callback` for all distributions (including existing ones)N(R�R�(R�tcallbackR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt subscribe�s  cCs"x|jD]}||�q WdS(N(R�(R�R�R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs*|j|jj�|jj�|jfS(N(R�R�R5R�R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR2�scCsH|\}}}}||_|j�|_|j�|_||_dS(N(R�R5R�R�R�(R�te_k_b_cR�R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR4�s  N(R�R�R�RR�R�R�R�RSRMR�R�R�RRRLRR�R2R4(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRb�s       0R    cBs�eZdZd e�ed�Zd�Zd�Zd d�Z d�Z d�Z d d�Z d d�Z 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. ``'2.4'``); 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�RDtpythontscan(R�t search_pathRDR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cCsC|jdks0|jdks0|j|jkoBt|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(RRt py_versionRqRD(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytcan_addscCs|j|jj|�dS(s"Remove `dist` from the environmentN(RR9tremove(R�R�((s1/usr/lib/python2.7/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(RRR�R]R�(R�RR�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR"s    cCs�y|j|SWn0tk rA|j�}||jkrBgSnX||jkrv|j|}|j|<t|�n|j|S(sKReturn a newest-to-oldest list of distributions for `project_name` (R�R�tlowerRt _sort_dists(R�Rtdists((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __getitem__1s   cCs|j|�r{|j�r{|jj|jg�}||kr{|j|�|j|jkrxt|j|j�qxq{ndS(s<Add `dist` if we ``can_add()`` it and it isn't already addedN(Rt has_versionRR�R9R�R�R (R�R�R!((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�As   cCsW|j|�}|dk r|Sx%||jD]}||kr-|Sq-W|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�RR9tobtain(R�R�R[R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Ks   cCs|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(R(R�t requirementR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR$`s ccs0x)|jj�D]}||r|VqqWdS(s=Yield the unique project names of the available distributionsN(RR�(R�R9((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�ls cCs{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�RdR�RaR�(R�tothertprojectR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__iadd__ts cCs@|jgdddd�}x||fD]}||7}q(W|S(s4Add an environment or distribution to an environmentRDRN(R�R(R�R&tnewR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__add__�sN(R�R�R�RRKtPY_MAJORR�RRRR"R�R�R$R�R(R*(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRa�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 (R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRk�s cBs�eZdZdZd�Zd�Zd�Zd�Zd�Z d�Z d�Z d�Z dd �Z ed ��Zd �Zd �Zed �ZRS(s'Manage resource extraction and packagescCs i|_dS(N(t cached_files(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCst|�j|�S(sDoes the named resource exist?(RNR�(R�tpackage_or_requirementR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRX�scCst|�j|�S(s,Is the named resource an existing directory?(RNRY(R�R-R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRY�s cCst|�j||�S(s4Return a true filesystem path for specified resource(RNR�(R�R-R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRV�s cCst|�j||�S(s9Return a readable file-like object for specified resource(RNR�(R�R-R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRU�s cCst|�j||�S(s%Return specified resource as a string(RNR�(R�R-R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRT�s cCst|�j|�S(s1List the contents of the named resource directory(RNRW(R�R-R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRW�s cCs]tj�d}|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(RRtextraction_pathR`RkR�t cache_pathtoriginal_error(R�told_excR/terr((s1/usr/lib/python2.7/site-packages/pkg_resources.pytextraction_error�s   cCsn|jpt�}tjj||d|�}yt|�Wn|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( R.R`R�R�RER"R3t_warn_unsafe_extraction_pathR,(R�t archive_nametnamest extract_patht target_path((s1/usr/lib/python2.7/site-packages/pkg_resources.pytget_cache_path�s   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).( R�R#R�tenvirontstattst_modetS_IWOTHtS_IWGRPtwarningstwarnt UserWarning(R�R$tmsg((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR4s &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. tposiximi�N(R�R#R=R>tchmod(R�ttempnameR&R$((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt postprocess1scCs%|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(R,RHR.(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR^Zs  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((R�tforce((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR_tsN((R�R�R�RR.R�RXRYRVRURTRWR3R9t staticmethodR4RHR^R�R_(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRc�s        ) ) ) cCsytjdSWntk r"nXtjdkrBtjjd�Sd}dd|fd|fd|fdd|fg}x�|D]�\}}d }xn|D]5}|tjkr�tjj|tj|�}q�Pq�W|r�tjj||�}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_CACHER:s~/.python-eggssApplication DatatAPPDATAt USERPROFILEt HOMEDRIVEtHOMEPATHtHOMEtWINDIRR�s Python-Eggss3Please set the PYTHON_EGG_CACHE enviroment variableN(sAPPDATA((sAPPDATAN(RM(RNRO(RO(sHOME((sHOMEN(RQ( R�R<R�R#R�t expanduserRREt RuntimeError(tapp_datat app_homesR�tsubdirR%R9((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR`�s0     cCstjdd|�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#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRn�scCs%|jdd�}tjdd|�S(s�Convert 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. R�R@s[^A-Za-z0-9.]+RW(R�RXRY(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRo�scCstjdd|�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�(RXRYR(textra((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRt�scCs|jdd�S(s|Convert a project or version name to its filename-escaped form Any '-' characters are currently replaced with '_'. RWR�(R�(R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRu�sR#R�RDRR�R�tpython_implementationtpython_versiontpython_full_versionRZcCstjS(N(R�R#(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stos_namecCstjS(N(RRD(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�st sys_platformcCstjj�dS(Ni(RR�R(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCsdtjdtjdfS(Ns%s.%sii(Rt version_info(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCs td�S(NR�(t _platinfo(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stplatform_versioncCs td�S(NR�(Ra(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�stplatform_machinecCstd�pt�S(NR[(Rat_pyimp(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCs;yddl}Wntk r$dSXt||d���S(Ni����R�cSsdS(NR�((((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s(RDR�R�(tattrRD((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRa�s  cCsDtjdkrdStjjd�r)dSdtjkr<dSdSdS(Ntclit IronPythontjavatJythont__pypy__tPyPytCPython(RRDR�tbuiltin_module_names(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRd�scCs1yt|�Wntk r,tj�dSXtS(sHValidate text as a PEP 426 environment marker; return exception or Falsei(Rwt SyntaxErrorRRR�(ttext((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRv�s  csN�s ddlm�m�ddl�ddl�ddl���fd�}��fd�}��fd�}���fd�}�ji|�j6|�j6|�j6|�j 6d�d 6d �d 6�j d 6�j d 6�t �d�r |��j <q n��fd����fd���tj|�jd�d�S(sV Evaluate a PEP 426 environment marker on CPython 2.4+. Return a boolean indicating the marker result in this environment. Raise SyntaxError if marker is invalid. This implementation uses the 'parser' module, which is not implemented on Jython and has been superseded by the 'ast' module in Python 2.6 and later. i����(tNAMEtSTRINGNcs?t�jgtdt|�d�D]}�||�^q"�S(Nii(treducetand_trangetlen(tnodelistti(t interprettoperator(s1/usr/lib/python2.7/site-packages/pkg_resources.pytand_testscs?t�jgtdt|�d�D]}�||�^q"�S(Nii(Rrtor_RtRu(RvRw(RxRy(s1/usr/lib/python2.7/site-packages/pkg_resources.pyttestscsa|dd}|�jkrQ|dd�jkrCtd��n�|d�Std��dS(NiiisEmpty parenthesess5Language feature not supported in environment markers(tLPARtRPARRn(Rvtt(Rxttoken(s1/usr/lib/python2.7/site-packages/pkg_resources.pytatoms cs�t|�dkr!td��n|dd}|d}|d�kr�t|d�dkr�|dkrtd}q}d }q�ny�|}Wn'tk r�tt|�d ��nX|�|d��|d��S( Nis5Chained comparison not allowed in environment markersiiiitnotsnot insis nots, operator not allowed in environment markers(RuRnR�R�(Rvtcomptcop(Rpt_opstevaluate(s1/usr/lib/python2.7/site-packages/pkg_resources.pyt comparisons     cSs ||kS(N((txty((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR1ssnot incSs ||kS(N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR2stins==s!=tor_testcszx t|�dkr"|d}qWy�|d}Wn8tk rotd��td�j|d��nX||�S(Niiis)Comparison or logical expression expecteds7Language feature not supported in environment markers: (RuR�Rntsym_name(Rvtop(R�tsymbol(s1/usr/lib/python2.7/site-packages/pkg_resources.pyRx7s  cs�x t|�dkr"|d}qW|d}|d}|�kr|yt|}Wn!tk rttd|��nX|�S|�kr�|d}|d dks�|jd�s�|jd�s�d|kr�td ��n|dd !Std ��dS( NiiisUnknown name %rs'"s"""s'''s\s1Only plain strings allowed in environment markersi����s5Language feature not supported in environment markers(Rut_marker_valuesR�RnR�(RvtkindR#R�ts(RpRq(s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�@s$      .   i(R�RpRqR�RyR8R|RzR�R�teqtneR�R�tparsertexprttotuple(RoRZR�RzR|R�R�((RpRqR�R�RxRyR�R�s1/usr/lib/python2.7/site-packages/pkg_resources.pyRw�s $ " cCs�ddl}|j�}x9|j�D]+}|jdd�}|j|�||<q%Wy|j||�}Wn4tk r�tj�d}t |j d��nX|S(s� Evaluate a PEP 426 environment marker using markerlib. Return a boolean indicating the marker result in this environment. Raise SyntaxError if marker is invalid. i����NR@R�ii( t _markerlibtdefault_environmentR�R�R�Rxt NameErrorRRRnR>(RoR�R�R9tnew_keytresultte((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_markerlib_evaluateVs   R�cBs�eZdZdZdZdZd�Zd�Zd�Z d�Z d�Z d�Z e jdkrod�Zn d �Zd �Zd �Zd �Zd �Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(sETry to implement resources and metadata for arbitrary PEP 302 loaderscCs:t|dd�|_tjjt|dd��|_dS(NR�t__file__R�(R�RR�R�R�R%t module_path(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�vscCs|j|j|�S(N(t_fnR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�zscCst|j||��S(N(RR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�}scCs|j|j|j|��S(N(t_getR�R�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_hasR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs%|jo$|j|j|j|��S(N(tegg_infoR�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��sicCs)|js dS|j|j|j|��S(NR�(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs2|js dS|j|j|j|��jd�S(NR�sutf-8(R�R�R�tdecode(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCst|j|��S(N(RrR�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_isdirR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRY�scCs%|jo$|j|j|j|��S(N(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(t_listdirR�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRW�scCs)|jr%|j|j|j|��SgS(N(R�R�R�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cCs�d|}|j|�s,td|��n|j|�jdd�}|jdd�}|j|j|�}||d<tjj|�r�t |||�nWddl m }t |�d |j d�|f||<t||d �}t|||�dS( Nsscripts/sNo script named %rs s s R�i����(tcacheiR(R�RgR�R�R�R�R�R�R�Rt linecacheR�RuRRR(R�R�R�tscriptt script_texttscript_filenameR�t script_code((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRM�s  %cCstd��dS(Ns9Can't perform this operation for unregistered loader type(tNotImplementedError(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCstd��dS(Ns9Can't perform this operation for unregistered loader type(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCstd��dS(Ns9Can't perform this operation for unregistered loader type(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs&|r"tjj||jd��S|S(Nt/(R�R�RER(R�tbaseR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs2t|jd�r"|jj|�Std��dS(Ntget_datas=Can't perform this operation for loaders without 'get_data()'(R�R�R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��sN(i(R�R�R�Rtegg_nameR�R�R�R�R�R�R�R�RR`R�R�RYR�RWR�RMR�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�os0                  cBs eZdZd�Zd�ZRS(s&Provider based on a virtual filesystemcCstj||�|j�dS(N(R�R�t _setup_prefix(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs�|j}d}x}||kr�|j�jd�rmtjj|�|_tjj|d�|_ ||_ Pn|}tjj |�\}}qWdS(Ns.eggsEGG-INFO( R�RRtendswithR�R�tbasenameR�RER�tegg_rootR(R�R�toldR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s  (R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s cBs;eZdZd�Zd�Zd�Zd�Zd�ZRS(s6Provides access to package resources in the filesystemcCstjj|�S(N(R�R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCstjj|�S(N(R�R�R(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs tj|�S(N(R�tlistdir(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCst|j|j|�d�S(Ntrb(RR�R�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs/t|d�}z|j�SWd|j�XdS(NR�(RRtclose(R�R�tstream((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s(R�R�R�R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cBs<eZdZd�ZZd�Zd�ZdZd�Z RS(s.Provider that returns nothing for all requestscCstS(N(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRscCsdS(NR�((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRscCsgS(N((R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRscCsdS(N((R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�sN( R�R�R�R�R�R�R�RR�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� s    cCs�t�}tj|�}zYxR|j�D]D}|jdtj�}|j|�||<||dk s(t �q(WWd|j �X|S(sf This builds a similar dictionary to the zipimport directory caches. However instead of tuples, ZipInfo objects are stored. The translation of the tuple is as follows: * [0] - zipinfo.filename on stock pythons this needs "/" --> 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 R�N( RtzipfiletZipFiletnamelistR�R�tseptgetinfoRtAssertionErrorR�(R�tzipinfotzfiletzitemtzpath((s1/usr/lib/python2.7/site-packages/pkg_resources.pytbuild_zipmanifests  cBs�eZdZdZd�Zd�Zd�Zd�Ze d��Z d�Z d�Z d�Z d �Zd �Zd �Zd �Zd �Zd�ZRS(s"Resource support for zips and eggscCs?tj||�t|jj�|_|jjtj|_dS(N( R�R�R�R�tarchiveR�R�R�tzip_pre(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�@scCs@|j|j�r#|t|j�Std||jf��dS(Ns%s is not a subpath of %s(R�R�RuR�(R�tfspath((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _zipinfo_nameEscCsd|j|}|j|jtj�rG|t|j�djtj�Std||jf��dS(Nis%s is not a subpath of %s(R�R�R�R�R�RuRR�(R�tzip_pathR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_partsNs  !cCs�|jstd��n|j|�}|j�}dj|j|��|kr~x*|D]}|j||j|��qXWn|j||�S(Ns5resource_filename() only supported for .egg, not .zipR�(R�R�t_resource_to_zipt_get_eager_resourcesRER�t_extract_resourcet _eager_to_zip(R�R�R�R�teagersR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Ws     cCs/|j}|jd}tj|�}||fS(Nii����(iii����(t file_sizet date_timettimetmktime(tzip_stattsizeR�t timestamp((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_get_date_and_sizeds  c Cs�||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�RER%R�R�R R!R9R�R�t _is_currentt_mkstemptwriteR�R�R�RRHRterrortisfileR#RR3( R�R�R�R#tlastR�R�t real_pathtoutfttmpnam((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�ls@$    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�(R�R�R�R�R�R�R=tst_sizetst_mtimeR�R�RRR�( R�t file_pathR�R�R�R=t zip_contentstft file_contents((s1/usr/lib/python2.7/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(R�RR�R�R�(R�R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s  cCs�y |jSWn�tk r�i}x~|jD]s}|jtj�}xX|r�tjj|d �}||kr�||j|d�PqF|j�g||<qFWq+W||_|SXdS(Ni����( t _dirindextAttributeErrorR�RR�R�RER�R�(R�tindR�tpartstparent((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cCs.|j|�}||jkp-||j�kS(N(R�R�R�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|�|j�kS(N(R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs%t|j�j|j|�d��S(N((R�R�R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(R�R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs|j|j|j|��S(N(R�R�R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��sN(R�R�R�RR�R�R�R�R�RJR�R�R�R�R�R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�;s    1      cBs2eZdZd�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. cCs ||_dS(N(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs |dkS(NsPKG-INFO((R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scCsH|dkr8t|jd�}|j�}|j�|Std��dS(NsPKG-INFOtrUs(No metadata except PKG-INFO is available(RR�RR�R�(R�R#R�tmetadata((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s    cCst|j|��S(N(RrR�(R�R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� s(R�R�R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s     cBseZdZd�ZRS(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(R�R�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�1s (R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�scBseZdZd�ZRS(s Metadata provider for .egg filescCsrt|j�|_|jtj|_||_|jrXtjj |j|j�|_ n |j|_ |j �dS(s-Create a metadata provider from a zipimporterN( R�R�R�R�R�R�R�tprefixR�RER�R�(R�timporter((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�9s  ! (R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�6st ImpWrappercBs&eZdZdd�Zdd�ZRS(s>PEP 302 Importer that wraps Python's "normal" import algorithmcCs ||_dS(N(R�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�IscCs�|jd�d}||kr2|jdkr2dS|jdkrJd}n |jg}ytj||�\}}}Wntk r�dSXt|||�S(NR@i����(RR�Rtimpt find_moduleR�t ImpLoader(R�tfullnameR�tsubnametfileR&tetc((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Ls   N(R�R�R�RR�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�Fs R�cBs eZdZd�Zd�ZRS(s<PEP 302 Loader that wraps Python's "normal" import algorithmcCs||_||_||_dS(N(R�R&R�(R�R�R&R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�^s  cCsFz%tj||j|j|j�}Wd|jrA|jj�nX|S(N(R�t load_moduleR�R&R�R�(R�R�tmod((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�cs % (R�R�R�R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�[s cCs�ytj|}WnPtk rcx@tjD]+}y||�}Wntk rTq+XPq+Wd}nXtjj||�|dkr�yt|�}Wq�tk r�q�Xn|S(s�Retrieve a PEP 302 "importer" for the given path item If there is no importer, this returns a wrapper around the builtin import machinery. The returned importer is only cached if it was created by a path hook. N(Rtpath_importer_cacheR�t path_hooksR�RR�R�(t path_itemR�thook((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�os"     (R�t ImpImporterRt_distribution_finderscCs|t|<dS(sxRegister `distribution_finder` to find distributions in sys.path items `importer_type` is the type or class of a PEP 302 "Importer" (sys.path item handler), and `distribution_finder` is a callable that, passed a path item and the importer instance, yields ``Distribution`` instances found on that path item. See ``pkg_resources.find_on_path`` for an example.N(R(t importer_typetdistribution_finder((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs+t|�}tt|�}||||�S(s.Yield distributions accessible via `path_item`(R�R�R(R�tonlyR�tfinder((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR]�s ccs�t|�}|jd�r2tj|d|�Vn|r<dSxf|jd�D]U}|jd�rLtjj||�}x(t t j |�|�D] }|Vq�WqLqLWdS(NsPKG-INFOR�R�s.egg( R�R�Rdt from_filenameRWR�R�R�REt find_in_zipt zipimportt zipimporter(R�R�RR�tsubitemtsubpathR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s cCsdS(N(((R�R�R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt find_nothing�sc cst|�}tjj|�r tj|tj�r |j�jd�rwtj |dt |tjj |d���Vq x�tj |�D]}}|j�}|jd�s�|jd�rtjj ||�}tjj|�r�t ||�}n t |�}tj|||dt�Vq�| r]|jd�r]x�ttjj ||��D] }|VqKWq�| r�|jd�r�ttjj ||��}z|j�} Wd|j�XxU| D]J} | j�s�q�nx.ttjj || j���D] } | Vq�WPq�Wq�q�WndS( s6Yield distributions accessible on a sys.path directorys.eggR�sEGG-INFOs .egg-infos .dist-infot precedences .egg-linkN(t_normalize_cachedR�R�RtaccesstR_OKRR�RdRR�RER�R�t from_locationR~R]Rt readlinesR�tstriptrstrip( R�R�RR�RtfullpathR�R�t entry_filet entry_linestlineR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt find_on_path�s: '    "    ( t_namespace_handlerst_namespace_packagescCs|t|<dS(s�Register `namespace_handler` to declare namespace packages `importer_type` is the type or class of a PEP 302 "Importer" (sys.path item handler), and `namespace_handler` is a callable like this:: def namespace_handler(importer,path_entry,moduleName,module): # return a path_entry to use for child packages Namespace handlers are only called if the importer object has already agreed that it can handle the relevant path item, and they should only return a subpath if the module __path__ does not already contain an equivalent subpath. For an example namespace handler, see ``pkg_resources.file_ns_handler``. N(R(Rtnamespace_handler((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs t|�}|dkrdS|j|�}|dkr;dStjj|�}|dkr�tj|�}tj|<g|_t |�n!t |d�s�t d|��nt t |�}|||||�}|dk r |j}|j|�|j|�||_n|S(sEEnsure that named package includes a subpath of path_item (if needed)t__path__sNot a package:N(R�RR�RR�R�R�t new_moduleRt_set_parent_nsR�R�R�RR�R�(t packageNameR�R�R�R�thandlerR R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _handle_ns�s*        cCs 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 packageNR@i����sNot a package:(R�t acquire_lockRRR�RRERRZR�R�RR�R�R�R�R#t release_lock(R!R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRZs&        cCsbtj�zFx?tj|d�D]+}t||�}|r t||�q q WWdtj�XdS(sDEnsure that previously-declared namespace packages include path_itemN((R�R$RR�R#R�R%(R�R�tpackageR ((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�3s cCs`tjj||jd�d�}t|�}x+|jD]}t|�|kr8Pq8q8W|SdS(sBCompute an ns-package subpath for a filesystem or zipfile importerR@i����N(R�R�RERRR(R�R�R!R�R t normalizedR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytfile_ns_handler=s " cCsdS(N(R(R�R�R!R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytnull_ns_handlerPscCstjjtjj|��S(s1Normalize a file/dir name for comparison purposes(R�R�tnormcasetrealpath(R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRyVscCs9y ||SWn&tk r4t|�||<}|SXdS(N(R�Ry(R&R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRZs   cCsU|jd�}|j�}|rQdj|�}ttj||tj|�ndS(NR@(RR�REtsetattrRR�(R!R�R#R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR as  ccs�t|t�rSxn|j�D]0}|j�}|r|jd� r|VqqWn-x*|D]"}xt|�D] }|VqmWqZWdS(sAYield non-empty/non-comment lines of a ``basestring`` or sequencet#N(R�R�t splitlinesRR�Rr(tstrsR�tss((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRris  s \s*(#.*)?$s\s*\\\s*(#.*)?$s\s*((\w|[-.])+)s!\s*(<=?|>=?|==|!=)\s*((\w|[-.])+)s\s*,s\s*\[s\s*\]s \w+(\.\w+)*$sL(?P<name>[^-]+)( -(?P<ver>[^-]+) (-py(?P<pyver>[^-]+) (-(?P<plat>.+))? )? )?s(\d+ | [a-z]+ | \.| -)tctpretpreviewsfinal-RWtrct@tdevccsuxitj|�D]X}t||�}| s|dkr>qn|d dkr_|jd�Vqd|VqWdVdS(NR@it 0123456789it*s*final(t component_reRR�tzfill(R�tpart((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_parse_version_parts�s cCs�g}x�t|j��D]�}|jd�r�|dkrdx'|r`|ddkr`|j�q=Wnx'|r�|ddkr�|j�qgWn|j|�qWt|�S(s�Convert 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. R8s*finali����s*final-t00000000(R<RR�R�R�ttuple(R�R�R;((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRm�s cBs�eZdZd d d d�Zd�Zd�Zed d d�Zd d d�Z d d�Z e e �Z d d�Z e e �Z d d�Z e e �Z RS( s3Object representing an advertised importable objectcCsnt|�std|��n||_||_t|�|_tjddj|��j |_ ||_ dS(NsInvalid module namesx[%s]t,( tMODULERHR#t module_nameR>tattrsReR�RER�R�(R�R#RARBR�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s   "cCsfd|j|jf}|jr<|ddj|j�7}n|jrb|ddj|j�7}n|S(Ns%s = %st:R@s [%s]R?(R#RARBRER�(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__str__�s   cCsdt|�S(NsEntryPoint.parse(%r)(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��scCs�|r|j||�nt|jt�t�dg�}xN|jD]C}yt||�}WqDtk r�td||f��qDXqDW|S(NR�s%r has no %r attribute(RLR�RARRBR�R�R�(R�RLR�R�R�Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pytload�s! cCs]|jr%|j r%td|��ntttjtj|jj|j�||���dS(Ns&Can't require() without a distribution( R�R�RjR�RR[R�RR�(R�R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRL�s cCsy�d }}|jdd�\}}d|krz|jdd�\}}tjd|�}|jrnt�n|j}nd|kr�|jdd�\}}t|j��s�t�n|j�jd�}nWn tk r�td|��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[RCR@s9EntryPoint must be in 'name=module:attrs [extras]' formatN(( RReR�tspecsRHR�R@RR(tclstsrcR�RBR�R#tvalueR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR��s&         cCs�t|�std|��ni}xZt|�D]L}|j||�}|j|krptd||j��n|||j<q1W|S(sParse an entry point groupsInvalid group namesDuplicate entry point(R@RHRrR�R#(RIRGtlinesR�tthisRR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt parse_group s cCs�t|t�r|j�}n t|�}i}x~|D]v\}}|dkrj|s[q7ntd��n|j�}||kr�td|��n|j|||�||<q7W|S(s!Parse a map of entry point groupss%Entry points must be listed in groupssDuplicate group nameN(R�RR'RsRRHRRN(RItdataR�tmapsRGRL((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt parse_map s    ((N(R�R�R�RR�RDR�R�RERLR�t classmethodRNRQ(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRf�s      cCs?|s dSt|�}|djd�r;t|d d�S|S(NR�i����smd5=(R�(RR�R(R�tparsed((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_remove_md5_fragment2 s  cBs�eZdZdZd!d!d!d!ed!ed�Zd!d�Ze e�Ze d��Z d�Z d�Z d�Zd�Zd �Zd �Zd �Zd �Ze e�Zd �Ze e�Zd�Ze e�Zd�Ze e�Zd"d�Zd�Zd!d�Zd�Zd�Zd�Zd�Zd!d�Ze e�Zd�Zd�Z d!d�Z!d�Z"d!d�Z#d�Z$d�Z%d�Z&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( RnRRRot_versionRRDR�RR�t _provider(R�R�R�RR�RRDR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�? s     c Ks�dgd\}}}}tjj|�\}} | j�tkr�t|�} | r|| jdddd�\}}}}nt| j�}n|||d|d|d|d ||�S( NiR#tvertpyverRIRR�RRD(RR�R�tsplitextRt_distributionImpltEGG_NAMERG( RIR�R�R�R*RR�RRDtextRC((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRM s !cCs7t|dd�|j|jt|j�|j|jfS(Ntparsed_version((R�RR9RTR�RRD(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR` s  cCs t|j�S(N(thashthashcmp(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__hash__i scCs|j|jkS(N(R`(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__lt__j scCs|j|jkS(N(R`(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__le__l scCs|j|jkS(N(R`(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__gt__n scCs|j|jkS(N(R`(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__ge__p scCs&t||j�stS|j|jkS(N(R�R�R�R`(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__eq__r scCs ||k S(N((R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt__ne__w scCs:y |jSWn(tk r5|jj�|_}|SXdS(N(t_keyR�RR(R�R9((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR9 s   cCs:y |jSWn(tk r5t|j�|_}|SXdS(N(t_parsed_versionR�RmR�(R�tpv((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR^� s   cCs�y |jSWn�tk r�xu|j|j�D]G}|j�jd�r.t|jdd�dj��|_|jSq.Wt d|j|��nXdS(Nsversion:RCis(Missing 'Version:' header and/or %s file( RVR�t _get_metadatatPKG_INFORR�RoRRRH(R�R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s  % cCs�y |jSWn�tk r�igd6}|_x�dD]�}x�t|j|��D]�\}}|r�d|kr�|jdd�\}}t|�r�g}q�t|�s�g}q�nt|�p�d}n|j |g�j t |��qRWq6W|SXdS(Ns requires.txts depends.txtRCi(s requires.txts depends.txt( t_Distribution__dep_mapR�RRsRkRRvRwRtR�R�Rl(R�tdmR#RZtreqstmarker((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_dep_map� s    "     'cCs�|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((RqR�R�RRtR�Rj(R�R�RntdepsR]((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s   ccs5|j|�r1x|j|�D] }|VqWndS(N(R�R�(R�R#R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRk� scCsd|dkrtj}n|j|�|tjkr`t|j�ttt|j d���ndS(s>Ensure distribution is importable on `path` (default=sys.path)snamespace_packages.txtN( RRR�R�R�R�R�RRZRk(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pytactivate� s    cCsOdt|j�t|j�|jp'tf}|jrK|d|j7}n|S(s@Return what this distribution's standard .egg filename should bes %s-%s-py%sRW(RuRR�RR+RD(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s  cCs(|jrd||jfSt|�SdS(Ns%s (%s)(R�R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s cCsMyt|dd�}Wntk r/d}nX|p9d}d|j|fS(NR�s[unknown version]s%s %s(R�RRHR(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRD� s   cCs.|jd�rt|��nt|j|�S(sADelegate all unrecognized public attributes to .metadata providerR�(R�R�R�RW(R�Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt __getattr__� scKs(|jt|�tjj|�||�S(N(RRR�R�R�(RIR&R�R*((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� scCstjd|j|jf�S(s?Return a ``Requirement`` that matches this distribution exactlys%s==%s(ReR�RR�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� scCsD|j||�}|dkr:td||ff��n|j�S(s=Return the `name` entry point of `group` or raise ImportErrorsEntry point %r not foundN(RRRR�RE(R�RGR#R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRP s cCscy |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�RfRQRkRR�(R�RGtep_map((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRQ s    cCs|j|�j|�S(s<Return the EntryPoint object for `group`+`name`, or ``None``(RQR�(R�RGR#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRR sc Csj|p |j}|sdSt|�}tjj|�}g|D]}|rVt|�pY|^q>}d}x�t|�D]w\}}||kr�Pqu||kru|jtkru|t jkr�|j �n|j ||�|j ||�PququW|t jkr |j �n|j |�dSxFy|j ||d�} Wntk rNPq X|| =|| =| }q dS(s@Insert self.location in path before its nearest parent directoryNi(R�RR�R�R%Rt enumerateRRzRtcheck_version_conflictR�R�tindexRH( R�R�tloctnloctbdirtptnpathtbpR�tnp((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� s8 +      c Cs�|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�ssite( R9RR RkRyR�RR�RR�RR�t issue_warning(R�tnspRztmodnameR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRxG s"  cCs8y |jWn&tk r3tdt|��tSXtS(NsUnbuilt egg for (R�RHR�R�R�R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR#] s   cKsMx*dD]"}|j|t||d ��qW|jd|j�|j|�S( s@Copy this distribution, substituting in any changed keyword argsRR�RRDR�RR�(s project_namesversions py_versionsplatformslocations precedenceN(R�R�RRWR�(R�R*Re((s1/usr/lib/python2.7/site-packages/pkg_resources.pytclonee s   cCs g|jD]}|r |^q S(N(Rq(R�tdep((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�s sN(((R�R�R�RlRR+RzR�RRRtpropertyR`RaRbRcRdReRfRgR9R^R�RqR�RkRsR�R�RDRtRRRPRQRRR�RxR#R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRd; sT                          )    tDistInfoDistributioncBsSeZdZdZejd�Zed��Zed��Z d�Z d�Z 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_infoR�t email.parserR�tparsestrR�Rl(R�R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_parsed_pkg_info} s   !cCs6y |jSWn$tk r1|j�|_|jSXdS(N(t_DistInfoDistribution__dep_mapR�t_compute_dependencies(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRq� s   cCsy|jdd�dg}|dj�}|dj�}tj|jd|�}|jdd�jdd�}||fS(s�Convert 'Foobar (1); baz' to ('Foobar ==1', 'baz') Split environment marker, add == prefix to version specifiers as necessary, and remove parenthesis. t;iR�is\1==\2\3t(t)(RRRXRYtEQEQR�(R�t requires_distR�tdistverstmark((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_preparse_requirement� s c sddlm}igd6}|_g�xc|jjd�pBgD]I}|j|�\}}tt|��}||�|_ �j |�qCW�fd�}t |d��}|dj |�xR|jjd�p�gD]8} t | j��} tt || ��|�|| <q�W|S(s+Recompute this distribution's dependencies.i����(Rs Requires-Distc3s6x/�D]'}|jdi|d6�r|VqqWdS(NtoverrideRZ(t marker_fn(RZR�(Ro(s1/usr/lib/python2.7/site-packages/pkg_resources.pytreqs_for_extra� s sProvides-ExtraN(R�RRR�R�tget_allR�RRlR�R�t frozensetR�RtRR�( R�tcompile_markerRnR�R�R�RSR�tcommonRZ((Ros1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s$( R�R�R�RlRXRR�R�R�RqR�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�x s  s.eggs .egg-infos .dist-infocOs{d}t�}y-x&tj|�j|kr:|d7}qWWntk rOnXddlm}|d|d||�dS(Nii����(RBt stacklevel(RRR R RHRARB(R>R*tlevelR+RB((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s  c #s#tt|����fd�}x��D]�}t|�}|sRtd|��n|jd�}|j�}g}t||�}|r�|j�}|tt||dd�\}}}n|tt ||d d�\}}}g|D]\}} |t | �f^q�}t |||�Vq(WdS( s�Yield ``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\td��q`Xn|||�}|s�td|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 StopIterationRHR�RGtendtCOMMA(tITEMt TERMINATORRR}tgroupst item_nameR'RC(RL(s1/usr/lib/python2.7/site-packages/pkg_resources.pyt scan_list� s0  $ sMissing distribution specis 'extra' nameis version specN(i(ii( titerRrtDISTRORHRGR�tOBRACKETtCBRACKETtVERSIONtLINE_ENDRoRe( R/R�RRCRR}R�RHR�R,((RLs1/usr/lib/python2.7/site-packages/pkg_resources.pyRl� s"    $$+cCs\g|D]}|j|f^q}|j�g|D]\}}|^q3|ddd�<dS(Ni����(R`R(R!R�ttmpthctd((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR  s" cBsSeZd�Zd�Zd�Zd�Zd�Zd�Zd�Ze e�ZRS(c Cs|t|�|_}||j�|_|_g|D](\}}t|�t|||f^q6}|j�g|D]\}}}} || f^qu|_|t t t |��|_ |_ |jt g|D]\}}}} ||f^q��t|j �f|_t|j�|_dS(s>DO NOT CALL THIS UNDOCUMENTED METHOD; use Requirement.parse()!N(Rnt unsafe_nameRRR9Rmt state_machineRRHR>RRtRyR�R�thashCmpR_t_Requirement__hash( R�RRHR�R�R1RyRSttransRX((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�2 s5 ."4cCsgdjg|jD]}dj|�^q�}dj|j�}|rSd|}nd|j||fS(NR?R�s[%s]s%s%s%s(RERHR�R(R�R�RHR�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRD@ s . cCst|t�o|j|jkS(N(R�ReR�(R�R&((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRfF sc Cs t|t�r=|j|jkr%tS|jr[|j}q[nt|t�r[t|�}nd}d�}x�|jD]{\}}}}||||�}|dkr�tS|dkr�t S|dkr�t }qt|dks�|dkrtt}qtqtW|dkrt }n|S(NcSs||k||kS(N((tatb((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRP stFtTt+RW( R�RdR9R�RyR^R�RmRR�( R�R�R�tcompareRSR�R�RXtaction((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�I s,       cCs|jS(N(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRa[ scCsdt|�S(NsRequirement.parse(%r)(R�(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�^ scCsWtt|��}|rDt|�dkr2|dStd|��ntd|��dS(NiisExpected only one requirementsNo requirements found(R�RlRuRH(R�Ro((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�a s ( R�R�R�RDRfR�RaR�R�RJ(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRe1 s       s--Tt<sT-Ts<=sF+Ft>sT+Fs>=sT..s==sF++s!=cCs:t|t�s3d|tfd��Y}|jdS|jS(s&Get an mro for a type or classic classRIcBseZRS((R�R�(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRIy si(R�ttypetobjectt__mro__(RI((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt_get_mrov s cCsAx:tt|dt|���D]}||kr||SqWdS(s2Return an adapter factory for `ob` from `registry`R�N(R�R�R�(tregistryR:R((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�} s% cCs8tjj|�}tjj|�s4tj|�ndS(s1Ensure that the parent directory of `path` existsN(R�R�R%Rtmakedirs(R�R%((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRx� sccs�d}g}x�t|�D]y}|jd�r�|jd�rs|sI|rW||fVn|dd!j�}g}q�td|��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``. RGt]ii����sInvalid section headingN(RRrR�R�RRHR�(R�tsectiontcontentR((s1/usr/lib/python2.7/site-packages/pkg_resources.pyRs� s  cOsDddlm}tj}ztt_|||�SWd|t_XdS(Ni����(tmkstemp(ttempfileR�R�Rtos_open(R>R*R�told_open((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR�� s   cCs@x9tt�D]+}|jd�s tt|�||<q q WdS(NR�(R�t_managerR�R�(R+R#((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt _initialize� sR�(t __requires__cCs |j�S(N(Rs(R�((s1/usr/lib/python2.7/site-packages/pkg_resources.pyR� s(�R�RR�R�RXR�ttypesR�R RAR=RRR�t urllib.parseR�R�tsetsRR�Rt cStringIORRRRR�tiotevalRt functoolsRrRRRRR�R R�RR�tos.pathRRR`timplementationR#timportlib._bootstrapt _bootstraptimportlib_bootstrapR�R"R(R-R2R4R6R;R<R=t _sget_nonet _sset_noneRKt__all__t ExceptionRgRhRiRjR�R�R+RzR{R|R}R~R�RNRFR�RARRBR�RpRqRMR�RORPRQRRRR�R�RbRaR�RSRkRcR`RnRoRtRut _marker_namesR�RaRdRvRwR�RR�R�R�R�tSourceFileLoaderR�R�R�R�R R�R�R�R�R�R�tpkgutilRR�R]RR Rt FileFinderR�R#RZR�R(R)RyRR RrRCR�R�R�R�R�R�R�R@tVERBOSEt IGNORECASER\R9R�R�R<RmRfRTRdR�R[R�RlR ReR�R�R�RxRsR�R�R�t__main__R�R[RLRR�R�R�R�R�R�RSRR\R�R(((s1/usr/lib/python2.7/site-packages/pkg_resources.pyt<module>s�`            '           +                      3      )�,�� )           X  d    !�,       (            , )w �>?   # = :