$81 GRAYBYTE WORDPRESS FILE MANAGER $94

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/

HOME
Current File : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal//cache.pyc
�
�Rec@s�dZddlZddlZddlZddlZddlmZmZddlm	Z	ddl
mZddlm
Z
ddlmZddlmZmZdd	lmZdd
lmZerddlmZmZmZmZmZddlmZdd
lmZnej e!�Z"d�Z#de$fd��YZ%de%fd��YZ&de&fd��YZ'de$fd��YZ(de%fd��YZ)dS(sCache Management
i����N(tinterpreter_nametinterpreter_version(tcanonicalize_name(tInvalidWheelFilename(tLink(tWheel(t
TempDirectoryt
tempdir_kinds(tMYPY_CHECK_RUNNING(tpath_to_url(tOptionaltSettListtAnytDict(tTag(t
FormatControlcCs=tj|dtdddt�}tj|jd��j�S(s'Return a stable sha224 of a dictionary.t	sort_keyst
separatorst,t:tensure_asciitascii(RR(tjsontdumpstTruethashlibtsha224tencodet	hexdigest(tdts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyt
_hash_dicts!tCachecBsMeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	RS(s�An abstract class - provides cache directories for data from links


        :param cache_dir: The root of the cache.
        :param format_control: An object of FormatControl class to limit
            binaries being read from the cache.
        :param allowed_formats: which formats of files the cache should store.
            ('binary' and 'source' are the only allowed values)
    cCs�tt|�j�|s2tjj|�s2t�|p;d|_||_	||_
ddh}|j
j|�|ks}t�dS(Ntsourcetbinary(tsuperR!t__init__tostpathtisabstAssertionErrortNonet	cache_dirtformat_controltallowed_formatstunion(tselfR+R,R-t_valid_formats((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyR%/s		cCs�|jg}|jdk	rO|jdk	rO|jdj|j|jg��ndj|�}tj|j��j	�}|d |dd!|dd!|dg}|S(s�Get parts of part that must be os.path.joined with cache_dir

        Legacy cache key (pip < 20) for compatibility with older caches.
        t=t#iiiN(
turl_without_fragmentt	hash_nameR*thashtappendtjoinRRRR(R/tlinkt	key_partstkey_urlthashedtparts((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyt_get_cache_path_parts_legacy:s
%(cCs�i|jd6}|jdk	rA|jdk	rA|j||j<n|jrZ|j|d<nt�|d<t�|d<t|�}|d |dd!|dd!|dg}|S(	sEGet parts of part that must be os.path.joined with cache_dir
        turltsubdirectoryRRiiiN(R3R4R*R5tsubdirectory_fragmentRRR (R/R8R9R;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/cache.pyt_get_cache_path_partsVs	

(c	Cs�|jp|p|}|r"gS|jj|�}|jj|�sJgSg}|j|�}tjj|�r�x-tj	|�D]}|j
||f�q�Wn|j|�}tjj|�r�x-tj	|�D]}|j
||f�q�Wn|S(N(R+R,tget_allowed_formatsR-tintersectiontget_path_for_linkR&R'tisdirtlistdirR6tget_path_for_link_legacy(	R/R8tcanonical_package_namet
can_not_cachetformatst
candidatesR't	candidatetlegacy_path((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyt_get_candidatesys&
		cCs
t��dS(N(tNotImplementedError(R/R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRG�scCs
t��dS(s>Return a directory to store cached items in for link.
        N(RO(R/R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRD�scCs
t��dS(saReturns a link to a cached item if it exists, otherwise returns the
        passed link.
        N(RO(R/R8tpackage_nametsupported_tags((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pytget�s
(
t__name__t
__module__t__doc__R%R=RARNRGRDRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyR!$s				#			tSimpleWheelCachecBs2eZdZd�Zd�Zd�Zd�ZRS(s+A cache of wheels for future installs.
    cCs#tt|�j||dh�dS(NR#(R$RVR%(R/R+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/cache.pyR%�scCs7|j|�}|jst�tjj|jd|�S(Ntwheels(R=R+R)R&R'R7(R/R8R<((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRG�scCs7|j|�}|jst�tjj|jd|�S(s�Return a directory to store cached wheels for link

        Because there are M wheels for any one sdist, we provide a directory
        to cache them in, and then consult that directory when looking up
        cache hits.

        We only insert things into the cache if they have plausible version
        numbers, so that we don't contaminate the cache with things that were
        not unique. E.g. ./package might have dozens of installs done for it
        and build a version of 0.0...and if we built and cached a wheel, we'd
        end up using the same wheel even if the source has been edited.

        :param link: The link of the sdist for which this will cache wheels.
        RW(RAR+R)R&R'R7(R/R8R<((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRD�sc
Cs	g}|s|St|�}x�|j||�D]�\}}yt|�}Wntk
raq/nXt|j�|kr�tjd|||�q/n|j|�s�q/n|j|j	|�||f�q/W|s�|St
|�\}	}}ttt
jj||���S(NsWIgnoring cached wheel %s for %s as it does not match the expected distribution name %s.(RRNRRtnametloggertdebugt	supportedR6tsupport_index_mintminRR	R&R'R7(
R/R8RPRQRKRHt
wheel_namet	wheel_dirtwheelt_((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRR�s2	

(RSRTRUR%RGRDRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRV�s
			tEphemWheelCachecBseZdZd�ZRS(sGA SimpleWheelCache that creates it's own temporary cache directory
    cCs>tdtjdt�|_tt|�j|jj|�dS(Ntkindtglobally_managed(	RRtEPHEM_WHEEL_CACHERt	_temp_dirR$RbR%R'(R/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/cache.pyR%s
	(RSRTRUR%(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRb�st
CacheEntrycBseZd�ZRS(cCs||_||_dS(N(R8t
persistent(R/R8Rh((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyR%s	(RSRTR%(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRgst
WheelCachecBsDeZdZd�Zd�Zd�Zd�Zd�Zd�ZRS(s�Wraps EphemWheelCache and SimpleWheelCache into a single Cache

    This Cache allows for gracefully degradation, using the ephem wheel cache
    when a certain link is not found in the simple wheel cache first.
    cCsDtt|�j||dh�t||�|_t|�|_dS(NR#(R$RiR%RVt_wheel_cacheRbt_ephem_cache(R/R+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/cache.pyR%scCs|jj|�S(N(RjRG(R/R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRG'scCs|jj|�S(N(RjRD(R/R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRD+scCs|jj|�S(N(RkRD(R/R8((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pytget_ephem_path_for_link/scCs,|j|||�}|dkr%|S|jS(N(tget_cache_entryR*R8(R/R8RPRQtcache_entry((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRR3scCs~|jjd|d|d|�}||k	r=t|dt�S|jjd|d|d|�}||k	rzt|dt�SdS(s�Returns a CacheEntry with a link to a cached item if it exists or
        None. The cache entry indicates if the item was found in the persistent
        or ephemeral cache.
        R8RPRQRhN(RjRRRgRRktFalseR*(R/R8RPRQtretval((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRm?s		(	RSRTRUR%RGRDRlRRRm(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyRis					(*RURRtloggingR&tpip._vendor.packaging.tagsRRtpip._vendor.packaging.utilsRtpip._internal.exceptionsRtpip._internal.models.linkRtpip._internal.models.wheelRtpip._internal.utils.temp_dirRRtpip._internal.utils.typingRtpip._internal.utils.urlsR	ttypingR
RRR
RRt#pip._internal.models.format_controlRt	getLoggerRSRYR tobjectR!RVRbRgRi(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cache.pyt<module>s.(	�R


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.49 PM
root / linksafe
0755
cli
--
3 Mar 2024 10.49 PM
root / linksafe
0755
commands
--
3 Mar 2024 10.49 PM
root / linksafe
0755
distributions
--
3 Mar 2024 10.49 PM
root / linksafe
0755
index
--
3 Mar 2024 10.49 PM
root / linksafe
0755
models
--
3 Mar 2024 10.49 PM
root / linksafe
0755
network
--
3 Mar 2024 10.49 PM
root / linksafe
0755
operations
--
3 Mar 2024 10.49 PM
root / linksafe
0755
req
--
3 Mar 2024 10.49 PM
root / linksafe
0755
resolution
--
3 Mar 2024 10.49 PM
root / linksafe
0755
utils
--
3 Mar 2024 10.49 PM
root / linksafe
0755
vcs
--
3 Mar 2024 10.49 PM
root / linksafe
0755
__init__.py
0.497 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
__init__.pyc
0.963 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
build_env.py
7.898 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
build_env.pyc
10.253 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cache.py
11.962 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
cache.pyc
12.563 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
configuration.py
13.784 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
configuration.pyc
14.875 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
exceptions.py
12.341 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
exceptions.pyc
21.43 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
locations.py
6.574 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
locations.pyc
5.696 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
main.py
0.427 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
main.pyc
0.861 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pyproject.py
7.227 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
pyproject.pyc
4.717 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
self_outdated_check.py
6.62 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
self_outdated_check.pyc
6.158 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel_builder.py
9.299 KB
13 Nov 2023 9.11 PM
root / linksafe
0644
wheel_builder.pyc
9.044 KB
13 Nov 2023 9.11 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF