PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  >P_c @@sqddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZyddlZeZWnek reZnXddlmZddlmZddlZddlmZmZddlmZddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)ddl*m+Z+dd l,m-Z-dd l.m/Z/dd l0m1Z1dd l2m3Z3m4Z4dd l5m6Z6ddl7m8Z8ddl9m:Z:m;Z;ddl<m=Z=m>Z>ddl?m@Z@mAZAddlBmCZCmDZDddlEmFZFddlGmHZHddlImJZJddlKmLZLddlMmNZNddlOmPZPdddddddd d!d"d#d$d%g ZQejReSZTd&ZUd'e@fd(YZVd)e=fd*YZWd+eLfd,YZXd-e>fd.YZYd/e:jZfd0YZ[ddd1Z]e j^d2e j_Z`e j^d3e j_Zad4Zbd5Zcd6Zdd7Zed8Zfd9Zgd:Zhd;Zid<Zjd=Zkd>Zld?Zmdddd@ZndddAZodBZpdCePjqfdDYZrdedddEZsdFZtdGZudHZvdIZwdS(Ji(tabsolute_importN(tparse(trequest(tInstallationErrort HashMismatch(tPyPI( tsplitexttrmtreet format_sizet display_patht backup_dirtask_path_existst unpack_filetARCHIVE_EXTENSIONStconsumetcall_subprocess(t auto_decode(tcheck_path_owner(t indent_log(tSETUPTOOLS_SHIM(tDownloadProgressBartDownloadProgressSpinner(twrite_delete_marker_file(tvcs(trequeststsix(t BaseAdaptert HTTPAdapter(tAuthBaset HTTPBasicAuth(tCONTENT_CHUNK_SIZEtResponse(tCaseInsensitiveDict(turllib3(tCacheControlAdapter(t FileCache(t LockError(t xmlrpc_clienttget_file_contenttis_urlt url_to_patht path_to_urltis_archive_filetunpack_vcs_linktunpack_file_urlt is_vcs_urlt is_file_urltunpack_http_urlt unpack_urltparse_content_dispositiontsanitize_content_filenamec C@siidd6tjd6d6tjd6itjd6d6}|dddkrjtj|dd]stidcS@s|dS(Ni((R@((s0/usr/lib/python2.7/site-packages/pip/download.pyRAastlibtlibctdistrotdarwinisOS Xtsystemtreleasetcpuiitopenssl_versions9{data[installer][name]}/{data[installer][version]} {json}tdatatjsont separatorst,t:t sort_keys(ii(RNRO(R3t __version__tplatformtpython_versiontpython_implementationtsystpypy_version_infot releaseleveltjointstrt startswithtdicttfiltertziptlinux_distributiontlibc_vertmac_verRGt setdefaultRHtmachinetHAS_TLSt version_infotssltOPENSSL_VERSIONtformatRLtdumpstTrue(RKRVR@RERD((s0/usr/lib/python2.7/site-packages/pip/download.pyt user_agent>sR  -$! "%    tMultiDomainBasicAuthcB@s/eZedZdZdZdZRS(cC@s||_i|_dS(N(t promptingt passwords(tselfRl((s0/usr/lib/python2.7/site-packages/pip/download.pyt__init__s cC@stj|j}|jjddd}tj|d |f|d|_|jj|d\}}|dkr|j |j\}}n|s|r||f|j||jddS|dfSdS(NRpiiRO(NN(RwtsplitRz(RnRvtuserinfo((s0/usr/lib/python2.7/site-packages/pip/download.pyR{s    (t__name__t __module__RiRoRR}R{(((s0/usr/lib/python2.7/site-packages/pip/download.pyRks   "tLocalFSAdaptercB@s)eZddddddZdZRS(c C@st|j}t}d|_|j|_ytj|} Wn%tk rg} d|_| |_n}Xtj j | j dt } t j|dpd} ti| d6| jd6| d6|_t|d |_|jj|_|S( Niitusegmtis text/plains Content-TypesContent-Lengths Last-Modifiedtrb(R(RuRRtoststattOSErrorRtemailtutilst formatdatetst_mtimeRit mimetypest guess_typeR tst_sizetheaderstopentclose( RnRtstreamttimeouttverifytcerttproxiestpathnameRtstatstexctmodifiedt content_type((s0/usr/lib/python2.7/site-packages/pip/download.pyRs$      cC@sdS(N((Rn((s0/usr/lib/python2.7/site-packages/pip/download.pyRsN(RRRzRR(((s0/usr/lib/python2.7/site-packages/pip/download.pyRs  t SafeFileCachecB@s2eZdZdZdZdZdZRS(sw A file based cache which is safe to use even when the target directory may not be accessible or writable. cO@sKtt|j||t|jsGtjd|jd|_ndS(NsThe directory '%s' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.(tsuperRRoRt directorytloggertwarningRz(RntargsR((s0/usr/lib/python2.7/site-packages/pip/download.pyRos  cO@sQ|jdkrdSytt|j||SWntttfk rLnXdS(N(RRzRRRyR$RtIOError(RnRR((s0/usr/lib/python2.7/site-packages/pip/download.pyRys cO@sQ|jdkrdSytt|j||SWntttfk rLnXdS(N(RRzRRtsetR$RR(RnRR((s0/usr/lib/python2.7/site-packages/pip/download.pyRs cO@sQ|jdkrdSytt|j||SWntttfk rLnXdS(N(RRzRRtdeleteR$RR(RnRR((s0/usr/lib/python2.7/site-packages/pip/download.pyR!s (RRt__doc__RoRyRR(((s0/usr/lib/python2.7/site-packages/pip/download.pyRs   tInsecureHTTPAdaptercB@seZdZRS(cC@sd|_d|_dS(Nt CERT_NONE(t cert_reqsRztca_certs(RntconnRuRR((s0/usr/lib/python2.7/site-packages/pip/download.pyt cert_verify1s (RRR(((s0/usr/lib/python2.7/site-packages/pip/download.pyR/st PipSessioncB@s eZdZdZdZRS(c O@s5|jdd}|jdd}|jdg}tt|j||t|jd   *  s^(http|https|file):s /*([a-z])\|cC@sId|krtS|jdddj}|ddddgtjkS(s)Returns true if the name looks like a URLROiiRthttpsRtftp(tFalseRRRt all_schemes(R4R((s0/usr/lib/python2.7/site-packages/pip/download.pyR's cC@sHtj|\}}}}}|r1d|}ntj||}|S(s( Convert a file: URL to a path. s\\(Rsturlsplitturllib_requestt url2pathname(Rut_RvR((s0/usr/lib/python2.7/site-packages/pip/download.pyR(s  cC@s=tjjtjj|}tjdtj|}|S(sh Convert a path to a file: URL. The path will be made absolute and have quoted path parts. sfile:(RRtnormpathtabspathRsturljoinRt pathname2url(RRu((s0/usr/lib/python2.7/site-packages/pip/download.pyR)scC@s*t|dj}|tkr&tStS(s9Return True if `name` is a considered as an archive file.i(RRR RiR(R4text((s0/usr/lib/python2.7/site-packages/pip/download.pyR*s cC@st|}|j|dS(N(t_get_used_vcs_backendtunpack(tlinktlocationt vcs_backend((s0/usr/lib/python2.7/site-packages/pip/download.pyR+s cC@s=x6tjD]+}|j|jkr ||j}|Sq WdS(N(RtbackendsRtschemesRu(RtbackendR((s0/usr/lib/python2.7/site-packages/pip/download.pyRscC@stt|S(N(tboolR(R((s0/usr/lib/python2.7/site-packages/pip/download.pyR-scC@s|jjjdS(Nsfile:(RuRRZ(R((s0/usr/lib/python2.7/site-packages/pip/download.pyR.scC@st|j}tjj|S(sReturn whether a file:// Link points to a directory. ``link`` must not have any other scheme but file://. Call is_file_url() first. (R(turl_without_fragmentRRtisdir(Rt link_path((s0/usr/lib/python2.7/site-packages/pip/download.pyt is_dir_urlscO@s|S(N((titerableRR((s0/usr/lib/python2.7/site-packages/pip/download.pyt_progress_indicatorsc @sytjd}Wn tttfk r9d}nXtdt}tjt j krjt}n9|ryt}n*|d krt }n|st }nt}|j }fd}fd} t } |jtjkr|} n |j} |rM|r.tjd| t|td |j} qvtjd | tj} n)|rftjd | ntjd | tjd || | |tt} |r|j| n t| dS(Nscontent-lengthit from_cachei(ic3@sry,x%jj|dtD] }|VqWWn?tk rmx/trijj|}|saPn|Vq?WnXdS(Ntdecode_content(RRRtAttributeErrorRiR(t chunk_sizetchunk(R(s0/usr/lib/python2.7/site-packages/pip/download.pyt resp_reads     c3@s'x |D]}j||VqWdS(N(twrite(tchunksR(t content_file(s0/usr/lib/python2.7/site-packages/pip/download.pytwritten_chunks3s  sDownloading %s (%s)tmaxsDownloading %ssUsing cached %ssDownloading from URL %si@(tintRt ValueErrortKeyErrorRtgetattrRRtgetEffectiveLeveltloggingtINFORitshow_urlRRvRRtinfoRRtiterRtdebugRtcheck_against_chunksR( RRR thashest total_lengtht cached_respt show_progressRRR tprogress_indicatorRutdownloaded_chunks((R Rs0/usr/lib/python2.7/site-packages/pip/download.pyt _download_urlsL       %    cC@st}tjj||j}tjj|rtdt|d}|dkr^t}q|dkrt j dt|tj |q|dkrt |}t j dt|t|t j||qn|r t j||t jdt|ndS( Ns/The file %s exists. (i)gnore, (w)ipe, (b)ackup titwtbs Deleting %ssBacking up %s to %ssSaved %s(R R!R"(RiRRRXtfilenametexistsR R RRRtremoveR tshutiltmovetcopyR(R#RRR(tdownload_locationRrt dest_file((s0/usr/lib/python2.7/site-packages/pip/download.pyt _copy_fileYs*       c C@s|dkrtdntjdd}d}|rNt|||}n|rp|}tj|d}nt||||\}}t|||||r| rt |||n|st j |nt |dS(Ns@unpack_http_url() missing 1 required keyword argument: 'session's-unpackspip-i( RzRttempfiletmkdtempt_check_download_dirRRt_download_http_urlR R+RtunlinkR( RRt download_dirRRttemp_dirtalready_downloaded_patht from_pathR((s0/usr/lib/python2.7/site-packages/pip/download.pyR/rs,    cC@st|j}t|rjtjj|r:t|ntj||dt |rft j dndS|r|j |nd}|rt|||}n|r|}n|}tj|d}t|||||r| rt|||ndS(sUnpack link into location. If download_dir is provided and link points to a file, make a copy of the link file inside download_dir. tsymlinkss*Link is a directory, ignoring download_dirNi(R(RRRRRRR&tcopytreeRiRRtcheck_against_pathRzR.RRR R+(RRR1RRR3R4R((s0/usr/lib/python2.7/site-packages/pip/download.pyR,s,     c C@stjj|rt|nd}tjg}|jd|jt||jd|d|g7}tj d|t t |d|dt WdQXtjj |tj|d }tj d ||t||d dd ddS( sCopy distribution files in `link_path` to `location`. Invoked when user requests to install a local directory. E.g.: pip install . pip install ~/dev/git-repos/python-prompt-toolkit ssetup.pys-ctsdists --dist-dirsRunning setup.py sdist for %stcwdt show_stdoutNisUnpacking sdist %s into %sRR(RRRRRUt executableRRRRRRRRXtlistdirR Rz(RRtsetup_pyt sdist_argsR8((s0/usr/lib/python2.7/site-packages/pip/download.pyt_copy_dist_from_dirs     "tPipXmlrpcTransportcB@s&eZdZedZedZRS(sRProvide a `xmlrpclib.Transport` implementation via a `PipSession` object. cC@s;tjj||tj|}|j|_||_dS(N(R%t TransportRoRsRtRt_schemet_session(Rnt index_urlRt use_datetimet index_parts((s0/usr/lib/python2.7/site-packages/pip/download.pyRos c C@s|j||dddf}tj|}yXidd6}|jj|d|d|dt}|j||_|j |j SWn2t j k r} t jd| jj|nXdS(Nstext/xmls Content-TypeRKRRsHTTP error %s while getting %s(RBRzRsRxRCtpostRiRtverbosetparse_responseRRt HTTPErrorRtcriticalRrR( RnRthandlert request_bodyRHtpartsRuRRrR((s0/usr/lib/python2.7/site-packages/pip/download.pyRs   (RRRRRoR(((s0/usr/lib/python2.7/site-packages/pip/download.pyR@s cC@st|rt||nVt|rAt|||d|n1|dkrYt}nt||||d||rt|ndS(svUnpack link. If link is a VCS link: if only_download, export into download_dir and ignore location else unpack into location for other types of link: - unpack into location - if download_dir, copy the file into download_dir - if only_download, mark location for deletion :param hashes: A Hashes object, one of whose embedded hashes must match, or HashMismatch will be raised. If the Hashes is empty, no matches are required, and unhashable types of requirements (like VCS ones, which would ordinarily raise HashUnsupported) are allowed. RN(R-R+R.R,RzRR/R(RRR1t only_downloadRR((s0/usr/lib/python2.7/site-packages/pip/download.pyR0 s    cC@stjj|S(sJ Sanitize the "filename" value from a Content-Disposition header. (RRtbasename(R#((s0/usr/lib/python2.7/site-packages/pip/download.pyR21scC@sCtj|\}}|jd}|r9t|}n|pB|S(s Parse the "filename" value from a Content-Disposition header, and return the default filename if the result is empty. R#(tcgit parse_headerRyR2(tcontent_dispositiontdefault_filenamet_typetparamsR#((s0/usr/lib/python2.7/site-packages/pip/download.pyR19s c C@s|jjddd}y0|j|didd6dt}|jWn2tjk r}}tjd|j j |nX|j jd d }|j }|j jd } | rt | |}nt|d} | stj|} | r|| 7}qn| rI|j|jkrItjj|jd} | rI|| 7}qIntjj||} t| d } t||| |Wd QX| |fS(s6Download link url into temp_dir using provided sessiont#iiRtidentitysAccept-EncodingRsHTTP error %s while getting %ss content-typeRqscontent-dispositiontwbN(RuRRyRiRRRJRRKRrRRR#R1RRtguess_extensionRRRXRR( RRR2Rt target_urlRRRR#RSRt file_pathR ((s0/usr/lib/python2.7/site-packages/pip/download.pyR/Hs:   cC@stjj||j}tjj|rtjd||ry|j|Wqtk rtj d|tj |dSXn|SdS(s Check download_dir for previously downloaded file with correct hash If a correct file is found return its path else None sFile was already downloaded %ss;Previously-downloaded file %s has bad hash. Re-downloading.N( RRRXR#R$RRR7RRR0Rz(RR1Rt download_path((s0/usr/lib/python2.7/site-packages/pip/download.pyR.s  (xt __future__RRQt email.utilsRRRLRRRRRtreR&RUR,ReRiRct ImportErrorRtpip._vendor.six.moves.urllibRRsRRR3tpip.exceptionsRRt pip.modelsRt pip.utilsRRRR R R R R RRtpip.utils.encodingRtpip.utils.filesystemRtpip.utils.loggingRtpip.utils.setuptools_buildRt pip.utils.uiRRt pip.locationsRtpip.vcsRt pip._vendorRRtpip._vendor.requests.adaptersRRtpip._vendor.requests.authRRtpip._vendor.requests.modelsRRtpip._vendor.requests.structuresR tpip._vendor.requests.packagesR!tpip._vendor.cachecontrolR"tpip._vendor.cachecontrol.cachesR#tpip._vendor.lockfileR$tpip._vendor.six.movesR%t__all__t getLoggerRRRjRkRRRtSessionRRzR&tcompiletIRRR'R(R)R*R+RR-R.RRRR+R/R,R?RAR@R0R2R1R/R.(((s0/usr/lib/python2.7/site-packages/pip/download.pyts                 F    AM!BH)         ` &0 $'   8