ok

Mini Shell

Direktori : /proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/setuptools/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyc

�
��Rec@s�dZddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
yddlmZWn!e
k
r�ddlmZnXddlmZddlmZmZmZmZddlZddlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#ddlm$Z$dd	l%m&Z&dd
l'm(Z(ddl)m*Z*ddl+m,Z,dd
l-m.Z.ej/d�Z0ej/dej1�Z2ej/d�Z3ej/dej1�j4Z5dj6�Z7ddddgZ8dZ9dZ:e:j;dej<d de�Z=d�Z>d�Z?d�Z@eAd�ZBeAd �ZCeAd!�ZDeAeeAd"�ZEeAd#�ZFd$�ZGej/d%ej1�ZHeGd&��ZId'eJfd(��YZKd)eKfd*��YZLdefd+��YZMej/d,�jNZOd-�ZPd.�ZQd/�ZRdd0�ZSd1�ZTd2eJfd3��YZUd4ejVfd5��YZWejXjYd6�ZZeSe9�eZ�ZZd7�Z[d8�Z\dS(9s#PyPI and direct package downloadingi����N(twraps(t	splituser(tsix(turllibthttp_clienttconfigparsertmap(t
CHECKOUT_DISTtDistributiontBINARY_DISTtnormalize_pathtSOURCE_DISTtEnvironmenttfind_distributionst	safe_nametsafe_versiontto_filenametRequirementtDEVELOP_DIST(tssl_support(tlog(tDistutilsError(t	translate(tstrip_fragment(tget_all_headerss^egg=([-A-Za-z0-9_.+!]+)$shref\s*=\s*['"]?([^'"> ]+)s�<a href="([^"#]+)">([^<]+)</a>
\s+\(<a (?:title="MD5 hash"
\s+)href="[^?]+\?:action=show_md5&amp;digest=([0-9a-f]{32})">md5</a>\)s([-+.a-z0-9]{2,}):s.tar.gz .tar.bz2 .tar .zip .tgztPackageIndextdistros_for_urltparse_bdist_wininsttinterpret_distro_nameis<setuptools/{setuptools.__version__} Python-urllib/{py_major}tpy_majorit
setuptoolscCs<ytj|�SWn$tk
r7td|f��nXdS(Ns1Not a URL, existing file, or requirement spec: %r(Rtparset
ValueErrorR(tspec((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytparse_requirement_arg6s

cCs�|j�}d\}}}|jd�r�|jd�rL|d }d}q�|jdd�r~|dd!}|d }d}q�|jd	�r�|d
 }d}q�|jdd
�r�|dd!}|d
 }d}q�n|||fS(s=Return (base,pyversion) or (None,None) for possible .exe names.exes
.win32.exei����twin32s	.win32-pyi�i����i����s.win-amd64.exei�s	win-amd64s
.win-amd64-pyi��N(NNN(tlowertNonetendswitht
startswith(tnameR$tbasetpy_vertplat((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR?s$
	

	
	

c	Cs�tjj|�}|\}}}}}}tjj|jd�d�}|dkr�|dkr�tjj|jd�d�}nd|kr�|jdd�\}}n||fS(Nt/i����ssourceforge.nettdownloadi����t#i(RRturlparsetunquotetsplit(	turltpartstschemetservertpatht
parameterstquerytfragmentR)((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytegg_info_for_urlWs"ccs�t|�\}}xt|||�D]}|Vq%W|r�tj|�}|r�x1t||jd�|dt�D]}|VqqWq�ndS(sEYield egg or source distribution objects that might be found at a URLit
precedenceN(R:tdistros_for_locationtEGG_FRAGMENTtmatchRtgroupR(R2tmetadataR)R9tdistR>((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRbs	"cCs�|jd�r|d }n|jd�rMd|krMtj|||�gS|jd�r�t|�\}}}|dk	r�t||||t|�Snx>tD]6}|j|�r�|t|� }t|||�Sq�WgS(s:Yield egg or source distribution objects based on basenames.egg.zipi����s.eggt-s.exeN(	R&Rt
from_locationRR%RR	t
EXTENSIONStlen(tlocationtbasenameR@twin_baseR*tplatformtext((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR<ps

cCs"tt|�tjj|�|�S(sEYield possible egg or source distribution objects based on a filename(R<R
tosR6RG(tfilenameR@((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytdistros_for_filename�sccs�|jd�}|r4td�|dD��r4dSxatdt|�d�D]F}t||dj|| �dj||�d|d|d|�VqNWdS(	s�Generate alternative interpretations of a source distro name

    Note: if `location` is a filesystem filename, you should call
    ``pkg_resources.normalize_path()`` on it before passing it to this
    routine!
    RBcss!|]}tjd|�VqdS(s	py\d\.\d$N(treR>(t.0tp((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pys	<genexpr>�siNit
py_versionR;RI(R1tanytrangeRERtjoin(RFRGR@RQR;RIR3RP((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�s! )ccs�t�}|j}|dkrSxmtjj|j|�D]}||�|Vq7Wn;x8|D]0}||�}||krZ||�|VqZqZWdS(sHList unique elements, preserving order. Remember all elements ever seen.N(tsettaddR%Rtmovestfilterfalset__contains__(titerabletkeytseentseen_addtelementtk((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytunique_everseen�s		


cst���fd��}|S(ss
    Wrap a function returning an iterable such that the resulting iterable
    only ever yields unique items.
    cst�||��S(N(R`(targstkwargs(tfunc(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytwrapper�s(R(RcRd((Rcs�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt
unique_values�ss(<([^>]*\srel\s*=\s*['"]?([^'">]+)[^>]*)>ccsx�tj|�D]�}|j�\}}tttj|j�jd���}d|ksgd|krx=t	j|�D])}t
jj|t
|jd���VqwWqqWxjd	D]b}|j|�}|dkr�t	j||�}|rt
jj|t
|jd���Vqq�q�WdS(
sEFind rel="homepage" and rel="download" links in `page`, yielding URLst,thomepageR-is
<th>Home Pages<th>Download URLi����N(s
<th>Home Pages<th>Download URL(tRELtfinditertgroupsRURtstrtstripR$R1tHREFRRturljoint
htmldecodeR?tfindtsearch(R2tpageR>ttagtreltrelstpos((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytfind_external_links�s'.
tContentCheckercBs)eZdZd�Zd�Zd�ZRS(sP
    A null content checker that defines the interface for checking content
    cCsdS(s3
        Feed a block of data to the hash.
        N((tselftblock((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytfeed�scCstS(sC
        Check the hash. Return False if validation fails.
        (tTrue(Ry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytis_valid�scCsdS(su
        Call reporter with information about the checker (hash name)
        substituted into the template.
        N((Rytreporterttemplate((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytreport�s(t__name__t
__module__t__doc__R{R}R�(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRx�s		tHashCheckercBsJeZejd�Zd�Zed��Zd�Zd�Z	d�Z
RS(sK(?P<hash_name>sha1|sha224|sha384|sha256|sha512|md5)=(?P<expected>[a-f0-9]+)cCs(||_tj|�|_||_dS(N(t	hash_namethashlibtnewthashtexpected(RyR�R�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt__init__s	cCsRtjj|�d}|s#t�S|jj|�}|sBt�S||j��S(s5Construct a (possibly null) ContentChecker from a URLi����(RRR/RxtpatternRqt	groupdict(tclsR2R9R>((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytfrom_urlscCs|jj|�dS(N(R�tupdate(RyRz((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR{scCs|jj�|jkS(N(R�t	hexdigestR�(Ry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR}scCs||j}||�S(N(R�(RyR~Rtmsg((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�s
(R�R�RNtcompileR�R�tclassmethodR�R{R}R�(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�s				cBsveZdZdd%d&ed�Zed�Zed�Zed�Z	d�Z
d�Zd	�Zd
�Z
d&d�Zd�Zd&d
�Zd�Zd�Zd�Zd�Zd�Zeeed&d�Zeed�Zd�ZdZd�Zd�Zd&d�Zd�Zd�Zd�Zd�Z d�Z!e"ed��Z#d �Z$d!�Z%d"�Z&d#�Z'd$�Z(RS('s;A distribution index that scans web pages for download URLsshttps://pypi.python.org/simplet*cOs�tj|||�|d|jd� |_i|_i|_i|_tjdj	t
t|���j|_
g|_|o�tjo�|p�tj�}|r�tj|�|_ntjj|_dS(NR,t|(RR�R&t	index_urltscanned_urlstfetched_urlst
package_pagesRNR�RTRRR>tallowstto_scanRtis_availabletfind_ca_bundlet
opener_fortopenerRtrequestturlopen(RyR�thostst	ca_bundlet
verify_sslRatkwtuse_ssl((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�$s			'		cCsg||jkr|rdSt|j|<t|�sD|j|�dStt|��}|r�|j|�sodS|jd|�n|s�|s�||jkr�tt	|j
|��dS|j|�s�t|j|<dS|jd|�t|j|<d}|j|||�}|dkr!dSt|j|j<d|jjdd�j�kr`|j�dS|j}|j�}t|t�s�t|tjj�r�d}n|jjd	�p�d}|j|d
�}n|j�xHtj|�D]7}	tjj|t|	j d���}
|j!|
�q�W|j"|j#�rct$|dd�d
krc|j%||�}ndS(s<Evaluate a URL as a possible download, and maybe retrieve itNsFound link: %ss
Reading %ss<Download error on %s: %%s -- Some packages may not be found!thtmlscontent-typetslatin-1tcharsettignoreitcodei�(&R�R|t
URL_SCHEMEtprocess_filenametlistRturl_oktdebugR�RRVtinfotopen_urlR%R2theaderstgetR$tclosetreadt
isinstanceRkRterrort	HTTPErrort	get_paramtdecodeRmRiRRnRoR?tprocess_urlR'R�tgetattrt
process_index(RyR2tretrievetdiststtmpltfR)RrR�R>tlink((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�9sP



!
		
$*cCs�tjj|�s&|jd|�dStjj|�r�|r�tjj|�}x9tj|�D]%}|jtjj||�t	�qaWnt
|�}|r�|jd|�tt
|j|��ndS(Ns
Not found: %ss	Found: %s(RKR6texiststwarntisdirtrealpathtlistdirR�RTR|RMR�R�RRV(RytfntnestedR6titemR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�ks&cCs�t|�}|o*|jd�j�dk}|sR|jtjj|�d�rVtSd}|rut||��n|j	||�dS(NitfilesN
Note: Bypassing %s (disallowed host; see http://bit.ly/1dg9ijs for details).
(
R�R?R$R�RRR/R|RR�(RyR2tfataltstis_fileR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�{s!%cCsBttjj|�}d�|D�}ttj|j|��dS(Ncss@|]6}tj|�D] }|jd�r||fVqqdS(s	.egg-linkN(RKR�R&(ROR6tentry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pys	<genexpr>�s(tfilterRKR6R�R�t	itertoolststarmapt
scan_egg_link(Rytsearch_pathtdirst	egg_links((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytscan_egg_links�s
c
Cs�ttjj||���(}ttdttj	|���}WdQXt
|�dkr[dS|\}}xQttjj||��D]4}tjj||�|_t
|_|j|�q�WdS(Ni(topenRKR6RTR�R�R%RRkRlRER
RFRR;RV(RyR6R�t	raw_linestlinestegg_patht
setup_pathRA((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s'"	c
s�fd�}xWtj|�D]F}y,|tjj|t|jd����Wqtk
rdqXqW||�\}}|rxyt||�D]h}t	|�\}}	|j
d�r�|	r�|r�|d||f7}q��j|�n�j|�q�Wt
jd�|�SdSdS(s#Process the contents of a PyPI pagecs�|j�j�r�tttjj|t�j�jd���}t|�dkr�d|dkr�t	|d�}t
|d�}t�jj
|j�i�|<t|�t|�fSndS(NR,iR.ii(NN(R'R�R�RRRR0RER1RRR|R�t
setdefaultR$RR%(R�R3tpkgtver(Ry(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytscan�s+"is.pys
#egg=%s-%scSsd|jddd�S(Ns<a href="%s#md5=%s">%s</a>iii(R?(tm((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt<lambda>�R�R�N(RmRiRRRnRoR?R RwR:R&tneed_version_infotscan_urltPYPI_MD5tsub(
RyR2RrR�R>R�R�tnew_urlR)tfrag((Rys�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s$,

cCs|jd|�dS(NsPPage at %s links to .py file(s) without version info; an index scan is required.(tscan_all(RyR2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��scGsO|j|jkr;|r+|j||�n|jd�n|j|j�dS(Ns6Scanning index of all packages (this may take a while)(R�R�R�R�R�(RyR�Ra((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s
cCs�|j|j|jd�|jj|j�sN|j|j|jd�n|jj|j�ss|j|�nx3t|jj|jd��D]}|j|�q�WdS(NR,((	R�R�tunsafe_nameR�R�R[tproject_nametnot_found_in_indexR�(RytrequirementR2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt
find_packages�s%cCsk|j�|j|�x8||jD])}||kr;|S|jd||�q%Wtt|�j||�S(Ns%s does not match %s(tprescanR�R[R�tsuperRtobtain(RyR�t	installerRA((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s

cCsi|j|jd|�|j�se|j�tj|�td|jjtj	j
|�f��ndS(s-
        checker is a ContentChecker
        sValidating %%s checksum for %ss7%s validation failed for %s; possible download problem?N(R�R�R}R�RKtunlinkRR�R(R6RG(RytcheckerRLttfp((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt
check_hash�s

cCsrxk|D]c}|jdksJt|�sJ|jd�sJtt|��rZ|j|�q|jj|�qWdS(s;Add `urls` to the list that will be prescanned for searchessfile:N(R�R%R�R'R�RR�tappend(RyturlsR2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytadd_find_linkss

cCs2|jr%tt|j|j��nd|_dS(s7Scan urls scheduled for prescanning (e.g. --find-links)N(R�R�RR�R%(Ry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�s	cCsN||jr |jd}}n|jd}}|||j�|j�dS(Ns#Couldn't retrieve index page for %rs3Couldn't find index page for %r (maybe misspelled?)(R[R�R�R�R�(RyR�tmethR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�s

cCs�t|t�s�t|�}|r||j|jd�||�}t|�\}}|jd�rx|j|||�}n|Stj	j
|�r�|St|�}nt|j
||�dd�S(sLocate and/or download `spec` to `tmpdir`, returning a local path

        `spec` may be a ``Requirement`` object, or a string containing a URL,
        an existing local filename, or a project/version requirement spec
        (i.e. the string form of a ``Requirement`` object).  If it is the URL
        of a .py file with an unambiguous ``#egg=name-version`` tag (i.e., one
        that escapes ``-`` as ``_`` throughout), a trivial ``setup.py`` is
        automatically created alongside the downloaded file.

        If `spec` is a ``Requirement`` object or a string containing a
        project/version requirement spec, this method returns the location of
        a matching distribution (possibly after downloading it to `tmpdir`).
        If `spec` is a locally existing file or directory name, it is simply
        returned unchanged.  If `spec` is a URL, it is downloaded to a subpath
        of `tmpdir`, and the local filename is returned.  Various errors may be
        raised if a problem occurs during downloading.
        is.pyRFN(R�RR�t
_download_urlR?R:R&t	gen_setupRKR6R�R"R�tfetch_distributionR%(RyR!ttmpdirR4tfoundR)R9((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR- sc	sF�jd|�i�d}d�����fd�}|rf�j��j|�||�}n|r�|dk	r�|||�}n|dkr��jdk	r��j�n||�}n|dkr�|r��j|�||�}n|dkr�jd�rdpd|�n#�jd|�|jd|j�SdS(	s|Obtain a distribution suitable for fulfilling `requirement`

        `requirement` must be a ``pkg_resources.Requirement`` instance.
        If necessary, or if the `force_scan` flag is set, the requirement is
        searched for in the (online) package index as well as the locally
        installed packages.  If a distribution matching `requirement` is found,
        the returned distribution's ``location`` is the value you would have
        gotten from calling the ``download()`` method with the matching
        distribution's URL or filename.  If no matching distribution is found,
        ``None`` is returned.

        If the `source` flag is set, only source distributions and source
        checkout links will be considered.  Unless the `develop_ok` flag is
        set, development and system eggs (i.e., those using the ``.egg-info``
        format) will be ignored.
        sSearching for %scs�|dkr�}nx�||jD]�}|jtkrn�rn|�kr#�jd|�d�|<q#q#n||kr#|jtks��r#�j|j��|_t	j
j|j�r�|Sq#q#WdS(Ns&Skipping development or system egg: %si(R%R[R;RR�RR-RFtdownload_locationRKR6R�(treqtenvRA(t
develop_okRytskippedtsourceR�(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRp[s	
"s:No local packages or working download links found for %s%ssa source distribution of R�sBest match: %sRFN(R�R%R�R�R�R�tcloneR(	RyR�R�t
force_scanRRtlocal_indexRARp((RRyRRR�s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�Bs0




cCs/|j||||�}|dk	r+|jSdS(s3Obtain a file suitable for fulfilling `requirement`

        DEPRECATED; use the ``fetch_distribution()`` method now instead.  For
        backward compatibility, this routine is identical but returns the
        ``location`` of the downloaded distribution instead of a distribution
        object.
        N(R�R%RF(RyR�R�RRRA((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytfetch�sc
Csptj|�}|rLgt||jd�d�D]}|jr1|^q1pOg}t|�dkrAtjj	|�}tjj
|�|kr�tjj||�}ddlm
}	|	||�s�tj||�|}q�nttjj|d�d��?}
|
jd|dj|djtjj|�df�WdQX|S|r`td||f��ntd	��dS(
Nii����(tsamefilessetup.pytwsIfrom setuptools import setup
setup(name=%r, version=%r, py_modules=[%r])
is�Can't unambiguously interpret project/version identifier %r; any dashes in the name or version should be escaped using underscores. %rspCan't process plain .py files without an '#egg=name-version' suffix to enable automatic setup script generation.(R=R>RR?R%tversionRERKR6RGtdirnameRTtsetuptools.command.easy_installRtshutiltcopy2R�twriteR�tsplitextR(RyRLR9R�R>tdR�RGtdstRR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s24!!i c

Cs�|jd|�d	\}}z^tj|�}|jt|��}t|tjj	�rzt
d||j|jf��n|j�}d}|j
}d}	d|kr�t|d�}
ttt|
��}	|j|||||	�nt|d��}}x`tr[|j|�}|rW|j|�|j|�|d7}|j|||||	�q�Pq�W|j|||�WdQX|SWd|r�|j�nXdS(
NsDownloading %ssCan't download %s: %s %sii����scontent-lengthsContent-Lengthtwbi(NN(R�R%R�R�R�RR�RR�R�RR�R�tdl_blocksizeRtmaxRtintt
reporthookR�R|R�R{RR�R�(
RyR2RLtfpR�R�R�tblocknumtbstsizetsizesR�Rz((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt_download_to�s:		


cCsdS(N((RyR2RLRtblksizeR((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�scCs�|jd�rt|�Syt||j�SWnsttjfk
r�}djg|jD]}t	|�^qX�}|r�|j
||�q�td||f��n�tj
jk
r�}|Stj
jk
r}|r�|j
||j�q�td||jf��n�tjk
rU}|r9|j
||j�q�td||jf��nNtjtj
fk
r�}|r�|j
||�q�td||f��nXdS(Nsfile:t s%s %ssDownload error for %s: %ss;%s returned a bad status line. The server might be down, %s(R't
local_opentopen_with_authR�R Rt
InvalidURLRTRaRkR�RRR�R�tURLErrortreasont
BadStatusLinetlinet
HTTPExceptiontsocket(RyR2twarningtvtargR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s6
+cCsHt|�\}}|rLx7d|krH|jdd�jdd�}qWnd}|jd�rn|d }ntjj||�}|dks�|jd	�r�|j||�S|d
ks�|jd�r�|j||�S|jd�r�|j	||�S|d
kr$t
jjt
j
j|�d�S|j|t�|j||�SdS(Ns..t.s\t_t__downloaded__s.egg.zipi����tsvnssvn+tgitsgit+shg+R�i(R:treplaceR&RKR6RTR't
_download_svnt
_download_gitt_download_hgRR�turl2pathnameRR/R�R|t_attempt_download(RyR4R2R�R(R9RL((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�
s$%
 cCs|j|t�dS(N(R�R|(RyR2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR�'scCsK|j||�}d|jdd�j�krC|j|||�S|SdS(NR�scontent-typeR�(R R�R$t_download_html(RyR2RLR�((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR9*scCs�t|�}xW|D]O}|j�rtjd|�r^|j�tj|�|j||�SPqqW|j�tj|�td|��dS(Ns <title>([^- ]+ - )?Revision \d+:sUnexpected HTML page found at (	R�RlRNRqR�RKR�R5R(RyR2R�RLR�R)((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR:1s




cCsf|jdd�d}d}|j�jd�r5d|kr5tjj|�\}}}}}}	|r5|jd�r5d|d	kr5|d	jdd�\}}t|�\}
}|
r2d
|
kr�|
jd
d�\}}
d||
f}n
d|
}|}||||||	f}tjj|�}q2q5n|jd
||�t	j
d|||f�|S(NR.iiR�ssvn:t@s//R,it:s --username=%s --password=%ss --username=s'Doing subversion checkout from %s to %sssvn checkout%s -q %s %s(R1R$R'RRR/Rt
urlunparseR�RKtsystem(RyR2RLtcredsR4tnetlocR6RPtqR�tauththosttusertpwR3((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR5@s$!$&
cCs�tjj|�\}}}}}|jdd�d}|jdd�d}d}d|krz|jdd�\}}ntjj||||df�}||fS(Nt+ii����R.iR;R�(RRturlsplitR1R%trsplitt
urlunsplit(R2t
pop_prefixR4R@R6R8R�trev((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt_vcs_split_rev_from_urlUs!!cCs�|jdd�d}|j|dt�\}}|jd||�tjd||f�|dk	r�|jd|�tjd||f�n|S(	NR.iiRJsDoing git clone from %s to %ssgit clone --quiet %s %ssChecking out %ss"(cd %s && git checkout --quiet %s)(R1RLR|R�RKR>R%(RyR2RLRK((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR6gs	cCs�|jdd�d}|j|dt�\}}|jd||�tjd||f�|dk	r�|jd|�tjd||f�n|S(	NR.iiRJsDoing hg clone from %s to %sshg clone --quiet %s %ssUpdating to %ss(cd %s && hg up -C -r %s >&-)(R1RLR|R�RKR>R%(RyR2RLRK((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR7ws	cGstj||�dS(N(RR�(RyR�Ra((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��scGstj||�dS(N(RR�(RyR�Ra((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��scGstj||�dS(N(RR�(RyR�Ra((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s(R�N()R�R�R�R%R|R�tFalseR�R�R�R�R�R�R�R�R�R�R�R�R�R�R-R�R
R�RR RR�R�R�R9R:R5tstaticmethodRLR6R7R�R�R�(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR!sL2	
		+										#D
	)	$	#									s!&(#(\d+|x[\da-fA-F]+)|[\w.:-]+);?cCs6t|t�s|S|dkr,tj|�St|�S(Ni�(R�RRtunichrtchr(tc((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytuchr�s

cCs�|jd�}|jd�r4t|dd�}nF|jd�rVt|d�}n$tjjjj||jd��}t|�S(Nis#xiiR.i(	R?R'RRRWt
html_entitiestname2codepointR�RR(R>twhat((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt
decode_entity�s$cCs
tt|�S(s'Decode HTML entities in the given text.(t
entity_subRV(ttext((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRo�scs�fd�}|S(Ncs��fd�}|S(Ncs?tj�}tj��z�||�SWdtj|�XdS(N(R+tgetdefaulttimeouttsetdefaulttimeout(RaRbtold_timeout(Rcttimeout(s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt_socket_timeout�s

((RcR](R\(Rcs�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR]�s((R\R]((R\s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytsocket_timeout�scCsItjj|�}|j�}tj|�}|j�}|jdd�S(sq
    A function compatible with Python 2.3-3.3 that will encode
    auth from a URL suitable for an HTTP header.
    >>> str(_encode_auth('username%3Apassword'))
    'dXNlcm5hbWU6cGFzc3dvcmQ='

    Long auth strings should not cause a newline to be inserted.
    >>> long_auth = 'username:' + 'password'*10
    >>> chr(10) in str(_encode_auth(long_auth))
    False
    s
R�(RRR0tencodetbase64tencodestringR�R4(RBtauth_st
auth_bytest
encoded_bytestencoded((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt_encode_auth�s
t
CredentialcBs)eZdZd�Zd�Zd�ZRS(s:
    A username/password pair. Use like a namedtuple.
    cCs||_||_dS(N(tusernametpassword(RyRhRi((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s	ccs|jV|jVdS(N(RhRi(Ry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt__iter__�scCsdt|�S(Ns%(username)s:%(password)s(tvars(Ry((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt__str__�s(R�R�R�R�RjRl(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRg�s		t
PyPIConfigcBs2eZd�Zed��Zd�Zd�ZRS(cCsutjdddgd�}tjj||�tjjtjjd�d�}tjj	|�rq|j
|�ndS(s%
        Load from ~/.pypirc
        RhRit
repositoryR�t~s.pypircN(tdicttfromkeysRtRawConfigParserR�RKR6RTt
expanduserR�R�(Rytdefaultstrc((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR��s
!cCsMg|j�D]$}|j|d�j�r
|^q
}tt|j|��S(NRn(tsectionsR�RlRpRt_get_repo_cred(Rytsectiontsections_with_repositories((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytcreds_by_repository�s$cCsO|j|d�j�}|t|j|d�j�|j|d�j��fS(NRnRhRi(R�RlRg(RyRxtrepo((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRw�scCs7x0|jj�D]\}}|j|�r|SqWdS(s�
        If the URL indicated appears to be a repository defined in this
        config, return the credential for that repository.
        N(RztitemsR'(RyR2Rntcred((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pytfind_credentials(R�R�R�tpropertyRzRwR~(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyRm�s			cCs�tjj|�\}}}}}}|jd�rEtjd��n|d	krft|�\}}	nd
}|s�t�j	|�}
|
r�t
|
�}|
j|f}tj
d|�q�n|r dt|�}||	||||f}tjj|�}
tjj|
�}|jd|�ntjj|�}|jdt�||�}|r�tjj|j�\}}}}}}||kr�||	kr�||||||f}tjj|�|_q�n|S(s4Open a urllib2 request, handling HTTP authenticationR<snonnumeric port: ''thttpthttpss*Authenticating as %s for %s (from .pypirc)sBasic t
Authorizations
User-Agent(R�R�N(RRR/R&RR%RR%RmR~RkRhRR�RfR=R�tRequestt
add_headert
user_agentR2(R2R�R4R@R6tparamsR8R�RBRCR}R�R3R�R�Rts2th2tpath2tparam2tquery2tfrag2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR$s6$'cCs|S(N((R2((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt
fix_sf_url<scCs�tjj|�\}}}}}}tjj|�}tjj|�rXtjj|�S|j	d�rPtjj
|�rPg}x�tj|�D]�}	tjj||	�}
|	dkr�t
|
d��}|j�}WdQXPntjj
|
�r�|	d7}	n|jdjd|	��q�Wd}
|
jd|d	d
j|��}d\}}nd\}}}idd6}tj|�}tjj|||||�S(s7Read a local path, with special support for directoriesR,s
index.htmltrNs<a href="{name}">{name}</a>R(sB<html><head><title>{url}</title></head><body>{files}</body></html>R2tfiless
i�tOKi�sPath not founds	Not founds	text/htmlscontent-type(i�R�(i�sPath not founds	Not found(RRR/R�R8RKR6tisfileR�R&R�R�RTR�R�R�tformatRtStringIOR�R�(R2R4R5R6tparamR8R�RLR�R�tfilepathRtbodyR�tstatustmessageR�tbody_stream((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyR#@s,$!
!
(]R�tsysRKRNRR+R`R�R�t	functoolsRturllib.parseRtImportErrorturllib2tsetuptools.externRtsetuptools.extern.six.movesRRRRRt
pkg_resourcesRRR	R
RRR
RRRRRRt	distutilsRtdistutils.errorsRtfnmatchRtsetuptools.py26compatRtsetuptools.py27compatRR�R=tIRmR�R>R�R1RDt__all__t_SOCKET_TIMEOUTt_tmplR�R
R�R"RR:R%RR<RMRR`ReRhRwtobjectRxR�RR�RWRRRVRoR^RfRgRrRmR�R�R$R�R#(((s�/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/package_index.pyt<module>s~
"R							"	
!��t				&.	

Zerion Mini Shell 1.0