abc@@sddlmZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl m Z ddl mZddlmZddlmZmZddlmZddlmZdd lmZmZdd lmZdd lmZmZ dd l!m"Z"ddl#Z$dd l%m&Z&m'Z'm(Z(ddl)m*Z*m+Z+m,Z,m-Z-ddl.m/Z/m0Z0ddl1m2Z2m3Z3m4Z4m5Z5ddl6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFddlGmHZHddlImJZJddlKmLZLddlMmNZNddlOmPZPddlQmRZRddlSmTZTddl#mUZUmVZVejWeXZYejZj[j\Z]dZ^dZ_de`fdYZadZbecdZddS( i(tabsolute_importN(t sysconfig(t change_root(t FeedParser(t pkg_resourcestsix(t specifiers(tMarker(tInvalidRequirementt Requirement(tcanonicalize_name(tVersiontparse(t configparser(t native_strt get_stdlibtWINDOWS(tis_urlt url_to_patht path_to_urltis_archive_file(tInstallationErrortUninstallationError(tbin_pytrunning_under_virtualenvtPIP_DELETE_MARKER_FILENAMEtbin_user(t display_pathtrmtreetask_path_existst backup_dirtis_installable_dirtdist_in_usersitetdist_in_site_packagest egg_link_pathtcall_subprocesstread_text_filetFakeFilet_make_build_dirt ensure_dirtget_installed_versiontnormalize_patht dist_is_local(tHashes(tRemovedInPip10Warning(t indent_log(tSETUPTOOLS_SHIM(t open_spinner(tUninstallPathSet(tvcs(tmove_wheel_filestWheelcC@sOtjd|}d}|r?|jd}|jd}n|}||fS(Ns^(.+)(\[[^\]]+\])$ii(tretmatchtNonetgroup(tpathtmtextrastpath_no_extras((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt _strip_extras9scC@std|DS(Ncs@s|]}tj|VqdS(N(Rt safe_extra(t.0textra((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pys Fs(tset(R:((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt _safe_extrasEstInstallRequirementc B@seZd'ed'eeed'ed'd'ed Zed'd'ed'd'edZed'ed'd'edZdZ dZ dZ e dZ e dZdZd Zd Ze d Ze d Ze d ZdZdZdZdZejdZe dZdZedZedZdZ dZ!dZ"dZ#d'dZ$gd'd'd'dZ%dZ&dZ'dZ(d(d'd Z)d!Z*e d"Z+d'd'd'd#Z,d$Z-e d%Z.ed&Z/RS()c@sd|_ttjrytWntk rtjjkrVd}n>dkrt fdt D rd}n t j }t d|fnXtj|_n|_||_| |_||_||_| |_||_|_||_| dk r*| |_no6j|_d|_d|_d|_d|_d|_||_ d|_!d|_"t#|_$t#|_%d|_&| r| ni|_'||_(t#|_)| |_*dS(Ns%It looks like a path. Does it exist ?t=c3@s|]}|kVqdS(N((R>top(treq(s7/usr/lib/python2.7/site-packages/pip/req/req_install.pys Vss,= is not a valid operator. Did you mean == ?sInvalid requirement: '%s' %s((+R:t isinstanceRt string_typesR RtosR8tseptanyt operatorst tracebackt format_excRRAREt comes_fromt constraintt source_dirteditablet _wheel_cachetlinkt original_linktas_eggR6tmarkerstmarkert_egg_info_patht satisfied_bytconflicts_witht_temp_build_dirt_ideal_build_dirtupdatetinstall_succeededt uninstalledtFalsetnothing_to_uninstallt use_user_sitet target_dirtoptionst pycompiletpreparedtisolated(tselfRERNRPRQRSRUR]ReRVRgRdt wheel_cacheROtadd_msg((REs7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt__init__KsN   )                        cC@sddlm}t||\} } } | jdrFt| } nd} || |d| dtd|| d|d|d |r|nid |} | dk rt| | _n| S( Ni(tLinksfile:RPRQRSRORgRdRi( t pip.indexRltparse_editablet startswithRR6tTrueRAR:(tclst editable_reqRNt default_vcsRgRdRiRORltnameturltextras_overrideRPtres((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt from_editables    cC@sddlm}t|r%d}nd}||kry|j|d\}} | j} | sjd} qt| } nd} |j}d} tjj tjj |} d} d} t|r||} nt | \}} tjj |rOtjj |ks|jdrOt|s:td|n|t|} nFt|rtjj|stjd|n|t|} n| r,| jd krtjd | jr|ttjj tjj | j} n| jr t| j}d |j|jf} q2| j} n|} |r>|ni}|| |d | d | d|d|d|d|}| rt t!d| j"|_"n|S(sCreates an InstallRequirement from a name, which might be a requirement, directory containing 'setup.py', filename, or URL. i(Rls; t;it.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==%sRSRVRgRdRiROt placeholderN(#RmRlRtsplittstripR6RRHR8tnormpathtabspathR<tisdirRIRoRRRRtisfiletloggertwarningtschemeR4tsearchRutis_wheelR3tfilenameRttversiont egg_fragmentRAR R:(RqRtRNRgRdRiRORlt marker_sepRVRER8RSR:tptwheelRw((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt from_linesb       !    $-   cC@s|jr;t|j}|jrV|d|jj7}qVn|jrP|jjnd}|jdk r|dt|jj7}n|jrt |jt j r|j}n|jj }|r|d|7}qn|S(Ns from %ss in %ss (from %s)( REtstrRSRuR6RYRtlocationRNRFRRGt from_path(RhtsRN((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt__str__s    cC@s d|jjt||jfS(Ns<%s object: %s editable=%r>(t __class__t__name__RRQ(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt__repr__scC@s|jdkr'|j|||_n|jdk r| r|j}|jj|j|j|_||jkrtjd|jqndS(sEnsure that if a link can be found for this, that it is found. Note that self.link may still be None - if Upgrade is False and the requirement is already installed. If require_hashes is True, don't use the wheel cache, because cached wheels, always built locally, have different hashes than the files downloaded from the index server and thus throw false hash mismatches. Furthermore, cached wheels at present have undeterministic contents due to file modification times. sUsing cached wheel link: %sN(RSR6tfind_requirementRRt cached_wheelRtRtdebug(Rhtfindertupgradetrequire_hashestold_link((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt populate_link s  cC@s |jjS(N(REt specifier(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRscC@s4|j}t|dko3tt|jdkS(sReturn whether I am pinned to an exact version. For example, some-package==1.2 is pinned; some-package>1.2 is not. is==s===(s==s===(Rtlentnexttitertoperator(RhR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt is_pinned!s cC@sy|jdkrdSt|j}|jrut|jtjrL|j}n|jj}|ru|d|7}qun|S(Ns->(RER6RRNRFRRGR(RhRRN((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR+s  cC@s|jdk r|jS|jdkrVtjjtjdd|_||_|jS|j rq|j j }n |j }tjj |st jd|t|ntjj||S(Ns-buildspip-sCreating directory %s(R[R6RERHR8trealpathttempfiletmkdtempR\RQRttlowertexistsRRR&tjoin(Rht build_dirRt((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytbuild_location8s     cC@s|jdk rdS|j}d|_|j|j}tjj|rbtdt |nt j d|t |t |t j ||||_d|_||_d|_dS(sMove self._temp_build_dir to self._ideal_build_dir/self.req.name For some requirements (e.g. a path to a directory), the name of the package is not available until we run egg_info, so the build_location will return a temporary directory and store the _ideal_build_dir. This is only called by self.egg_info_path to fix the temporary build directory. Ns<A package already exists in %s; please remove it to continues,Moving package %s from %s to new location %s(RPR6R[RR\RHR8RRRRRtshutiltmoveRX(Rht old_locationt new_location((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt_correct_build_locationSs"      cC@s,|jdkrdSttj|jjS(N(RER6RRt safe_nameRt(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRtsscC@s+tjj|j|jr$|jjp'dS(Nt(RHR8RRPRStsubdirectory_fragment(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt setup_py_dirys cC@syddl}WnHtk rZtddkr;d}n tj}td|nXtjj |j d}t j rt |t jr|jtj}n|S(Nit setuptoolssPlease install setuptools.sWCould not import setuptools which is required to install from a source distribution. %sssetup.py(Rt ImportErrorR(R6RLRMRRHR8RRRtPY2RFt text_typetencodetsystgetfilesystemencoding(RhRRjtsetup_py((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRs   c C@s|jr%tjd|j|jntjd|j|jtt|j}tjd|g}|j r|dg7}n|dg}|j rg}n.t j j |jd}t|ddg}t||d|jd td d WdQX|jsott|jd tr'd }nd}tdj |jd||jd g|_|jnbt|jd}t|jj|krtjd|j|j||jt||_ndS(Ns2Running setup.py (path:%s) egg_info for package %ss7Running setup.py (path:%s) egg_info for package from %ss-cs --no-user-cfgtegg_infos pip-egg-infos --egg-basetcwdt show_stdoutt command_descspython setup.py egg_infoR s==s===RtNamesuRunning setup.py (path:%s) egg_info for package %s produced metadata for project name %s. Fix your #egg=%s fragments.(RtRRRRSR-R.Rt executableRgRQRHR8RRR'R#R`RERFt parse_versiontpkg_infoR R RR R(Rhtscripttbase_cmdt egg_info_cmdtegg_base_optiont egg_info_dirRDt metadata_name((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt run_egg_infosN                cC@sj|jdk r5|jj|s%dS|jj|S|j|}tjj|sZdSt|}|S(N( RYR6t has_metadatat get_metadatat egg_info_pathRHR8RR$(RhRtdata((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt egg_info_datas c C@s |jdkr |jr$|j}ntjj|jd}tj|}|jrg}xtj |D] \}}}x-t j D]"}||kr|j |qqWxt |D]}tjjtjj||dds tjjtjj||ddr|j |q|dks2|dkr|j |qqW|jg|D]}tjj||^qSqjWg|D]}|jdr|^q}n|std ||fnt|d kr|jd d ntjj||d |_ntjj|j|S(Ns pip-egg-infotbintpythontScriptss Python.exettestttestss .egg-infos$No files/directories in %s (from %s)itkeycS@s8|jtjjtjjr3|jtjjp6dS(Ni(tcountRHR8RItaltsep(tx((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt si(RXR6RQRPRHR8RRtlistdirtwalkR1tdirnamestremovetlisttlexistsRtextendtendswithRRtsort( RhRtbaset filenamestroottdirstfilestdirtf((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRs>        *+  cC@s]t}|jd}|s@tjdt|jdn|j|pOd|jS(NsPKG-INFOsNo PKG-INFO file found in %sR(RRRRRRtfeedtclose(RhRR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRs s \[(.*?)\]cC@s t|jS(N(R(Rt(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytinstalled_version scC@sj|jd}|jjrG||jjkrGtjd||jntjdt|j||dS(NRs'Requested %s, but installing version %ss;Source in %s has version %s, which satisfies requirement %s( RRERRRRRRRP(RhR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytassert_source_matches_version$s  cC@s|js tjd|jdS|jjdkr6dS|jsCdS|jjjdd\}}tj |}|r||jj}|r|j |jq|j |jndS(Ns>Cannot update repository at %s; repository location is unknownR{t+i( RSRRRPRR]RuR}R1t get_backendtobtaintexport(RhRtvc_typeRutbackendt vcs_backend((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytupdate_editable5s"   cC@s|js%td|jfn|jp4|j}t|j}t|s{tj d|j |t j t |_dS|tkrtj d|j |t |_dSt|}t|}djtj|j}|jotjj|j}t|jdd}|r|jjdr|jj| r|j|j|jdrx'|j dj!D]7} tjj"tjj#|j| } |j| qsWq |jd r |jd r|j d } ng} xg|j d j!D]} | r| | kr| ^qD]^} tjj#|j| } |j| |j| d |j| d |j| d q"Wq n|rt$j%dj|jt&|j|nQ|jjdr2|j|jtjj'|jd}tjj#tjj(|jd}|j)|d|n|rw|jjdrwxt*j+j,|D]} |j| q]Wn|rt-|d%}tjj.|j/j0}WdQX|j|tjj#tjj(|d}|j)||jntj1d||j|jdr|j2drxz|j3dD]f}t4|rVt5}nt6}|jtjj#||t7r;|jtjj#||dq;q;Wn|jdrt8j9ri}n idd6}t:j;|}|j<t=|j>d|j?drx|j@dD]\}}t4|rAt5}nt6}|jtjj#||t7r |jtjj#||d|jtjj#||d|jtjj#||dq q Wqn|jA|||_BdS( 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 installeds1Not uninstalling %s at %s, outside environment %sNs<Not uninstalling %s at %s, as it is in the standard library.s {0}.egg-infoR8s .egg-infosinstalled-files.txts top_level.txtsnamespace_packages.txts.pys.pycs.pyosUninstalling a distutils installed project ({0}) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.s.eggiseasy-install.pths./s .dist-infotrs)Not sure how to uninstall: %s - Check: %stscriptss.batsentry_points.txtRCt delimiterstconsole_scriptss.exes .exe.manifests -script.py(RC(Ctcheck_if_existsRRtRYRZR)RR*RtinfoRRtprefixRpRaRR0R"tformatRt to_filenamet project_nameRRHR8Rtgetattrt _providerR6RtaddRRt splitlinesRRtwarningstwarnR,R}tdirnametadd_pthtpipRtuninstallation_pathstopentnormcasetreadlineR~Rtmetadata_isdirtmetadata_listdirR RRRRRR tSafeConfigParsertreadfpR%tget_metadata_linest has_sectiontitemsRR_(Rht auto_confirmtdistt dist_pathtpaths_to_removetdevelop_egg_linktdevelop_egg_link_egg_infotegg_info_existstdistutils_egg_infotinstalled_fileR8t namespacesRt top_level_pkgteasy_install_eggteasy_install_pthtfht link_pointerRtbin_dirRdtconfigRttvalue((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt uninstallRs         "   $     *     ' cC@s0|jr|jjntjd|jdS(Ns'Can't rollback %s, nothing uninstalled.(R_trollbackRterrorRt(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytrollback_uninstalls cC@s<|jr|jjn|js8tjd|jndS(Ns%Can't commit %s, nothing uninstalled.(R_tcommitRaRR*Rt(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytcommit_uninstalls   cC@st}d|j|jdf}tjj||}tjj|rtdt|d}|dkrxt }q|dkrt j dt|tj |q|dkrt |}t j d t|t|tj||q|dkrtjd qn|rtj|dtjd t}tjjtjj|j}xtj|D]\} } } d | kr| j d nxl| D]d} tjj| | } |j| |} tj|jd | d }d|_|j|dqWxb| D]Z}|tkr!q ntjj| |}|j||} |j||jd | q WqhW|jt j dt|ndS(Ns %s-%s.zipRs8The file %s exists. (i)gnore, (w)ipe, (b)ackup, (a)bort titwtbtas Deleting %ssBacking up %s to %sit allowZip64s pip-egg-infot/iiRsSaved %s(R.R/R0R1i(!RpRtRRHR8RRRRR`RRRRRRRtexittzipfiletZipFilet ZIP_DEFLATEDR RRRt_clean_zip_nametZipInfot external_attrtwritestrRtwriteRR(RhRtcreate_archivet archive_namet archive_pathtresponset dest_filetzipRtdirpathRRRRttzipdirR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytarchivesV         !     # cC@s0|t|d}|jtjjd}|S(NiR3(RtreplaceRHR8RI(RhRtR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR85sc@s@|sd}njdk r8tfd|DStSdS(NRc3@s(|]}jji|d6VqdS(R?N(RVtevaluate(R>R?(Rh(s7/usr/lib/python2.7/site-packages/pip/req/req_install.pys Ds(R(RVR6RJRp(Rhtextras_requested((Rhs7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt match_markers=s   c@s"|jr#|j||d|dS|jrtjj|j}tjj||j|j |jdd|d|t |_ dS||j j dg7}||j j dg7}|jrt|dg}ntjdd}tjj|d }z|j|||} d |jf} t| :} t(t| |d |jd td | WdQXWdQXtjj|stjd|dSt |_ |jrdSfd} t|]} xS| D]7}tjj |}|j!dr| |}PqqWtj"d|dSWdQXg}t|k} xa| D]Y}|j#}tjj$|rz|tjj%7}n|j&tjj'| ||qCWWdQXtjj|d}t|d!} | j(dj|dWdQXWdtjj|rtj)|nt*|XdS(NRRtstrip_file_prefixtglobal_optionstinstall_optionss --no-user-cfgs-recordspip-sinstall-record.txtsRunning setup.py install for %sRRtspinnersRecord file %s not foundc@s4dkstjj| r#|St|SdS(N(R6RHR8tisabsR(R8(R(s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt prepend_root~ss .egg-infos;Could not find .egg-info directory in install record for %ssinstalled-files.txtR/s (+RQtinstall_editableRR Rt wheel_versionRPtcheck_compatibilityRtR2RpR^RdtgetRgRRRRHR8Rtget_install_argsR/R-R#RR`RRRRUR RRRR~RRItappendtrelpathR<RR(RhRLRKRRRJRt temp_locationtrecord_filenamet install_argstmsgRMRORtlinet directoryRt new_linesRtinst_files_path((Rs7/usr/lib/python2.7/site-packages/pip/req/req_install.pytinstallIs~                $cC@s+|jdkr$|j||_n|jS(sAEnsure that a source_dir is set. This will create a temporary build dir if the name of the requirement isn't known yet. :param parent_dir: The ideal pip parent_dir for the source_dir. Generally src_dir for editables and build_dir for sdists. :return: self.source_dir N(RPR6R(Rht parent_dir((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytensure_has_source_dirs cC@stjdg}|jd|jt|j|t|dd|g7}|jsf|dg7}n|dk r|d|g7}n|dk r|d|g7}n|jr|dg7}n |d g7}t rd t j }|d t j jtjd d ||jg7}n|S(Ns-us-cR_s--records#--single-version-externally-manageds--roots--prefixs --compiles --no-compileRs--install-headerstincludetsite(RRRUR.RRRUR6ReRRtget_python_versionRHR8RRRt(RhRKRXRRRYt py_ver_str((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRTs(        cC@s|jrPtjjtjj|jtrPtjd|jt|jnd|_|j rtjj|j rt|j nd|_ dS(sVRemove the source files from this requirement, if they are marked for deletionsRemoving source in %sN( RPRHR8RRRRRRR6R[(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytremove_temporary_sources c C@stjd|j|jr2t|dg}n|r]dj|g}t||}ntOttj dt |j gt|ddgt|d|j dt WdQXt|_dS( NsRunning setup.py develop for %ss --no-user-cfgs --prefix={0}s-ctdevelops --no-depsRR(RRRtRgRRR-R#RRR.RRR`RpR^(RhRLRKRt prefix_param((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRPs  *   cC@s|jdkrtSyett|j}d|_tjt||_|j rw|jrw|j|_ d|_t SWntj k rtStj k rtj|jj}|jr t|r||_ qtrt|rtd|j|jfqq||_ nXt S(sFind an installed distribution that satisfies or conflicts with this requirement, and set self.satisfied_by or self.conflicts_with appropriately. sVWill not install to the user site because it will lack sys.path precedence to %s in %sN(RER6R`R RRWRtget_distributionRYRQRZRptDistributionNotFoundtVersionConflictRtRbR RR!RRR(Rht no_markert existing_dist((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRs2         cC@s|jo|jjS(N(RSR(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR scC@sPt|j|j|d|jd|jd|d|d|jd|jd|dS(NtuserthomeRRReRgRJ(R2RtRERbRcReRg(RhtwheeldirRRRJ((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR2$s    cC@s|jdjd}tjj|}tj||}tjjtjj|d}tj tjj|d|d|S(sAReturn a pkg_resources.Distribution built from self.egg_info_pathRR3iRtmetadata( RtrstripRHR8RRt PathMetadatatsplitexttbasenamet Distribution(RhRtbase_dirRqt dist_name((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytget_dist0s"cC@st|jjdiS(sReturn whether any known-good hashes are specified as options. These activate --require-hashes mode; hashes specified as part of a URL do not. thashes(tboolRdRS(Rh((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pythas_hash_options;scC@sn|jjdij}|r*|jn|j}|rd|jrd|j|jgj|jnt |S(sReturn a hash-comparer that considers my option- and URL-based hashes to be known-good. Hashes in URLs--ones embedded in the requirements file, not ones downloaded from an index server--are almost peers with ones from flags. They satisfy --require-hashes (whether it was implicitly or explicitly activated) but do not activate it. md5 and sha224 are not allowed in flags, which should nudge people toward good algos. We always OR all hashes together, even ones from URLs. :param trust_internet: Whether to trust URL-based (#md5=...) hashes downloaded from the internet, as by populate_link() Rz( RdRStcopyRSRTthasht setdefaultt hash_nameRUR+(Rhttrust_internett good_hashesRS((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRzEs "N((0Rt __module__R6R`RpRkt classmethodRxRRRRtpropertyRRRRRRtRRRRRRR4tcompilet_requirements_section_reRRRR(R+R-RER8RIR_RaRTRfRPRRR2RyR|Rz(((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRBIs^  ;  M      : 6      0  \    )  cC@s.tjd|}|r*|jd}n|S(s2 Strip req postfix ( -dev, 0.2, etc ) s^(.*?)(?:-dev|-\d.*)$i(R4RR7(RER5((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt_strip_postfix[sc C@sPddlm}|}d}tjd|}|rU|jd}|jd}n|}tjj|rtjj tjj |dst d|nt |}n|j jdr ||j}|r||td |j jfS||dfSnx;tD]3}|j jd |rd ||f}PqqWd |kr|r{tjd t|d |}qt d|n|jd ddj } tj| sd|dj gtjD]} | jd^qd} t | n||j}|s$t dn|s=t d|nt||dfS(sParses an editable requirement into: - a requirement name - an URL - extras - editable options Accepted requirements: svn+http://blahblah@rev#egg=Foobar[baz]&subdirectory=version_subdir .[some_extra] i(Rls^(.+)(\[[^\]]+\])$iissetup.pys;Directory %r is not installable. File 'setup.py' not found.sfile:R|s%s:s%s+%sRsD--default-vcs has been deprecated and will be removed in the future.sb%s should either be a path to a local project or a VCS url beginning with svn+, git+, hg+, or bzr+sFor --editable=%s only s, s+URLs is currently supporteds@Could not detect requirement name, please specify one with #egg=s@--editable=%s is not the right format; it must have #egg=PackageN(RmRlR6R4R5R7RHR8RRRRRRRoRR R:R1RRR,R}RtbackendsRtR( RrRsRlRuR:R9t url_no_extrast package_nametversion_controlRRt error_message((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRngs` !    1  (et __future__RtloggingRHR4RRRRLRR5t distutilsRtdistutils.utilRt email.parserRt pip._vendorRRtpip._vendor.packagingRtpip._vendor.packaging.markersRt"pip._vendor.packaging.requirementsRR tpip._vendor.packaging.utilsR tpip._vendor.packaging.versionR R Rtpip._vendor.six.movesR t pip.wheelR t pip.compatRRRt pip.downloadRRRRtpip.exceptionsRRt pip.locationsRRRRt pip.utilsRRRRRR R!R"R#R$R%R&R'R(R)R*tpip.utils.hashesR+tpip.utils.deprecationR,tpip.utils.loggingR-tpip.utils.setuptools_buildR.t pip.utils.uiR/tpip.req.req_uninstallR0tpip.vcsR1R2R3t getLoggerRRt Specifiert _operatorstkeysRKR<RAtobjectRBRR6Rn(((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytsX          ""j