§ ]<ˆjŽãó&—dZddlZddlmZddlmZddlmZddlm Z m Z ddl m Z ddl mZd Zeje¦«Zd e d ed eeeffd „Zde d ed efd„Zde ded efd„Zde ded efd„Zded eedffd„Zdeedfd ed dfd„ZdS)z0Support functions for working with wheel files. éN)ÚMessage)ÚParser)ÚTuple)Ú BadZipFileÚZipFile)Úcanonicalize_name)ÚUnsupportedWheel)érÚ wheel_zipÚnameÚreturncóØ— t||¦«}t||¦«}t|¦«}n&#t$r}t|›d|›�¦«‚d}~wwxYwt ||¦«||fS)z©Extract information from the provided wheel, ensuring it meets basic standards. Returns the name of the .dist-info directory and the parsed WHEEL metadata. z has an invalid wheel, N)Úwheel_dist_info_dirÚwheel_metadataÚ wheel_versionr Úcheck_compatibility)r r Úinfo_dirÚmetadataÚversionÚes úk/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/pip/_internal/utils/wheel.pyÚ parse_wheelrs‘€ð DÝ& y°$Ñ7Ô7ˆÝ! )¨XÑ6Ô6ˆÝ Ñ)Ô)ˆˆøÝ ðDðDðDÝ $ÐBÐB¸qÐBÐBÑCÔCÐCøøøøðDøøøõ˜ Ñ&Ô&Ð&à �XÐ Ðs‚/2² A¼AÁAÚsourcecó¬—d„| ¦«D¦«}d„|D¦«}|std¦«‚t|¦«dkr5td d |¦«¦«¦«‚|d}t |¦«}t |¦«}| |¦«std|›d |›�¦«‚|S) z®Returns the name of the contained .dist-info directory. Raises AssertionError or UnsupportedWheel if not found, >1 found, or it doesn't match the provided name. cóF—h|]}| dd¦«d’ŒS)ú/r r)Úsplit)Ú.0Úps rú z&wheel_dist_info_dir..-s)€Ð=Ð=Ð= aˆq�wŠw�s˜A‰Œ˜qÔ!Ð=Ð=Ð=ócó<—g|]}| d¦«¯|‘ŒS)z .dist-info)Úendswith)rÚss rú z'wheel_dist_info_dir../s)€Ð@Ð@Ð@�q q§z¢z°,Ñ'?Ô'?Ð@�Ð@Ð@Ð@r!z.dist-info directory not foundr z)multiple .dist-info directories found: {}z, rz.dist-info directory z does not start with )Únamelistr ÚlenÚformatÚjoinrÚ startswith)rr ÚsubdirsÚ info_dirsrÚ info_dir_nameÚcanonical_names rrr&só€ð>Ð=¨6¯?ª?Ñ+<Ô+<Ð=Ñ=Ô=€Gà@Ð@˜GÐ@Ñ@Ô@€Ià ðAÝÐ?Ñ@Ô@Ð@å ˆ9�~„~˜ÒÐÝØ 7× >Ò >¸t¿yºyÈÑ?SÔ?SÑ TÔ Tñ ô ð ð˜Œ|€Hå% hÑ/Ô/€MÝ& tÑ,Ô,€NØ × #Ò # NÑ 3Ô 3ð ÝØ W HÐ WÐ WÀ^Ð WÐ Wñ ô ð ð €Or!Úpathcó–— | |¦«S#tttf$r}t d|›d|›�¦«‚d}~wwxYw)Nzcould not read z file: )ÚreadrÚKeyErrorÚ RuntimeErrorr )rr/rs rÚread_wheel_metadata_filer4Ese€ðGØ�{Š{˜4Ñ Ô Ð øõ �¥,Ð /ðGðGðGÝÐE°ÐEÐEÀÐEÐEÑFÔFÐFøøøøðGøøøs‚—A®AÁAÚ dist_info_dircóè—|›d�}t||¦«} | ¦«}n'#t$r}td|›d|›�¦«‚d}~wwxYwt ¦« |¦«S)ziReturn the WHEEL metadata of an extracted wheel, if possible. Otherwise, raise UnsupportedWheel. z/WHEELzerror decoding z: N)r4ÚdecodeÚUnicodeDecodeErrorr rÚparsestr)rr5r/Úwheel_contentsÚ wheel_textrs rrrNs–€ðÐ #Ð #Ð #€Då-¨f°dÑ;Ô;€NðBØ#×*Ò*Ñ,Ô,ˆ ˆ øÝ ðBðBðBÝÐ@°Ð@Ð@¸1Ð@Ð@ÑAÔAÐAøøøøðBøøøõ ‰8Œ8× Ò ˜ZÑ (Ô (Ð(s—,¬ A¶A Á AÚ wheel_data.có—|d}|€td¦«‚| ¦«} ttt| d¦«¦«¦«S#t $rtd|›�¦«‚wxYw)zbGiven WHEEL metadata, return the parsed Wheel-Version. Otherwise, raise UnsupportedWheel. z Wheel-VersionNzWHEEL is missing Wheel-Versionú.zinvalid Wheel-Version: )r ÚstripÚtupleÚmapÚintrÚ ValueError)r<Ú version_textrs rrras”€ð˜oÔ.€LØÐÝÐ?Ñ@Ô@Ð@à× Ò Ñ"Ô"€GðFÝ•S�˜gŸmšm¨CÑ0Ô0Ñ1Ô1Ñ2Ô2Ð2øÝ ðFðFðFÝÐD¸ÐDÐDÑEÔEÐEðFøøøs ¯4A$Á$Brc ób—|dtdkrItd |d t t |¦«¦«¦«¦«‚|tkrCt  dd t t |¦«¦«¦«dSdS)aåRaises errors or warns if called with an incompatible Wheel-Version. pip should refuse to install a Wheel-Version that's a major series ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when installing a version only minor version ahead (e.g 1.2 > 1.1). version: a 2-tuple representing a Wheel-Version (Major, Minor) name: name of wheel or package to raise exception about :raises UnsupportedWheel: when an incompatible Wheel-Version is given rzB{}'s Wheel-Version ({}) is not compatible with this version of pipr>z*Installing from a newer Wheel-Version (%s)N)ÚVERSION_COMPATIBLEr r(r)rAÚstrÚloggerÚwarning)rr s rrrqs§€ðˆq„zÕ& qÔ)Ò)Ð)Ýð ß’V˜D #§(¢(­3­s°GÑ+<Ô+<Ñ"=Ô"=Ñ>Ô>ñ ô ð ð Õ%Ò %Ð %Ý�ŠØ 8Ø �HŠH•S�˜gÑ&Ô&Ñ 'Ô 'ñ ô ð ð ð ð &Ð %r!)Ú__doc__ÚloggingÚ email.messagerÚ email.parserrÚtypingrÚzipfilerrÚpip._vendor.packaging.utilsrÚpip._internal.exceptionsr rFÚ getLoggerÚ__name__rHrGrrÚbytesr4rrBrr©r!rúrVsÅðððð€€€Ø!Ð!Ð!Ð!Ð!Ð!ØÐÐÐÐÐØÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'Ð'Ð'à9Ð9Ð9Ð9Ð9Ð9à5Ð5Ð5Ð5Ð5Ð5àÐð ˆÔ ˜8Ñ $Ô $€ð˜7ð¨#ð°%¸¸W¸ Ô2Eððððð$ ð¨sð°sððððð>G WðG°CðG¸EðGðGðGðGð)˜7ð)°3ð)¸7ð)ð)ð)ð)ð& F˜gð F¨%°°S°¬/ð Fð Fð Fð Fð    s¨C x¤ð ¸ð Àð ð ð ð ð ð r!