7fdZddlZddlZddlZddlmZddlmZmZm Z ddl m Z ddl m Z ddlmZer ddlmZdd lmZejeZd e d fd ZGd deZddded dfdZGdde eZdS)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)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.3.5/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/index_command.py_create_truststore_ssl_contextrs '!! 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(). r NcVtd|_dS)N)super__init___session)self __class__s rr$zSessionCommandMixin.__init__7s$ 04 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_sessionIsE =  ..t/B/B7/K/KLLDM=,,,}r(retriestimeoutcHddlm}|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_|S)Nrr z legacy-certszhttp-v2)cacher: trusted_hostsr2 ssl_context)httphttpsF)pip._internal.network.sessionr cache_dirospathisabsdeprecated_features_enabledrjoinr:r>r5certverify client_certr;proxyproxies trust_envno_inputauth promptingkeyring_provider)r&r)r:r;r rCr?sessions rr8z"SessionCommandMixin._build_sessionSs] =<<<<<% 8 i 8 8888 !D D D8::KKK*8AK"',,y)444t&2GG!/++G44#     < *$\GN   /".GL ? Rg R)0) > > > > > ?s6-A<A/" A</A33A<6A37A<rrs 0000000000222222AAAAAA9888888  8 $ $(>,QQQQQ-QQQh\Ft ?????!4?????r(