Server IP : 111.118.215.189 / Your IP : 3.14.86.75 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /lib/python2.7/site-packages/pip/req/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
� >�P_c@@sddlmZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZddl mZddlmZddlmZmZddlmZddlmZdd lmZmZdd lmZddlmZddlm Z ddl!Z"dd l#m$Z$m%Z%m&Z&ddl'm(Z(m)Z)m*Z*m+Z+ddl,m-Z-m.Z.ddl/m0Z0m1Z1m2Z2m3Z3ddl4m5Z5m6Z6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDddlEmFZFddlGmHZHmIZIddlJmKZKddlLmMZMddlNmOZOddlPmQZQddlRmSZSddl!mTZTmUZUejVeW�ZXejYjZj[�Z\d�Z]de^fd��YZ_d�Z`d�Zaebd�ZcdS( i(tabsolute_importN(t sysconfig(tchange_root(t FeedParser(t pkg_resourcestsix(t specifiers(tMarker(tInvalidRequirementtRequirement(tcanonicalize_name(tVersion(tconfigparser(t native_strt get_stdlibtWINDOWS(tis_urlturl_to_pathtpath_to_urltis_archive_file(tInstallationErrortUninstallationError(tbin_pytrunning_under_virtualenvtPIP_DELETE_MARKER_FILENAMEtbin_user(tdisplay_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(tRemovedInPip9WarningtRemovedInPip10Warning(t indent_log(tSETUPTOOLS_SHIM(topen_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_extras9stInstallRequirementcB@seZd&ed&eeed&ed&d&ed�Zed&d&ed&d&ed��Zed&ed&d&ed��Zd�Z d�Z d�Zed��Z ed��Zd�Zd �Zd �Zed��Zed��Zed ��Zd�Zd�Zd�Zd�Zejd�Zed��Zd�Zed�Zed�Zd�Z d�Z!d�Z"d�Z#d�Z$gd&d&d&d�Z%d�Z&d�Z'd'd&d�Z(d �Z)ed!��Z*d&d&d&d"�Z+d#�Z,ed$��Z-ed%�Z.RS((c@s�d|_t�tj�r�yt���Wn�tk r�tjj�krVd}n>d�kr�t �fd�t D��r�d}ntj�}t d�|f��nX�j|_n�|_||_| |_||_||_||_||_|_||_| |_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((t.0top(treq(s7/usr/lib/python2.7/site-packages/pip/req/req_install.pys <genexpr>Rss,= is not a valid operator. Did you mean == ?sInvalid requirement: '%s' %s(()R:t isinstanceRtstring_typesR RtosR8tseptanyt operatorst tracebackt format_excRRAt comes_fromt constraintt source_dirteditablet_wheel_cachetlinkt original_linktas_eggtmarkersR6t_egg_info_pathtsatisfied_bytconflicts_witht_temp_build_dirt_ideal_build_dirtupdatetinstall_succeededtuninstalledtFalsetnothing_to_uninstallt use_user_sitet target_dirtoptionst pycompiletpreparedtisolated(tselfRARJRLRMRORQRXR`RRRbR_twheel_cacheRKtadd_msg((RAs7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt__init__GsJ ) cC@s�ddlm}t||�\} } }| jd�rFt| �}nd}|| |d|dtd|| �d|d|d |r�|nid |�} |dk r�|| _n| S(Ni(tLinksfile:RLRMRORKRbR_Rd(t pip.indexRgtparse_editablet startswithRR6tTrueR:(tclsteditable_reqRJtdefault_vcsRbR_RdRKRgtnameturltextras_overrideRLtres((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt from_editable�s cC@s�ddlm}t|�r%d}nd}||krm|j|d�\}} | j�} | ssd} qsnd} |j�}d} tjjtjj |��}d}d} t|�r�||�}n�t |�\}} tjj|�rCtjj|ks|j d�rCt|�s.td|��n|t|��}nFt|�r�tjj|�sttjd|�n|t|��}n|r |jd kr�tjd |j�r�|ttjjtjj |j����}n|jrt|j�}d|j|jf} q&|j} n|} |r2|ni}|| |d|d | d|d|d|d|�}| r�td| �j |_ n|S(s�Creates an InstallRequirement from a name, which might be a requirement, directory containing 'setup.py', filename, or URL. i(Rgs; 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==%sRORRRbR_RdRKtplaceholderN(!RhRgRtsplittstripR6RDR8tnormpathtabspathR<tisdirRERjRRRRtisfiletloggertwarningtschemeR4tsearchRptis_wheelR3tfilenameRotversiontegg_fragmentR R:(RlRoRJRbR_RdRKRgt marker_sepRRRAR8ROR:tptwheelRr((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt from_line�s^ ! $- cC@s�|jr;t|j�}|jrV|d|jj7}qVn|jrP|jjnd}|jdk r�|dt|jj�7}n|jr�t |jt j�r�|j}n|jj�}|r�|d|7}q�n|S(Ns from %ss in %ss (from %s)( RAtstrRORpR6RTRtlocationRJRBRRCt from_path(RctsRJ((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__R�RM(Rc((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�|_||jkr�tjd|j�q�ndS(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(ROR6tfind_requirementRNtcached_wheelRoR~tdebug(Rctfindertupgradetrequire_hashestold_link((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt populate_link�s cC@s |jjS(N(RAt specifier(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR�scC@s4|j}t|�dko3tt|��jdkS(s�Return 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===(R�tlentnexttitertoperator(RcR((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt is_pinneds cC@sy|jdkrdSt|j�}|jrut|jtj�rL|j}n|jj�}|ru|d|7}qun|S(Ns->(RAR6R�RJRBRRCR�(RcR�RJ((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR�!s cC@s�|jdk r|jS|jdkrJtjdd�|_||_|jS|jre|jj�}n |j}t j j|�s�tj d|�t|�nt j j||�S(Ns-buildspip-sCreating directory %s(RVR6RAttempfiletmkdtempRWRMRotlowerRDR8texistsR~R�R%tjoin(Rct build_dirRo((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytbuild_location.s cC@s�|jdk rdS|jdk s(t�|js7t�|jsFt�|j}d|_|j|j�}tjj |�r�t dt|���ntj d|t|�t|��tj||�||_d|_||_d|_dS(s�Move 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(RLR6RAtAssertionErrorRVRWR�RDR8R�RRR~R�tshutiltmoveRS(Rctold_locationtnew_location((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt_correct_build_locationDs( cC@s,|jdkrdSttj|jj��S(N(RAR6R Rt safe_nameRo(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRodscC@s+tjj|j|jr$|jjp'd�S(Nt(RDR8R�RLROtsubdirectory_fragment(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytsetup_py_dirjs cC@s�|jstd|��yddl}WnHtk rstd�dkrTd}ntj�}td|��nXt j j|jd�}t jr�t|t j�r�|jtj��}n|S(NsNo source dir for %sit setuptoolssPlease install setuptools.sWCould not import setuptools which is required to install from a source distribution. %sssetup.py(RLR�R�tImportErrorR'R6RHRIRRDR8R�R�RtPY2RBt text_typetencodetsystgetfilesystemencoding(RcR�Retsetup_py((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR�ps cC@s�|jst�|jr4tjd|j|j�ntjd|j|j�t���t|j}t j d|g}|jr�|dg7}n|dg}|jr�g}n.t jj|jd�}t|�ddg}t||d|jd td tjdd�WdQX|js�ttj|j�d �t�rBd}nd}tdj|j�d||j�d g��|_|j�nbt|j�d�}t|jj�|kr�tjd|j|j||j�t|�|_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_infospip-egg-infos --egg-basetcwdtshow_stdoutt command_leveltcommand_descspython setup.py egg_infoRs==s===R�tNamesuRunning setup.py (path:%s) egg_info for package %s produced metadata for project name %s. Fix your #egg=%s fragments.( RLR�RoR~R�R�ROR-R.R�t executableRbRMRDR8R�R�R&R"R[tloggingtDEBUGRARBRt parse_versiontpkg_infoRR R�R R(Rctscripttbase_cmdtegg_info_cmdtegg_base_optiontegg_info_dirR@t metadata_name((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytrun_egg_info�sV cC@sy|jdk r5|jj|�s%dS|jj|�S|jsDt�|j|�}tjj |�sidSt |�}|S(N(RTR6thas_metadatatget_metadataRLR�t egg_info_pathRDR8R�R#(RcR�tdata((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt egg_info_data�sc C@s<|jdkr&|jr$|j}ntjj|jd�}tj|�}|jr�g}xtj |�D]\}}}x-t jD]"}||kr�|j|�q�q�Wx�t |�D]�}tjjtjj||dd��s tjjtjj||dd��r|j|�q�|dks2|dkr�|j|�q�q�W|jg|D]}tjj||�^qS�qjWg|D]}|jd�r�|^q�}n|s�td ||f��n|s�td ||f��t|�d kr|jdd��ntjj||d �|_ntjj|j|�S(Nspip-egg-infotbintpythontScriptss Python.exettestttestss .egg-infos$No files/directories in %s (from %s)itkeycS@s8|jtjj�tjjr3|jtjj�p6dS(Ni(tcountRDR8REtaltsep(tx((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt<lambda>si(RSR6RMRLRDR8R�R�tlistdirtwalkR1tdirnamestremovetlistR�textendtendswithRR�R�tsort( RcR�tbaset filenamestroottdirstfilestdirtf((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR��sB *+ cC@s]t�}|jd�}|s@tjdt|jd���n|j|pOd�|j�S(NsPKG-INFOsNo PKG-INFO file found in %sR�(RR�R~RRR�tfeedtclose(RcR�R�((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR�s s \[(.*?)\]cC@s t|j�S(N(R'Ro(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytinstalled_versionscC@sy|jst�|j�d}|jjrV||jjkrVtjd||j�ntjdt |j�||�dS(NR�s'Requested %s, but installing version %ss;Source in %s has version %s, which satisfies requirement %s( RLR�R�RAR�R~RR�R�R(RcR�((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytassert_source_matches_versions cC@s|js tjd|j�dS|js/t�|js>t�|jjdkrTdSd|jjks|td|jj��|js�dS|jjj dd�\}}t j|�}|r�||jj�}|r�|j|j�q|j |j�ndstd|j|f��dS(Ns>Cannot update repository at %s; repository location is unknownRvt+sbad url: %riis+Unexpected version control type (in %s): %s(ROR~R�RLRMR�R�RpRXRxR1tget_backendtobtaintexport(RcR�tvc_typeRptbackendtvcs_backend((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytupdate_editable)s, ( cC@s|j�s%td|jf��n|jp4|j}t|j�}t|�s{tj d|j |tj�t |_dS|t�kr�tj d|j |�t |_dSt|�}t|�}djtj|j��}|jo�tjj|j�}t|jdd�}|r�|jjd�r�|jj|�r�|j|j�|jd�r�x'|j d�j!�D]7} tjj"tjj#|j| ��} |j| �qsWq;|jd �r;|jd �r�|j d �}ng}x�g|j d �j!�D]}|r||kr|^qD]^} tjj#|j| �} |j| �|j| d�|j| d�|j| d �q"Wq;n�|r�t$j%dj|j�t&�|j|�n|jjd�r2|j|j�tjj'|j�d}tjj#tjj(|j�d�}|j)|d|�n |r�t*|d��%}tjj+|j,�j-��}WdQX||jks�t.d||j|jf��|j|�tjj#tjj(|�d�}|j)||j�n[|r%|jjd�r%x@t/j0j1|�D]} |j| �qWntj2d||j�|jd�r�|j3d�r�xz|j4d�D]f}t5|�r�t6}nt7}|jtjj#||��t8ri|jtjj#||�d�qiqiWn|jd�rt9j:r�i}n id d6}t;j<|�}|j=t>|j?d���|j@d�rx�|jAd�D]�\}}t5|�rot6}nt7}|jtjj#||��t8rN|jtjj#||�d�|jtjj#||�d�|jtjj#||�d�qNqNWqn|jB|�||_CdS(!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.pyos�Uninstalling 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./trs;Egg-link %s does not match installed location of %s (at %s)s .dist-infos)Not sure how to uninstall: %s - Check: %stscriptss.batsentry_points.txtR>t delimiterstconsole_scriptss.exes .exe.manifests -script.py(R>(Dtcheck_if_existsRRoRTRUR(R�R)R~tinfoR�R�tprefixRkR\RR0R!tformatRtto_filenametproject_nameR�RDR8R�tgetattrt _providerR6R�taddR�R�t splitlinesRzR�twarningstwarnR,Rxtdirnametadd_pthtopentnormcasetreadlineRyR�tpipR�tuninstallation_pathsR�tmetadata_isdirtmetadata_listdirRRRRRR�RtSafeConfigParsertreadfpR$tget_metadata_linesthas_sectiontitemsR�RZ(Rctauto_confirmtdistt dist_pathtpaths_to_removetdevelop_egg_linktdevelop_egg_link_egg_infotegg_info_existstdistutils_egg_infotinstalled_fileR8t namespacesR�t top_level_pkgteasy_install_eggteasy_install_pthtfhtlink_pointerR�tbin_dirR_tconfigRotvalue((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt uninstallFs� " $ * ' cC@s0|jr|jj�ntjd|j�dS(Ns'Can't rollback %s, nothing uninstalled.(RZtrollbackR~terrorRo(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytrollback_uninstall�s cC@s<|jr|jj�n|js8tjd|j�ndS(Ns%Can't commit %s, nothing uninstalled.(RZtcommitR\R~R'Ro(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytcommit_uninstall�s cC@s�|jst�t}d|j|j�df}tjj||�}tjj|�rt dt |�d�}|dkr�t}q|dkr�tj dt |��tj|�q|dkrt|�}tj dt |�t |��tj||�qn|r�tj|dtjd t�}tjjtjj|j��}xtj|�D]�\} } }d | kr�| jd �nxl| D]d}tjj| |�}|j||�} tj|jd| d�}d|_|j|d�q�Wxb|D]Z}|tkrq�ntjj| |�}|j||�} |j||jd| �q�Wq[W|j�tj dt |��ndS(Ns %s-%s.zipR�s/The file %s exists. (i)gnore, (w)ipe, (b)ackup titwtbsDeleting %ssBacking up %s to %st allowZip64spip-egg-infot/i�iR�sSaved %s(R+R,R-i�(!RLR�RkRoR�RDR8R�R�RRR[R~RR�RR�R�tzipfiletZipFiletZIP_DEFLATEDRR{R�R�t_clean_zip_nametZipInfot external_attrtwritestrRtwriteR�R�(RcR�tcreate_archivetarchive_nametarchive_pathtresponset dest_filetzipR�tdirpathR�R�RRotzipdirR�((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytarchive�sT ! # cC@s_|j|tjj�s/td||f��|t|�d}|jtjjd�}|S(Ns$name %r doesn't start with prefix %riR/(RjRDR8RER�R�treplace(RcRoR�((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR3's cC@s*|jdk r"t|j�j�StSdS(N(RRR6RtevaluateRk(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt match_markers/sc@s|jr#|j||d|�dS|jr�tjj|j�}tjj||j�|j |jd�d|d|�t |_dS||jj dg�7}||jj dg�7}|jr�t|�dg}ntjdd�}tjj|d �}z�tjd g} | jd�| jt|j�| t|�dd |g7} |jsg| dg7} n�dk r�| d�g7} n|dk r�| d|g7} n|jr�| dg7} n | dg7} t�rdtj�} | dtjjtj dd| |j�g7} nd|jf}t!|��:}t"��(t#| |d|j$dt%d|�WdQXWdQXtjj&|�s�t'j(d|�dSt |_|jr�dS�fd�} t)|��]}xS|D]7}tjj*|�}|j+d�r�| |�}Pq�q�Wt'j,d|�dSWdQXg}t)|��k}xa|D]Y}|j-�}tjj.|�rv|tjj/7}n|jtjj0| |�|��q?WWdQXtjj|d�}t)|d ��!}|j1d!j|�d!�WdQXWdtjj&|�rtj2|�nt3|�XdS("NR�R�tstrip_file_prefixtglobal_optionstinstall_optionss --no-user-cfgs-recordspip-sinstall-record.txts-us-ctinstalls--records#--single-version-externally-manageds--roots--prefixs --compiles--no-compileR�s--install-headerstincludetsitesRunning setup.py install for %sR�R�tspinnersRecord file %s not foundc@s4�dkstjj|�r#|St�|�SdS(N(R6RDR8tisabsR(R8(R�(s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytprepend_root�ss .egg-infos;Could not find .egg-info directory in install record for %ssinstalled-files.txtR,s (4RMtinstall_editableR�R R�t wheel_versionRLtcheck_compatibilityRoR2RkRYR_tgetRbR�R�R�RDR8R�R�R�tappendR.R�RQR6R`RRtget_python_versionR�R/R-R"R�R[R�R~R�RRR�RRyR|REtrelpathR7R�R(RcRFRER�R�RDR�t temp_locationtrecord_filenametinstall_argst py_ver_strtmsgRJRLR�tlinet directoryR�t new_linesR�tinst_files_path((R�s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRG5s� $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(RLR6R�(Rct parent_dir((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytensure_has_source_dir�s cC@s�|jrPtjjtjj|jt��rPtjd|j�t|j�nd|_|j r�tjj|j �r�t|j �nd|_ dS(sVRemove the source files from this requirement, if they are marked for deletionsRemoving source in %sN(RLRDR8R�R�RR~R�RR6RV(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytremove_temporary_source�s c C@s�tjd|j�|jr2t|�dg}n|r]dj|�g}t|�|}nt��Ottj dt |jgt|�ddgt|�d|jdt �WdQXt|_dS( NsRunning setup.py develop for %ss --no-user-cfgs--prefix={0}s-ctdevelops --no-depsR�R�(R~R�RoRbR�R�R-R"R�R�R.R�R�R[RkRY(RcRFRER�tprefix_param((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRM�s * cC@s�|jdkrtSy:tt|j��}d|_tjt|��|_Wn�tj k rdtStj k r�tj|jj�}|jr�t |�r�||_q�t�r�t|�r�td|j|jf��q�q�||_nXtS(s�Find 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(RAR6R[R R�tmarkerRtget_distributionRTtDistributionNotFoundtVersionConflictRoR]RRURR RR�R�Rk(Rct no_markert existing_dist((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR��s* cC@s|jo|jjS(N(ROR�(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR�scC@sPt|j|j|d|jd|jd|d|d|jd|jd|�dS(NtuserthomeR�R�R`RbRD(R2RoRAR]R^R`Rb(RctwheeldirR�R�RD((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR2s cC@s�|jd�jd�}tjj|�}tj||�}tjjtjj|��d}tj tjj|�d|d|�S(sAReturn a pkg_resources.Distribution built from self.egg_info_pathR�R/iR�tmetadata( R�trstripRDR8RRtPathMetadatatsplitexttbasenametDistribution(RcR�tbase_dirRkt dist_name((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pytget_dists"cC@st|jjdi��S(s�Return whether any known-good hashes are specified as options. These activate --require-hashes mode; hashes specified as part of a URL do not. thashes(tboolR_RP(Rc((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pythas_hash_optionsscC@sn|jjdi�j�}|r*|jn|j}|rd|jrd|j|jg�j|j�nt |�S(s�Return 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() Rt( R_RPtcopyRORPthasht setdefaultt hash_nameRQR*(Rcttrust_internettgood_hashesRO((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRt%s "N((/R�t __module__R6R[RkRftclassmethodRsR�R�R�R�tpropertyR�R�R�R�R�RoR�R�R�R�R�R�R4tcompilet_requirements_section_reR�R�R�R%R(R*R@R3RCRGR^R_RMR�R�R2RsRvRt(((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyR=Es\ 8 J = 6 � . r # cC@s.tjd|�}|r*|jd�}n|S(s2 Strip req postfix ( -dev, 0.2, etc ) s^(.*?)(?:-dev|-\d.*)$i(R4R�R7(RAR5((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt_strip_postfix;scC@s�g|jdd�djd�D]}|r |^q }d}t|�dkrm|ddkrm|d}n/t|�dkr�|dd kr�|d}n|r�tjdtdd�n|S(Nt#iiR/ii����ttagstbranchesttagtbranchi����i����ttrunks�Sniffing the requirement name from the url is deprecated and will be removed in the future. Please specify an #egg segment instead.t stacklevel(R�R�R�sbranch(RxR6R�RRR+(RpR�tpartsRA((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt_build_req_from_urlGs8" " cC@s:ddlm}|}d}tjd|�}|rU|jd�}|jd�}n|}tjj|�r�tjj tjj |d��s�td|��nt|�}n|j �jd�r||�j}|r�||td |�jfS||dfSnx;tD]3}|j �jd |�rd||f}PqqWd|krx|re|d|}qxtd |��n|jdd�dj �} tj| �s�d|dj gtjD]} | jd^q��d}t|��n||�j}|st|�}n|s'td|��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(Rgs^(.+)(\[[^\]]+\])$iissetup.pys;Directory %r is not installable. File 'setup.py' not found.sfile:Rws%s:s%s+%sR�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@--editable=%s is not the right format; it must have #egg=PackageN(RhRgR6R4R5R7RDR8R|R�R�RRR�RjR�R R:R1RxR�tbackendsRoR�R�(RmRnRgRpR:R9t url_no_extrastpackage_nametversion_controlR�R�t error_message((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyRiYsX! 1 (dt __future__RR�RDR4R�R�R�RHRR0t distutilsRtdistutils.utilRtemail.parserRtpip._vendorRRtpip._vendor.packagingRtpip._vendor.packaging.markersRt"pip._vendor.packaging.requirementsRR tpip._vendor.packaging.utilsR tpip._vendor.packaging.versionRtpip._vendor.six.movesRt pip.wheelR t pip.compatR RRtpip.downloadRRRRtpip.exceptionsRRt pip.locationsRRRRt pip.utilsRRRRRRR R!R"R#R$R%R&R'R(R)tpip.utils.hashesR*tpip.utils.deprecationR+R,tpip.utils.loggingR-tpip.utils.setuptools_buildR.tpip.utils.uiR/tpip.req.req_uninstallR0tpip.vcsR1R2R3t getLoggerR�R~t Specifiert _operatorstkeysRGR<tobjectR=R�R�R6Ri(((s7/usr/lib/python2.7/site-packages/pip/req/req_install.pyt<module>sV""j ����