Viewing File: /opt/alt/python311/lib64/python3.11/ensurepip/__pycache__/__init__.cpython-311.pyc



 f&:ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddgZdZ
ejddZdaiZd	Zed
ZedZd
edfdedfgZd
ZdZdaddZdZdZddddddddZddddddddZdddZddZdS)N)	resourcesversion	bootstrap)
setuptoolspipPackage)r
wheel_name
wheel_pathz'/opt/alt/python311/share/python-wheels/ctjtd|}it
|<dD]}d||}t
j|D]T}|t|t|}tj|t
||<Uttt
|tjj
S)Nz{}-)z-py2.py3-none-any.whlz-py3-none-any.whlz{}*{})key)ospathjoin_WHEEL_PKG_DIRformat_wheelsgloblenbasenamestrmax	distutilsrLooseVersion)pkgprefixsuffixpatternrversion_strs      9/opt/alt/python311/lib64/python3.11/ensurepip/__init__.py_get_most_recent_wheel_versionr s
W\\.%,,s*;*;
<
<FGCL>??..00Ig&&	?	?Ds6{{CKK<78K(*(8(8(>(>GCL%%	?s73<Y%6%CDDDEEErrpy3ci}	tj|}n#t$rd}YnwxYwt|}|D]}|dst
D]}|dz}||rn?||dd}tj	
||}t|d|||<|S)Nz.whl-r)r
listdirOSErrorsortedendswith_PACKAGE_NAMES
startswithremoveprefix	partitionrr_Package)rpackages	filenamesfilenamenamerrr
s        r_find_packagesr3/sHJt$$					y!!I==  ((	"		DCZF""6**


''//99#>>qAW\\$11
!'4<<Os((cttSi}tD]-\}}}t||}t||d||<.tr6ttt
fdtDr}|a|S)Nc3 K|]}|vV	dSNr$).0r2dir_packagess  r	<genexpr>z _get_packages.<locals>.<genexpr>Xs(??t|#??????r!)	_PACKAGES	_PROJECTSrr.rr3allr*)r/r2rpy_tagr	r8s     @r
_get_packagesr>LsH!*==gvdmG,
!':t<<$%n55?????????	$#HIOr!cd|pgd|d}tjddd|g}tjjr|ddtj|d	
jS)Nz$
import runpy
import sys
sys.path = z + sys.path
sys.argv[1:] = z>
runpy.run_module("pip", run_name="__main__", alter_sys=True)
z-Wzignore::DeprecationWarningz-cz-IT)check)sys
executableflagsisolatedinsert
subprocessrun
returncode)argsadditional_pathscodecmds    r_run_piprN_s

"	D	$Cy

1d>#T***55r!c4tdjS)zA
    Returns a string specifying the bundled version of pip.
    r)r>rr$r!rrrys??5!))r!cdtjD}|D]}tj|=tjtjd<dS)Nc<g|]}|d|S)PIP_)r+)r7ks  r
<listcomp>z7_disable_pip_configuration_settings.<locals>.<listcomp>s)DDDAq||F/C/CDaDDDr!PIP_CONFIG_FILE)r
environdevnull)keys_to_removerSs  r#_disable_pip_configuration_settingsrYsKEDDDDN
JqMM%'JBJ !!!r!Frootupgradeuser
altinstalldefault_pip	verbosityc0t||||||dS)z
    Bootstrap pip into the current Python installation (or the given root
    directory).

    Note that calling this function will alter both sys.path and os.environ.
    rZN)
_bootstraprZs      rrrs3D'$+"$$$$$$r!c	|r|rtdtjd|t|rdtjd<n|sdtjd<t
j5}g}tD]\}}	}
t||	}tj
t|}tj
||}
t|d5}t|
d5}||dddn#1swxYwYdddn#1swxYwY||
dd	d
d|g}|r|d|gz
}|r|d
gz
}|r|dgz
}|r|dd|zzgz
}t#g|t$|cdddS#1swxYwYdS)z
    Bootstrap pip into the current Python installation (or the given root
    directory). Returns pip command status code.

    Note that calling this function will alter both sys.path and os.environ.
    z.Cannot use altinstall and default_pip togetherzensurepip.bootstrapr^ENSUREPIP_OPTIONSinstallrbwbNz--no-cache-dirz
--no-indexz--find-links--root	--upgrade--userr%v)
ValueErrorrBauditrYr
rVtempfileTemporaryDirectoryr;rrrropenwritereadappendrNr*)r[r\r]r^r_r`tmpdirrKprojectrr=r	filename_wheelfilename_tmpsfpfprJs                 rrbrbsKkKIJJJI#T***')))4*6
&''
4*3
&'		$	&	&D&(1	2	2$GWf )'2JW\\.*EEN7<<
;;Lnd++
)s,--)HHSXXZZ((()))))))))))))))
)
)
)
)
)
)
)
)
)
)
)
)
)
)
)
##L1111+\>6R	%Xt$$D	"[M!D	XJD	,S3?*++D0$002BCC3DDDDDDDDDDDDDDDDDDs\-A8F5%E6(D*	E*D.
.E1D.
2E5F5EF5E	AF55F9<F9)r`c>	ddl}n#t$rYdSwxYwt}|j|kr)t	d|jd|dt
jdStgd}|r|dd	|zzgz
}tg|ttS)
z~Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    rNz2ensurepip will only uninstall a matching version (z installed, z available))file)	uninstallz-yz--disable-pip-version-checkr%rk)rImportErrorr__version__printrBstderrrYrNreversedr*)r`ravailable_versionrJs    r_uninstall_helperrs




 		
+++
2/22"222:					')))>==D(sY&''6d6Xn556777s
cfddl}|d}|dddt	d|d	d
dddd
|ddddd|dddd|ddd|dddd|dddd||}t
|j|j|j	|j
|j|jS)Nrzpython -m ensurepip)progz	--versionrzpip {}z9Show the version of pip that is bundled with this Python.)actionrhelpz-vz	--verbosecountr`zDGive more output. Option is additive, and can be used up to 3 times.)rdefaultdestrz-Uri
store_trueFz8Upgrade pip and dependencies, even if already installed.)rrrrjzInstall using the user scheme.rhz=Install everything relative to this alternate root directory.)rrz--altinstallzoMake an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).z
--default-pipzqMake a default pip install, installing the unqualified pip and easy_install in addition to the versioned scripts.)r[r\r]r`r^r_)
argparseArgumentParseradd_argumentrr
parse_argsrbr[r\r]r`r^r_)argvrparserrJs    r_mainrsOOO

$
$*?
$
@
@F
		**
H	k
k
G	
-	
L
C	G	T""D
Y
Y.?$
r!r6) distutils.versionrrcollectionsr
os.pathrGrB	sysconfigrn	importlibr__all__r*
namedtupler.rrr _SETUPTOOLS_VERSION_PIP_VERSIONr;r3r>r:rNrrYrrbrrr$r!r<module>rs				



k
"&";!)"IKK;
FFF54\BB--e44&.
L% 
	: 
	66664***	/	/	/EE$$$$$UE6D6D6D6D6Dp$%88888>::::::r!
Back to Directory File Manager