kghX$dZddlZddlZddlZddlmZddlmZddlm Z m Z m Z ddl m Z ddlmZddlmZe r dd lmZdd lmZejeZed e d fd ZGddeZddded dfdZGddeeZdS)a& Contains command classes which may interact with an index / the network. Unlike its sister module, req_command, this module still uses lazy imports so commands which don't always hit the network (e.g. list w/o --outdated or --uptodate) don't need waste time importing PipSession and friends. N) lru_cache)Values) TYPE_CHECKINGListOptional)certifi)Command)CommandContextMixIn) SSLContext PipSessionreturnr ctjdkrtddS ddl}n+#t $rtdYdSwxYw ddlm}n+#t $rtdYdSwxYw| |j }| tj |S)N) z7Disabling truststore because Python version isn't 3.10+rz1Disabling truststore since ssl support is missing) truststorez5Disabling truststore because platform isn't supported)sys version_infologgerdebugssl ImportErrorwarning pip._vendorrr PROTOCOL_TLS_CLIENTload_verify_locationsrwhere)rrctxs /builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/index_command.py_create_truststore_ssl_contextr s '!! NOOOt JKKKtt******* NOOOtt    7 8 8Cgmoo... Js!3$AAA&&$B Bc eZdZdZd fd Zededeee fdZ deddfdZ d ded ee d ee ddfd Z xZS)SessionCommandMixinzE A class mixin for command classes needing _build_session(). rNcVtd|_dS)N)super__init___session)self __class__s rr%zSessionCommandMixin.__init__9s$ .2 optionscg}t|dds(t|dd}|r||t|dd}|r|||pdS)z7Return a list of index urls from user-provided options.no_indexF index_urlNextra_index_urls)getattrappendextend)clsr* index_urlsurlurlss r_get_index_urlsz#SessionCommandMixin._get_index_urls=s w E22 '';55C '!!#&&&w 2D99  $   d # # #!T!r)r c|j6||||_|jJ|jS)zGet a default-managed session.)r& enter_context_build_session)r'r*s rget_default_sessionz'SessionCommandMixin.get_default_sessionKsE =  ..t/B/B7/K/KLLDM=,,,}r)retriestimeoutc`ddlm}|j}|r!tj|sJd|jvrt}nd}||r tj|dnd||n|j |j | ||}|j r |j |_ |jr |j|_ |js|r||n|j|_|jr'|j|jd|_d|_|j|_|j |j_|j|j_|S)Nrr z legacy-certszhttp-v2)cacher; trusted_hostsr3 ssl_context)httphttpsF)pip._internal.network.sessionr cache_dirospathisabsdeprecated_features_enabledr joinr;r?r6certverify client_certr<proxyproxies trust_env pip_proxyno_inputauth promptingkeyring_provider)r'r*r;r<r rDr@sessions rr9z"SessionCommandMixin._build_sessionUsg =<<<<<% 8 i 8 8888 !D D D8::KKK*8AK"',,y)444t&2GG!/++G44#     < *$\GN   /".GL ? Rg R)0) > > > > > ?s6-A<A/" A</A33A<6A37A<rus 0000000000222222AAAAAA9888888  8 $ $ (> ,RRRRR-RRRj\Ft ?????!4?????r)