Your IP : 18.226.214.1


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyc

�
�Rec@@s�ddlmZddlZddlZddlZddlZddlZddlZddl	m
Zddlm
Z
ddlmZddlmZddlmZddlmZmZmZdd	lmZmZmZdd
lmZddlmZerGddl Z ddl!m"Z"m#Z#m$Z$m%Z%dd
l&m'Z'ndZ(ej)e*�Z+d�Z,de-fd��YZ.d�Z/d�Z0dS(i(tabsolute_importN(tversion(t
ensure_binary(t
LinkCollector(t
PackageFinder(tSelectionPreferences(tadjacent_tmp_filetcheck_path_ownertreplace(t
ensure_dirtget_distributiontget_installed_version(t
get_installer(tMYPY_CHECK_RUNNING(tAnytDicttTexttUnion(t
PipSessions%Y-%m-%dT%H:%M:%SZcC@s%t|�}tj|�j�}|S(N(Rthashlibtsha224t	hexdigest(tkeyt	key_bytestname((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyt_get_statefile_name*stSelfCheckStatecB@s)eZd�Zed��Zd�ZRS(cC@s�i|_d|_|r�tjj|dt|j��|_y.t|j��}t	j
|�|_WdQXWq�ttt
fk
r�q�XndS(Nt	selfcheck(tstatetNonetstatefile_pathtostpathtjoinRRtopentjsontloadtIOErrort
ValueErrortKeyError(tselft	cache_dirt	statefile((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyt__init__2s			cC@stjS(N(tsystprefix(R(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyRDscC@s�|js
dSttjj|j��s,dSttjj|j��i|jd6|jt�d6|d6}t	j
|dtdd�}t|j��}|j
t|��WdQXyt|j|j�Wntk
r�nXdS(	NRt
last_checktpypi_versiont	sort_keyst
separatorst,t:(R2R3(RRRR tdirnameR	RtstrftimetSELFCHECK_DATE_FMTR#tdumpstTrueRtwriteRRRtOSError(R(R/tcurrent_timeRttexttf((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pytsaveIs 	


(t__name__t
__module__R+tpropertyRR>(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyR1s	cC@s&t|�}|stSdt|�kS(s�Checks whether pkg was installed by pip

    This is used not to display the upgrade message when pip is in fact
    installed by system package manager, such as dnf on Fedora.
    tpip(R
tFalseR(tpkgtdist((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pytwas_installed_by_pipmscC@s�td�}|sdStj|�}d}y�td|j�}tjj�}d|jkr�d|jkr�tjj	|jdt
�}||j�dkr�|jd}q�n|dkrJtj
|d	|d
t�}tdtdt�}	tj
d
|d|	�}
|
jd�j}|dkr(dSt|j�}|j||�ntj|�}||ko�|j|jko�td�}
|
s�dSdjtj�}tjd|||�Wn$tk
r�tjddt�nXdS(s�Check for an update for pip.

    Limit the frequency of checks to once per week. State is stored either in
    the active virtualenv or in the user's USER_CACHE_DIR keyed off the prefix
    of the pip script path.
    RBNR)R.R/iii<toptionstsuppress_no_indextallow_yankedtallow_all_prereleasestlink_collectortselection_prefss	{} -m pips�You are using pip version %s; however, version %s is available.
You should consider upgrading via the '%s install --upgrade pip' command.s5There was an error checking the latest version of piptexc_infoi�i`'i�:	( Rtpackaging_versiontparseRRR)tdatetimetutcnowRtstrptimeR6t
total_secondsRtcreateR8RRCRtfind_best_candidatetbest_candidatetstrRR>tbase_versionRFtformatR,t
executabletloggertwarningt	Exceptiontdebug(tsessionRGtinstalled_versiontpip_versionR/RR;R.RKRLtfinderRVtremote_versiontlocal_version_is_oldertpip_cmd((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pytpip_self_version_checkzsX	
					
(1t
__future__RRPRR#tloggingtos.pathRR,tpip._vendor.packagingRRNtpip._vendor.sixRtpip._internal.index.collectorRt"pip._internal.index.package_finderRt$pip._internal.models.selection_prefsRtpip._internal.utils.filesystemRRRtpip._internal.utils.miscR	R
Rtpip._internal.utils.packagingRtpip._internal.utils.typingR
toptparsettypingRRRRtpip._internal.network.sessionRR6t	getLoggerR?R[RtobjectRRFRf(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/self_outdated_check.pyt<module>s2"	<	

?>