2{Yc@sGddlmZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl m Z ddl mZmZmZmZmZddlmZmZmZmZmZmZmZddlmZddlmZddlm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.m/Z/m0Z0dd l1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7m8Z8m9Z9dd l:m;Z;dd l m<Z<dd l=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHddlIZJdd lImKZKmLZLmMZMddlNmOZOmPZPdZQdeRfdYZSdeRfdYZTdeRfdYZUdZVejWdejXZYeZeZeZeZdZ[dZ\dZ]dZ^eZdZ_deRfdYZ`deRfd YZad!eRfd"YZbdS(#i(t FeedParserN(t change_root(tbin_pytrunning_under_virtualenvtPIP_DELETE_MARKER_FILENAMEtwrite_delete_marker_filetbin_user(tInstallationErrortUninstallationErrortUnsupportedWheeltBestVersionAlreadyInstalledtInvalidWheelFilenametDistributionNotFoundtPreviousBuildDirError(tvcs(tlogger(t display_pathtrmtreetasktask_path_existst backup_dirtis_installable_dirtis_localt dist_is_localtdist_in_usersitetdist_in_site_packagestrenamestnormalize_patht egg_link_pathtmake_path_relativetcall_subprocesst is_prereleasetnormalize_name(turlparseturllibt uses_pycachet ConfigParsert string_typest HTTPErrortget_python_versiontb(tLink(t build_prefix( t PipSessiontget_file_contenttis_urlt url_to_patht path_to_urltis_archive_filetunpack_vcs_linkt is_vcs_urlt is_file_urltunpack_file_urltunpack_http_url(tmove_wheel_filestWheelt wheel_ext(t pkg_resourcestsixcCst|d}|j}WdQXdtjtdg}x9|D]1}y|j|}Wntk rrqCnXPqCWt|tkst |S(sQReturn the contents of *filename*. Try to decode the file contents with utf-8, the preffered system encoding (e.g., cp1252 on some Windows machines) and latin1, in that order. Decoding a byte string with latin1 will never raise an error. In the worst case, the returned string will contain some garbage characters. trbNsutf-8tlatin1( topentreadtlocaletgetpreferredencodingtFalsetdecodetUnicodeDecodeErrorttypetbytestAssertionError(tfilenametfptdatat encodingstenc((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytread_text_file's   tInstallRequirementc BseZd'ed'eed'd'eed Zed'd'dZed'd'dZdZ dZ edZ dZ e dZe dZe d Zed Zd Zd Zd ZdZdZe dZejdZd(dZe dZe dZdZedZedZ dZ!dZ"dZ#dZ$d)d'd'dZ%dZ&d*dZ'dZ(d Z)e d!Z*e d"Z+d#Z,d$Z-d'd'd%Z.e d&Z/RS(+c Csld|_t|tr9tjj|}|j|_n||_||_||_||_ | dkrri} n| |_ ||_ ||_ d|_d|_d|_d|_d|_||_d|_d|_t|_d|_| |_| |_|r t|_n]|jdk r_tg|jjD]&} t| doM| ddk^q*|_n t|_dS(Niis!=(( textrast isinstanceR%R9t Requirementtparsetreqt comes_fromt source_dirteditabletNoneteditable_optionsturltas_eggt_egg_info_patht satisfied_bytconflicts_witht_temp_build_dirt _is_bundletupdatetinstall_succeededt uninstalledRAt use_user_sitet target_dirt from_bundlet pycompiletTruet prereleasestanytspecsR( tselfRRRSRTRURXRYR_RgRWRdRetx((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt__init__As<                       Ec Cst||\}}}|jdr6t|}nd}|||d|dtd|d|dt}|dk r||_n|S(Nsfile:RTRURXRWRg(tparse_editablet startswithR.RVRfRN( tclst editable_reqRSt default_vcstnameRXtextras_overrideRTtres((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt from_editableps   c Csd }|j}d }tjjtjj|}d }t|rWt|}ntjj|rtjj |ks|j drt |st d|ntt |}nFt|rtjj|stjd|ntt |}n|r|d kr|j}|j}|jdkrstjd|rst tjjtjj|j}n|jtkrt|j}|jstd|jqqn|}|||d|d|S( sCreates an InstallRequirement from a name, which might be a requirement, directory containing 'setup.py', filename, or URL. t.s;Directory %r is not installable. File 'setup.py' not found.sARequirement %r looks like a filename, but the file does not existtfiles\.\./s-%s is not a supported wheel on this platform.RXRgN(RVtstriptostpathtnormpathtabspathR-R)tisdirtsepRnRRR/R0tisfileRtwarnturl_without_fragmentt egg_fragmenttschemetretsearchtextR8R7RGt supportedR ( RoRrRSRgRXRRRztlinktwheel((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt from_lines4  3    !* cCs|jr8t|j}|jrA|d|j7}qAn |j}|jdk rm|dt|jj7}n|jrt|jt r|j}n|jj }|r|d|7}qn|S(Ns from %ss in %ss (from %s)( RRtstrRXR[RVRtlocationRSROR%t from_path(RjtsRS((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt__str__s     cCsv|jdkrdSt|j}|jrrt|jtrI|j}n|jj}|rr|d|7}qrn|S(Ns->(RRRVRRSROR%R(RjRRS((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs  cCs|jdk r|jS|jdkrJtjdd|_||_|jS|jre|jj}n |j}t j j |st |nt j j ||S(Ns-buildspip-(R]RVRRttempfiletmkdtempt_ideal_build_dirRURrtlowerRyRztexistst_make_build_dirtjoin(Rjt build_dirtunpackRr((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytbuild_locations    cCs8|jdk rdS|jdk s(t|js7t|j}|j}|`|jrj|jj}n |j}t j j ||}t j j |st jd|t|nt j j |rtdt|nt jd|t|t|ftj||||_||_d|_dS(skIf the build location was a temporary directory, this will move it to a new more permanent locationNsCreating directory %ss<A package already exists in %s; please remove it to continues,Moving package %s from %s to new location %s(RTRVRRRFR]RRURrRRyRzRRRtdebugRRRtshutiltmoveRZ(Rjt old_locationt new_build_dirRrt new_location((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytcorrect_build_locations0        cCs|jdkrdS|jjS(N(RRRVt project_name(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRrscCs&|jdkrdStj|jjS(N(RRRVR"tquotet unsafe_name(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyturl_namescCsyddl}Wntk r/tdnXd}|jrsd|jkrstjj|j|jd|}ntjj|j|}tj rt |tj r|j t j}n|S(NisBsetuptools must be installed to install from a source distributionssetup.pyt subdirectory(t setuptoolst ImportErrorRRWRyRzRRTR:tPY2ROt text_typetencodetsystgetfilesystemencoding(RjRt setup_filetsetup_py((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs    cCs|jst|jr8tjd|j|jfntjd|j|jftjd7_z>|jdkrtj j tj j |jd rt tj j |jdn|j }|jdt|j}|jdt|j}tjd |d g}|js|r&g}nFtj j |jd }tj j|s`tj|nd d g}t||d |jd|jdtdtjddWdtjd8_X|jstjjd|j|_|jndS(Ns2Running setup.py (path:%s) egg_info for package %ss7Running setup.py (path:%s) egg_info for package from %sit distributeRsdistribute.egg-infot __SETUP_PY__t __PKG_NAME__s-ctegg_infos pip-egg-infos --egg-basetcwdt filter_stdoutt show_stdoutt command_levelt command_descspython setup.py egg_infos%(Name)s==%(Version)s(RTRFRrRtnotifyRRXtindentRyRzR}RRt _run_setup_pytreplacetreprRt executableRURtmakedirsRt_filter_installRAt VERBOSE_DEBUGRRR9RPRQtpkg_infoR(Rjtforce_root_egg_infotscriptt egg_info_cmdtegg_base_optiont egg_info_dir((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt run_egg_info!s8   4        s} __file__ = __SETUP_PY__ from setuptools.command import egg_info import pkg_resources import os import tokenize def replacement_run(self): self.mkpath(self.egg_info) installer = self.distribution.fetch_build_egg for ep in pkg_resources.iter_entry_points('egg_info.writers'): # require=False is the change we're making: writer = ep.load(require=False) if writer: writer(self, ep.name, os.path.join(self.egg_info,ep.name)) self.find_sources() egg_info.egg_info.run = replacement_run exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec')) cCsy|jdk r5|jj|s%dS|jj|S|jsDt|j|}tjj |sidSt |}|S(N( R[RVt has_metadatat get_metadataRTRFt egg_info_pathRyRzRRL(RjRGRI((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt egg_info_databs c Cs<|jdkr&|jr$|j}ntjj|jd}tj|}|jrg}xtj|D] \}}}x-t j D]"}||kr|j |qqWxt |D]}tjj tjj||dds tjj tjj||ddr|j |n|dks2|dkr|j |qqW|jg|D]}tjj||^qSqjWg|D]}|jdr|^q}n|std ||fn|std ||ft|d kr|jd d ntjj||d |_ntjj|j|S(Ns pip-egg-infotbintpythontScriptss Python.exettestttestss .egg-infos$No files/directories in %s (from %s)itkeycSs8|jtjjtjjr3|jtjjp6dS(Ni(tcountRyRzR~taltsep(Rk((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyts i(RZRVRURTRyRzRtlistdirtwalkRtdirnamestremovetlistRtextendtendswithRRFtlentsort( RjRGtbaset filenamestroottdirstfilestdirtf((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRns6    '' *+cCso|j|}|sgSg}xI|jD];}|j}| s,|jdrZq,n|j|q,W|S(Nt#(Rt splitlinesRxRntappend(RjRGRItresulttline((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytegg_info_liness cCs^t}|jd}|sAtjdt|jdn|j|pPd|jS(NsPKG-INFOsNo PKG-INFO file found in %st(RRRRRRtfeedtclose(RjtpRI((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs  #cCs |jdS(Nsdependency_links.txt(R(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytdependency_linksss \[(.*?)\]ccsd}xx|jdD]g}|jj|j}|rO|jd}qn|rx||krxtjd|qn|VqWdS(Ns requires.txtisskipping extra %s(RVRt_requirements_section_retmatchRtgroupRR(RjRNtin_extraRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt requirementssccs5x.|jjD] \}}|dkr |Vq q WdS(Ns==(RRRi(Rjt qualifiertversion((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytabsolute_versionss cCs|jdS(NR(R(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytinstalled_versionscCsk|jst|j}||jkrDtjd||jfn#tjdt|j||fdS(Ns'Requested %s, but installing version %ss;Source in %s has version %s, which satisfies requirement %s(RTRFRRRRRRR(RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytassert_source_matches_versions   cCs|js!tjd|jdS|js0t|js?t|jjdrUdSd|jkswtd|j|jsdS|jjdd\}}t j |}|r||j}|r|j |jq|j |jndstd|j|fdS(Ns>Cannot update repository at %s; repository location is unknownsfile:t+s bad url: %riis+Unexpected version control type (in %s): %s( RXRtinfoRTRURFRnR_tsplitRt get_backendtobtaintexport(RjRtvc_typeRXtbackendt vcs_backend((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytupdate_editables( "  cCsp|js%td|jfn|jp4|j}t|}tjj|j |j d}tjj|j dj|j j dd d}|j dt jd}|j d}t|}tjj|} tjj|} tjj|} | s| r^| r#|} n|} |j| |jd rx|jd jD]4} tjjtjj| | }|j|q[Wq|jd r|jd r|jd }ng}xg|jd jD]}|r||kr|^qD]M}tjj|j |}|j||j|d |j|d qWqn?|j j|r|j|j tjjtjj|j d}|j|d|n|rjt|d}tjj|jj}|j||j ks&td||j|j f|j|tjjtjj|d}|j||j n3| rx*tj j!|D]}|j|qWn|jdrA|j"drAx|j#dD]o}t$|rt%}nt&}|jtjj||t'j(dkr|jtjj||dqqWn|jdrVt)j*}|j+t,|j-d|j.drVx|j/dD]\}}t$|rt%}nt&}|jtjj||t'j(dkr|jtjj||d|jtjj||d|jtjj||dqqWqVn|j0|||_1dS(s Uninstall the distribution currently satisfying this requirement. Prompts before removing or modifying files unless ``auto_confirm`` is True. Refuses to delete or modify files outside of ``sys.prefix`` - thus uninstallation within a virtual environment can only modify that virtual environment, even if the virtualenv is linked to global site-packages. s.Cannot uninstall requirement %s, not installeds .egg-infot-is .dist-infos-py%sRs.eggsinstalled-files.txts top_level.txtsnamespace_packages.txts.pys.pycseasy-install.pths./trs;Egg-link %s does not match installed location of %s (at %s)tscriptstwin32s.batsentry_points.txttconsole_scriptss.exes .exe.manifests -script.pyN(2tcheck_if_existsRRrR[R\tUninstallPathSetRyRzRRtegg_nameRRR9tPY_MAJORRRtaddRRRR{Rtdirnametadd_pthR=tnormcasetreadlineRxRRFtpipRtuninstallation_pathstmetadata_isdirtmetadata_listdirRRRRtplatformR$tSafeConfigParsertreadfptFakeFiletget_metadata_linest has_sectiontitemsRRa(Rjt auto_confirmtdisttpaths_to_removetpip_egg_info_pathtdist_info_pathtdebian_egg_info_pathteasy_install_eggtdevelop_egg_linktpip_egg_info_existstdebian_egg_info_existstdist_info_existsRtinstalled_fileRzt namespacesRt top_level_pkgteasy_install_pthtfht link_pointerRtbin_dirtconfigRrtvalue((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt uninstalls  "    !"   .    *     - cCs4|jr|jjntjd|jfdS(Ns'Can't rollback %s, nothing uninstalled.(RatrollbackRterrorR(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytrollback_uninstallYs  cCs4|jr|jjntjd|jfdS(Ns%Can't commit %s, nothing uninstalled.(RatcommitRR3R(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytcommit_uninstall`s  cCs|jstt}d|j|jf}tjj||}tjj|rt dt |d}|dkrt }q|dkrt j dt |tj|q|dkrt|}t j dt |t |ftj||qn|rtj|dtj}tjjtjj|j}xtj|D]\} } } d| kr~| jdnxl| D]d} tjj| | } |j| |} tj|jd | d }d|_|j|d qWxb| D]Z}|tkr qntjj| |}|j||} |j||jd | qWqSW|jt jd 8_t j dt |ndS(Ns %s-%s.zips/The file %s exists. (i)gnore, (w)ipe, (b)ackup titwR(s Deleting %ssBacking up %s to %ss pip-egg-infot/iiRisSaved %s(R7R8R(i(!RTRFRfRrRRyRzRRRRRARRRRRRtzipfiletZipFilet ZIP_DEFLATEDRR|Rt_clean_zip_nametZipInfot external_attrtwritestrRtwriteRRR(RjRtcreate_archivet archive_namet archive_pathtresponset dest_filetzipRtdirpathRRRRrtzipdirRG((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytarchivegsN      !     # cCs_|j|tjjs/td||f|t|d}|jtjjd}|S(Ns$name %r doesn't start with prefix %riR9(RnRyRzR~RFRR(RjRrtprefix((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR=s cs|jr|j||dS|jrztjj|j}tjj||j|j |jdd|t |_ dSt j dd}tjj|d}ztjg}|jd|jd|j|t|dd |g7}|js|d g7}ndk r&|d g7}n|jr?|d g7}n |d g7}tr|dtjjtjdddtg7}ntjd|jtjd7_z*t||d|jd|j dt!Wdtjd8_Xtjj"|stjd|dSt |_ |jr$dSfd} t#|} xN| D]1} | j$} | j%drF| | } PqFqFWtj&d|dS| j'g} t#|} x[| D]S} | j$}tjj(|r|tjj)7}n| jt*| || qW| j't#tjj| dd} | j+dj| d| j'Wdtjj"|r|tj,|ntj-|XdS(NRtstrip_file_prefixs-recordspip-sinstall-record.txts-csimport setuptools, tokenize;__file__=%r;exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))tinstalls--records#--single-version-externally-manageds--roots --compiles --no-compiles--install-headerstincludetsiteRsRunning setup.py install for %siRRRsRecord file %s not foundcs4dkstjj| r#|St|SdS(N(RVRyRztisabsR(Rz(R(s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt prepend_rootss .egg-infos;Could not find .egg-info directory in install record for %ssinstalled-files.txtR8s (.RUtinstall_editabletis_wheelRRt wheel_versionRTtcheck_compatibilityRrR6RfR`RRRyRzRRRRRRRYRVReRRKR'RRRRRRARR=RxRRRR}R~RRARtrmdir(Rjtinstall_optionstglobal_optionsRRLRt temp_locationtrecord_filenamet install_argsRQRRRt new_linesRG((Rs8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRMs                         cCs|jstjj|jrWtjd|j|jrKt|jnd|_n|j rtjj|j rt|j nd|_ dS(sVRemove the source files from this requirement, if they are marked for deletionsRemoving source in %sN( t is_bundleRyRzRtdelete_marker_filenameRRRTRRVR](Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytremove_temporary_sources  cCstjd|jtjd7_zWttjdd|jgt|ddgt|d|j d|j d t Wdtjd8_Xt |_ dS( NsRunning setup.py develop for %sis-csimport setuptools, tokenize; __file__=%r; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))tdevelops --no-depsRRR(RRRrRRRRRRRTRRARfR`(RjRWRX((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRRs7 cCsatj}xKddddddddgD]+}tj||jr(tj}Pq(q(W||fS( Ns ^running .*s ^writing .*s ^creating .*s^[Cc]opying .*s ^reading .*s4^removing .*\.egg-info' \(and everything under it\)$s^byte-compiling s7^warning: manifest_maker: standard file '-c' not found$(RtNOTIFYRRRxtINFO(RjRtleveltregex((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs   cCs|jdkrtSyJ|jjdkrG|jrG|jjdkrGtStj|j|_Wntj k rttStj k rtj|jj}|j rt |r||_qt rt|rtd|j|jfqq||_nXtS(sFind an installed distribution that satisfies or conflicts with this requirement, and set self.satisfied_by or self.conflicts_with appropriately.RRsVWill not install to the user site because it will lack sys.path precedence to %s in %sN(RRRVRARR\RfR9tget_distributionR[R tVersionConflictRbRRRRR(Rjt existing_dist((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR s(     cCs|jod|jkS(Ns.whl(RX(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRS=scCsu|jdk r|jS|j}|s)tStjjtjj|dphtjjtjj|d|_|jS(Nspip-manifest.txtspyinstall-manifest.txt(R^RVR]RARyRzRR(RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR]As !$c csGx|jD]}tjj|}xtjD]}d}}tjj||j}tjj |r,|j }t |}|j } |j |j| \}}Pq,q,W|rd|||f}nd}t||dtd|dtd|dtVq Wx=|jD]2}tjj|}t||d|dtVq WdS(Ns%s+%s@%sRURXR_RTRd(t_bundle_editable_dirsRyRztbasenameRtbackendsRVRt bundle_fileRRrR=R>Rtparse_vcs_bundle_fileRMRfRAt_bundle_build_dirs( Rjtdest_dirtpackageRRXtrevtvcs_bundle_fileRRHtcontent((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytbundle_requirementsMs,      c Cs|j}|sttjj|d}tjj|d}g}g}x#|||f|||fgD]\}} } tjj|rjxtj|D]} tjj| | } | j| tjj| rtj d| | |fqntjj| s(tj d| tj | nt j tjj|| | qWtj|smtj|qmqjqjWd|_||_||_dS(NtsrctbuildsZThe directory %s (containing package %s) already exists; cannot move source from bundle %ssCreating directory %s(R]RFRyRzRRRRRRRRRRRVRVRmRh( Rjtdest_build_dirt dest_src_dirRtsrc_dirRtbundle_build_dirstbundle_editable_dirsRTRntdir_collectionRtdest((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytmove_bundle_filesgs4     #  cCsAt|j|j|d|jd|jd|d|jd|dS(NtuserthomeRReRL(R6RrRRRbRcRe(RjtwheeldirRRL((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR6s   cCs%|jsttjj|jtS(N(RTRFRyRzRR(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR^sN((((0t__name__t __module__RVRARfRlt classmethodRuRRRRRtpropertyRrRRRRRRRRRRtcompileRRRRRRR1R4R6RJR=RMR_RRRR RSR]RsR}R6R^(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRM?sV -*    ? *    n   ) ]  !   t RequirementscBsGeZdZdZdZdZdZdZdZRS(cCsg|_i|_dS(N(t_keyst_dict(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRls cCs|jS(N(R(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytkeysscCs!g|jD]}|j|^q S(N(RR(RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytvaluesscCs ||jkS(N(R(Rjtitem((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt __contains__scCs3||jkr"|jj|n||j|scss|]}|jVqdS(N(RU(RRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pys s(RhRRRfRRA(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt has_editabless cCsg|jrctjj|j|_tjj|jr:tStjdtdt |jnt S(Ns!Could not find download directorys0Could not find or access download directory '%s'( RRyRzRRRfRtfatalRRRA(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt is_downloads  cCslxU||jfD]A}||jkr3|j|S||jkr|j|j|SqWtd|dS(NsNo project with the name %r(RRRtKeyError(RjRRr((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs  cCs8x1|jjD] }|jd||jqWdS(NR(RRR1R6(RjRRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR1scCst|j}t|jj}xc|s3|r|rK|jd}n|jd}t}|j r|j r|j|j r|j r|j ot |j  s|j |_ nd|_ qt}n|j rtjd|qn|jr |jdkrE|j|j|_qEn%|rE|j|j|j |_n|jdk r'tjj|j r'td||jfq'q'WdS(Nis<Requirement already satisfied (use --upgrade to upgrade): %ssCould not install requirement %s because source folder %s does not exist (perhaps --no-download was used without first running an equivalent install with --no-install?)(RRRRtpopRfRRUR R[RRbRR\RVRARRRTRRxRRRyRzR}R(RjtunnamedRtreq_to_installtinstall_needed((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt locate_filess4        %cCst|j}t|jj}xk|s3|r|rK|jd}n|jd}t}t}d} |j r|j r|j |j r^|j rU|j r|j ry|j||j } Wn=tk rt}t}qtk rtjd} qX| j|_n|s[|jo4t|j  sF|j |_nd|_ q[q^t}n|j r|rtjd|qtjd|qn|j rtjd|n^|r|jr|jjjdrtjdtt|jqtjd|ntjd 7_zYt} t} |j r|jdkrg|j|j } | |_n |j} t!j"j#|j$st%|j$n|j&|j' |j'r|j(|j)|j*q|j(nD|r|j|j$|j' } t}d} |j+rnEt!j"j#t!j"j,| d rSt-t.j/d || fn|jdkr| rq| n|j|d |j } nt0|j} | st1| rOyY| j2j3t4r|j5r|j5}t}n|j*}|j'}|j6| | ||WqUt7k rK}tj8d ||ft9d||| fqUXnt}|r|j:} | oy| j2j3t4} | r|j;|j$|j x|j<D] }|j=||j>|qWn|j'r| |_| s|j(n| r| j?t@jAkr|j)|j*qny| r=| |_| j|_n[| |_|j(|ri|j(dtn|jB|r|jr|jC|t}n|js|j n|j r|j s|jr|jot|j  s|j |_nd|_ qtjd|t}qqn| rttDjE| d}|jFsd|jG|_F|j>|n|jHsxd|jI|jJD]M}|jK|jLrqntMtN||}|j=||j>|qWqn%| s|jO|jP|jJrtjddj,|jJn|jHsx|j|jJD]}ytDjQjR|jL}Wn>tSk rtjd}tjTd|||fq2nX|jK|rq2ntM||}|j=||j>|q2Wn|jK|jUs|j>|qn| s0|j's|jVdk r0|jWj=|q0n|rz|jXj=||rz|jrz|jjdrz|jC|qznWdtjd 8_Xq'WdS(sGPrepare process. Create temp directories, download and/or unpack files.iis"Requirement already up-to-date: %ss<Requirement already satisfied (use --upgrade to upgrade): %ss Obtaining %ssfile:s Unpacking %ssDownloading/unpacking %sissetup.pys pip can't proceed with requirement '%s' due to a pre-existing build directory. location: %s This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again. Rs4Could not install requirement %s because of error %ssDCould not install requirement %s because of HTTP error %s for URL %sRs!Installing extra requirements: %rt,s.Invalid requirement: %r (%s) in requirement %ssfile:///N(YRRRRRRfRARVRRUR R[RRRXtfind_requirementR R Rtexc_infoRbRR\RRRRnRR.RRTRRxRyRzRRRRRRRJRRdRR ttextwraptdedentR)RFRGRR8Rt unpack_urlR&RRR]R}RsRRRRt all_schemesRtcopy_to_build_dirR9tfind_distributionsRRtas_requirementRtrequiresRNRRRMRtadd_dependency_linksRRPRQt ValueErrorR3RrR]RR(RjtfinderRtbundleRRRRMtbest_installedt not_foundRXR]RSRRRt do_downloadtexctetsubreqRRRRr((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt prepare_files:sV            !#       !                                      !cCstjdtjd7_x|jD]}|jq&Wg}|jr_|j|jn|rx|j|jnx>|D]6}t j j |rtj d|t |qqWtjd8_dS(sClean up files, remove builds.sCleaning up...isRemoving temporary dir %s...N(RRRRR_t_pip_has_created_build_dirRRRxRyRzRRR(RjRRRt remove_dirR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt cleanup_files's   cCs1|jtko0tjjtjj|jtS(N(RR*RyRzRRR(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR>scCs|jr|jp|j}tjd|j|ftjj||j}t j |j |t dd|dgd|dddS(NsCopying %s to %sRs %s/setup.pytcleanRRspython setup.py clean( RURxRRRRrRyRzRRtcopytreeRTR(RjRRcR|((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRBs cCs|dkr|j}nt|rL|r3|}n|}t|||nat|r~t||||rt|qn/t|||j||j |rt|ndS(N( RVRR2R1R3R4RR5RR(RjRRRt only_downloadtloc((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRJs&      c Os2g|jjD]}|js|^q}tjjd}xI|D]A}|jdkrD|j|krD|j||j |qDqDW|rt j ddj g|D]}|j^qnt j d7_ zAx:|D]2} | jdkrGy=tjjd} tjd} | | kr,| | _nWqGtjk rCqGXn| jrt j d| jt j d7_ z| jd tWd t j d8_ Xny| j||||Wn*| jr| j r| jnn X| jr| jr| jn| jqWWd t j d8_ X||_d S( sRInstall everything in this set (after having downloaded and unpacked the packages)sdistribute>=0.7Rs!Installing collected packages: %ss, iRsdistribute<0.7sFound existing installation: %sRN(RRR[R9RPRQRrRRRRRRRReR\R R1RfRMR`R4R6R_R( RjRWRXtargstkwargsRt to_installtdistribute_reqRRt requirementtdistribute_requirementtexisting_distribute((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRMisL  3       cCstj|dtj}g}xJ|jdf|jdffD]*\}}tjjtjj|}xtj |D]\}}}xt j D]} | } d} } | j |krxR|D]} |j| rPqqW| jtjj||\} } |j|| j}| ji| d6| d6}|j| j PqqWd|kre|jdnxQ|D]I}tjj||}|j||}|j|d|ddqlWx_|D]W}|tkrqntjj||}|j||}|j||d|qW| rwtjj||}|j||}|j|d||qwqwWq=W|jd |j|jdS( NR8RuRtRXRps pip-egg-infoR9Rspip-manifest.txt(R:R;R<RRxRyRzRR|RRRjRVRRntget_infoRRRktguideRR=R@RRARsR(Rjtbundle_filenameRGtvcs_dirsRRiRHRRRRtvcs_urltvcs_revtvcs_dirRqt vcs_guideRRrRG((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt create_bundlesL+           #s# This is a pip bundle file, that contains many source packages # that can be installed as a group. You can install this like: # pip this_file.zip # The rest of the file contains a list of all the packages included: cCs|jg}xPg|jjD]}|js|^qD]#}|jd|j|jfq8W|jdxPg|jjD]}|jr|^qD]#}|jd|j|jfqWdj|S(Ns%s==%s sC# These packages were installed to satisfy the above requirements: R(t BUNDLE_HEADERRRRSRRrRR(RjtpartsRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRss ! !cCs_|j|tjjs/td||f|t|d}|jtjjd}|S(Ns$name %r doesn't start with prefix %riR9(RnRyRzR~RFRR(RjRrRK((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR=s N((RRRVRARfRlRRRRRRRRR1RRRRRRRMRRRsR=(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs2        '     E 7 cCstj|t|dS(N(RyRR(R((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs s^(http|https|file):ccs|dkrt}nd}|r-|jnd}|rKtj|}ntjjtjj|}t |d|d|\}}x2t |j D]\} } | d7} | j } tj dd| } | s| jdrqn|r|j| rqn| jds&| jdr| jdrH| d j } n| tdj j d } tj|rtj|| } n3tj| stjjtjj|| } nxt| |d|d |d|D] } | VqWq| jd s| jd rq| jds1| jdr| jdrS| d j } n| tdj jd } tjj|| } tjj| r| } n|r|jj| qq| jds| jdr5| jdr| d j } n| tdj jd } |r| g|_qq| jdr| tdj jd } |r|jj| qq| jdrt|_q| jdrg|_q| jdr | tdj jd } |jtt| j gO_q| jdr%t|_!q| jdr7q| jdrIq| jdr| tdj jd } |j"tt| j gO_"q| jdr| tdj jd } |j"tt| j gO_"qd|| f}| jds!| jdr| jdrC| d j } n| tdj jd } t#j$| d|d|r|j%nd}n$t#j&| |dt'|d d}|VqWdS(!NRSRis (^|\s)#.*$RRs-rs --requirementit=toptionss-Zs--always-unzips-fs --find-linkss-is --index-urls--extra-index-urls --use-wheels --no-indexs--allow-externals--allow-all-externals--no-allow-externals--no-allow-insecures--allow-insecures--allow-unverifieds-r %s (line %s)s-es --editableRqRgtpre((RVR+tskip_requirements_regexRRRyRzRR|R,t enumerateRRxtsubRnRRt _scheme_reR!turljoinRtparse_requirementstlstripRt find_linksRt index_urlsRft use_wheeltallow_externaltsetR Rtallow_all_externaltallow_unverifiedRMRuRqRtgetattr(RGRRSRRt skip_matcht skip_regext reqs_file_dirRrt line_numberRtreq_urlRtrelative_to_reqs_fileRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs     $(    ' '''$cCs.tjd|}|r*|jd}n|S(s2 Strip req postfix ( -dev, 0.2, etc ) s^(.*?)(?:-dev|-\d.*)$i(RRR(RRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt_strip_postfixgscCs|g|jdddjdD]}|r |^q }d}|dd kr[|d }n|d d krx|d}n|S(NRiiR9ittagstbranchesttagtbranchiittrunk(RRRsbranch(RRV(RXRRRR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt_build_req_from_urlrs8  cCs{tjd}|j|}|rwt}xC|D];}|\}}||kretd|n|||[^&=]+)=(?P[^&=]+)s%s option already definedN(RRtfindalltdictt ExceptionRV(RRtregexptmatchedtrettoptionRrR0((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt_build_editable_options}s    cCsy|}d}tjd|}|rE|jd}|jd}n|}tjj|rtjjtjj|dst d|nt |}n|j j dr|rd|t jjd|jfSd|dfSnx;tD]3}|j j d|rd ||f}PqqWd |kr_|rL|d |}q_t d |n|jd dd j }tj|sd |djgtjD]}|jd^qd} t | nyt|} Wn7tk rtjd} t d|| fnX| s.d| krVt|} | s`t d|q`n | d} t| } | || fS(sSParses svn+http://blahblah@rev#egg=Foobar into a requirement (Foobar) and a URLs^(.+)(\[[^\]]+\])$iissetup.pys;Directory %r is not installable. File 'setup.py' not found.sfile:t__placeholder__s%s:s%s+%sRsb%s should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+isFor --editable=%s only s, s+URLs is currently supporteds*--editable=%s error in editable options:%steggs@--editable=%s is not the right format; it must have #egg=PackageN(RVRRRRyRzR}RRRR/RRnR9RPRQRNRRRRjRrRRRRRR(RpRqRXRNtmt url_no_extrastversion_controlRRt error_messageRtmessageRRRo((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRmsT!   1    R cBskeZdZdZdZdZdZdZdZdZ e dZ d Z d Z RS( sMA set of file paths to be removed in the uninstallation of a requirement.cCs@t|_t|_i|_||_d|_g|_dS(N(Rtpathst_refusetpthRRVtsave_dirt _moved_paths(RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRls      cCs t|S(ss Return True if the given path is one we are permitted to remove/modify, False otherwise. (R(RjRz((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt _permittedscCsFt|jsBtjd|jjt|jjtjft St S(Ns1Not uninstalling %s at %s, outside environment %s( RRRRRRRRRKRARf(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt_can_uninstalls  &cCst|}tjj|s"dS|j|rD|jj|n|jj|tjj|ddkrt r|jt j |ndS(Nis.py( RRyRzRRRR RtsplitextR#timptcache_from_source(RjRz((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR s "cCskt|}|j|rW||jkr@t||j||jD]3}|j |}tj d|t ||qKWx|j D]}|j qWdS(s1Rollback the changes previously made by remove().s'Can't roll back %s; was not uninstalledsRolling back uninstall of %ss Replacing %sN(RRVRR3RRRARRR!RRRR2(RjRzttmp_pathR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR29scCs5|jdk r1t|jd|_g|_ndS(s?Remove temporary save dir: rollback will no longer be possible.N(RRVRR(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR5Fs  (RRt__doc__RlRRR RRR!RARR2R5(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR s      % RcBs,eZdZdZdZdZRS(cCsGtjj|s%td|n||_t|_d|_dS(Ns.Cannot remove entries from nonexistent file %s( RyRzRRRwRtentriesRVt _saved_lines(RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRlOs   cCsatjj|}tjdkrMtjj|d rM|jdd}n|jj|dS(NRis\R9( RyRzRRRR RR(R (RjR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR Vs&cCstjd|jt|jd}|j}||_|jtd|Drdd}nd}xQ|jD]F}y,tjd||j t ||Wqtt k rqtXqtWt|jd}|j ||jdS(NsRemoving pth entries from %s:R;css!|]}td|kVqdS(s N(R((RR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pys gss s sRemoving entry: %stwb( RRRwR=t readlinesR)RRhR(RR(Rt writelines(RjR,tlinestendlineR((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR`s"      cCsk|jdkr'tjd|jtStjd|jt|jd}|j|j|j t S(Ns.Cannot roll back changes to %s, none were mades!Rolling %s back to previous stateR*( R)RVRR3RwRARR=R,RRf(RjR,((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyR2us (RRRlR RR2(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRNs  RcBs)eZdZdZdZdZRS(sQWrap a list of lines in an object with readline() to make ConfigParser happy.cCsd|D|_dS(Ncss|] }|VqdS(N((Rtl((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pys s(t_gen(RjR-((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRlscCsLy3yt|jSWntk r1|jjSXWntk rGdSXdS(NR(tnextR0t NameErrort StopIteration(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs  cCs|jS(N(R0(Rj((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyt__iter__s(RRR'RlRR4(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pyRs  (ct email.parserRRyRR?RRRRRR:tdistutils.utilRt pip.locationsRRRRRtpip.exceptionsRRR R R R R tpip.vcsRtpip.logRtpip.utilRRRRRRRRRRRRRRRRR tpip.backwardcompatR!R"R#R$R%R&R'R(t pip.indexR)R*t pip.downloadR+R,R-R.R/R0R1R2R3R4R5t pip.wheelRR6R7R8t pip._vendorR9R:RLtobjectRMRRRRtIRRVRRRRRmR RR(((s8/opt/alt/python33/lib/python3.3/site-packages/pip/req.pytsT         (4p:L  WN   c  A|2