ef!LdZddlZddlZddlZddlZddlZddlZddlZddlZddl m Z ddl Z ddl m ZddlmZddlmZddlmZmZddlmZejd ejjZd Zejd d Zd Zej dZ!GddZ"dS)zWheels support.N) get_platform)Versionsys_tags)canonicalize_name)write_requirements _egg_basename)_unpack_zipfile_objz^(?P.+?)-(?P\d.*?) ((-(?P\d.*?))?-(?P.+?)-(?P.+?)-(?P.+?) )\.whl$z8__import__('pkg_resources').declare_namespace(__name__) )maxsizec2dtDS)Nc6h|]}|j|j|jfS) interpreterabiplatform.0ts p/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/wheel.py z&_get_supported_tags..%s% C C C1Q]AE1: . C C Crrrr_get_supported_tagsr s D C C C CCrctj|D])\}}}tj||}|D]X}tj||}tj|||}tj||Yt tt|D]}\} } tj|| }tj||| }tj |stj|||| =~+tj|dD]\}}}|rJtj |dS)zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)topdownN) oswalkpathrelpathjoinrenamesreversedlist enumerateexistsrmdir) src_dirdst_dirdirpathdirnames filenamessubdirfsrcdstnds runpackr1(sd(*(8(8   $9'22 ! !A',,w**C',,w22C JsC T)H"5"56677  DAq',,w**C',,w22C7>>#&&  3$$$QK )+(F(F(F$9} rc#Kddlm}||j} dV||dS#||wxYw)z* Temporarily disable info traces. r)logN) distutilsr3 set_thresholdWARN)r3saveds rdisable_info_tracesr8>sq    ch ' 'E!  %     %    s ?AczeZdZdZdZdZdZdZdZdZ e dZ e d Z e d Z d S) Wheelcttj|}|t d|z||_|D]\}}t|||dS)Nzinvalid wheel name: %r) WHEEL_NAMErrbasename ValueErrorfilename groupdictitemssetattr)selfr?matchkvs r__init__zWheel.__init__Ms27++H5566 =5@AA A  OO%%++--  DAq D!Q      rctj|jd|jd|jdS)z>List tags (py_version, abi, platform) supported by this wheel..) itertoolsproduct py_versionsplitrrrCs rtagsz Wheel.tagsUsN O ! !# & & HNN3   M   $ $   rcZtd|DdS)z2Is the wheel compatible with the current platform?c3:K|]}|tvdVdS)TN)rrs r z&Wheel.is_compatible.._s3MMa!7J7L7L2L2LT2L2L2L2LMMrF)nextrOrNs r is_compatiblezWheel.is_compatible]s)MM499;;MMMuUUUrcrt|j|j|jdkrdn t dzS)Nany)rz.egg)r project_nameversionrrrNs regg_namezWheel.egg_nameasE ! "&-5"8"8$$lnn       rc|D]c}tj|}|dr8t |t |jr|cSdtd)Nz .dist-infoz.unsupported wheel format. .dist-info not found)namelist posixpathdirnameendswithr startswithrWr>)rCzfmemberr]s r get_dist_infozWheel.get_dist_infokskkmm  F'//G -- 2CG2L2L2W2W!$"34433 IJJJrctj|j5}|||ddddS#1swxYwYdS)z"Install wheel as an egg directory.N)zipfileZipFiler?_install_as_egg)rCdestination_eggdirr`s rinstall_as_eggzWheel.install_as_eggus _T] + + 9r  !3R 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9s>AAc$|jd|j}||}d|z}tj|d}|||||||||||dS)N-z%s.dataEGG-INFO) rWrXrbrrr_convert_metadata_move_data_entries_fix_namespace_packages)rCrgr` dist_basename dist_info dist_dataegg_infos rrfzWheel._install_as_eggzs#'#4#4#4dllC &&r**  - 7<< 2J?? r#5y(KKK  2I>>> $$X/ABBBBBrc 0 ddl}fd}|d}t|d}td|cxkotdknc}|std|zt |t j||j || | d tt  fd  jD} t j|t jt j|d t j|d t!jt# | } t%5t'| ddt j|dddddS#1swxYwYdS)Nrc8tj|5}|d}t j|cdddS#1swxYwYdS)Nzutf-8) openr\rreaddecodeemailparserParserparsestr)namefpvaluerpr`s r get_metadataz-Wheel._convert_metadata..get_metadatas 48899 =R ((11|**,,55e<< = = = = = = = = = = = = = = = = = =sABBBWHEELz Wheel-Versionz1.0z2.0dev0z$unsupported wheel format version: %s)metadatac.d|_t|SN)markerstr)reqs rraw_reqz(Wheel._convert_metadata..raw_reqsCJs88Orc ri|]3}|fdt|fD4S)cg|]}|v| Srr)rrinstall_requiress r z6Wheel._convert_metadata...s/......r)maprequires)rextradistrrs r z+Wheel._convert_metadata..si    w uh(?(?@@   rMETADATAzPKG-INFO)rextras_require)attrsrrz requires.txt) pkg_resources parse_versiongetr>r rrr Distribution from_location PathMetadatar"rrextrasrename setuptoolsdictr8rget_command_obj)r`rgrprrrrwheel_metadata wheel_versionwheel_v1r setup_distrrrs` ` @@@rrlzWheel._convert_metadatas = = = = = = &g..%n&8&8&I&IJJ  ''=SSSS=;S;SSSSS UCmSTT TB 2333GLL!3Y?? )77  "//0BINN8      GT]]__ = =>>           )X&&& GLL: . . GLL: . .    ,!1-   ! " "   **:66 X~66                     s;AH  HHctj|tjd}tj|rtj|dd}tj|tj|D]}|dr3tjtj||Jtjtj||tj||tj |ttjjfddDD]}t||tjrtj dSdS)z,Move data entries to their correct location.scriptsrkz.pycc3XK|]$}tj|V%dSr)rrr)rr0rqs rrRz+Wheel._move_data_entries..sG   Y**      r)dataheaderspurelibplatlibN) rrrr$mkdirlistdirr^unlinkrr%filterr1)rgrqdist_data_scriptsegg_info_scriptsentryr+s ` rrmzWheel._move_data_entriessGLL!3Y?? GLLI>> 7>>+ , , (!w||,> IVV  H% & & &$566  >>&))Ibgll+> %5u== H& ' ' ' GN    B      / /F 6- . . . . 7>>) $ $ HY       rctj|d}tj|r0t |5}|}dddn #1swxYwY|D]}tjj|g|dR}tj|d}tj|stj|tj|sBt |d5}|tdddn #1swxYwYdSdS)Nznamespace_packages.txtrIz __init__.pyw) rrrr$rurvrMrwriteNAMESPACE_PACKAGE_INIT)rrrgnamespace_packagesr}modmod_dirmod_inits rrnzWheel._fix_namespace_packagessW\\(4LMM 7>>, - - 9()) 7R%'WWYY__%6%6" 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7) 9 9','9KCIIcNNKKK7<<??w~~g..&HW%%%w~~h//9h,,9!7888999999999999999 9 9 9 9s$'BB B>E%%E) ,E) N)__name__ __module__ __qualname__rGrOrTrYrbrhrf staticmethodrlrmrnrrrr:r:Ls      VVV   KKK999 CCC88\8t  \ : 9 9\ 9 9 9rr:)#__doc__rxrJ functoolsrr\rerd contextlibdistutils.utilrr#setuptools.extern.packaging.versionrr setuptools.extern.packaging.tagsr!setuptools.extern.packaging.utilsrsetuptools.command.egg_inforr setuptools.archive_utilr compileVERBOSErDr<r lru_cacherr1contextmanagerr8r:rrrrs   ''''''HHHHHH555555??????IIIIIIII777777RZJ    UT"""DD#"D,  ! ! !^9^9^9^9^9^9^9^9^9^9r