§ w<ˆj¼ãóÔ—dZddlZddlZddlZddlZddlZddlZddlmZddl m Z gd¢Z Gd„de ¦«Z d „Z e df dd „Ze fdd „Ze fdd „Ze fd„Zd„Zd„Ze fd efd„ZeeefZdS)z/Utilities for extracting common archive formatséNé)Úensure_directory)ÚDistutilsError)Úunpack_archiveÚunpack_zipfileÚunpack_tarfileÚdefault_filterÚUnrecognizedFormatÚextraction_driversÚunpack_directorycó—eZdZdZdS)r z#Couldn't recognize the archive typeN)Ú__name__Ú __module__Ú __qualname__Ú__doc__©óúi/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/setuptools/archive_util.pyr r s€€€€€Ø-Ð-Ð-Ð-rr có—|S)z@The default progress/filter callback; returns True for all filesr)ÚsrcÚdsts rr r s€à €JrÚreturncó~—|ptD]"} ||||¦«dS#t$rYŒwxYwtd|›�¦«‚)a¡Unpack `filename` to `extract_dir`, or raise ``UnrecognizedFormat`` `progress_filter` is a function taking two arguments: a source path internal to the archive ('/'-separated), and a filesystem path where it will be extracted. The callback must return the desired extract path (which may be the same as the one passed in), or else ``None`` to skip that file or directory. The callback can thus be used to report on the progress of the extraction, as well as to filter the items extracted or alter their extraction paths. `drivers`, if supplied, must be a non-empty sequence of functions with the same signature as this function (minus the `drivers` argument), that raise ``UnrecognizedFormat`` if they do not support extracting the designated archive type. The `drivers` are tried in sequence until one is found that does not raise an error, or until all are exhausted (in which case ``UnrecognizedFormat`` is raised). If you do not supply a sequence of drivers, the module's ``extraction_drivers`` constant will be used, which means that ``unpack_zipfile`` and ``unpack_tarfile`` will be tried, in that order. NzNot a recognized archive type: )r r )ÚfilenameÚ extract_dirÚprogress_filterÚdriversÚdrivers rrr"sx€ð.Ð/Õ/ðOðOˆð Ø ˆF�8˜[¨/Ñ :Ô :Ð :ð ˆFˆFøõ"ð ð ð Ø ˆHð øøøõ !Ð!MÀ8Ð!MÐ!MÑNÔNÐNs � � *©*có|—tj |¦«st|›d�¦«‚|d|fi}tj|¦«D]ï\}}}||\}}|D]K} || zdztj || ¦«f|tj || ¦«<ŒL|D]�} tj || ¦«} ||| z| ¦«} | sŒ4t | ¦«tj || ¦«} tj| | ¦«tj | | ¦«ŒŽŒðdS)zˆ "Unpack" a directory, using the same interface as for archives Raises ``UnrecognizedFormat`` if `filename` is not a directory z is not a directoryÚú/N) ÚosÚpathÚisdirr ÚwalkÚjoinrÚshutilÚcopyfileÚcopystat) rrrÚpathsÚbaseÚdirsÚfilesrrÚdÚfÚtargets rr r Ds\€õ Œ7�=Š=˜Ñ "Ô "ðCÝ  HÐ!AÐ!AÐ!AÑBÔBÐBð �2�{Ð#ð €Eõ œW XÑ.Ô.ð 'ð 'шˆd�Eؘ”;‰ˆˆSØð Oð OˆAØ+.°©7°S©=½"¼'¿,º,ÀsÈAÑ:NÔ:NÐ+NˆE•"”'—,’,˜t QÑ'Ô'Ñ (Ð (Øð 'ð 'ˆAÝ”W—\’\ # qÑ)Ô)ˆFØ$�_ S¨1¡W¨fÑ5Ô5ˆFØð àÝ ˜VÑ $Ô $Ð $Ý”— ’ ˜T 1Ñ%Ô%ˆAÝ ŒO˜A˜vÑ &Ô &Ð &Ý ŒO˜A˜vÑ &Ô &Ð &Ð &ð 'ð 'ð 'rcóΗtj|¦«st|›d�¦«‚tj|¦«5}t |||¦«ddd¦«dS#1swxYwYdS)zòUnpack zip `filename` to `extract_dir` Raises ``UnrecognizedFormat`` if `filename` is not a zipfile (as determined by ``zipfile.is_zipfile()``). See ``unpack_archive()`` for an explanation of the `progress_filter` argument. z is not a zip fileN)ÚzipfileÚ is_zipfiler ÚZipFileÚ_unpack_zipfile_obj)rrrÚzs rrr_s²€õ Ô ˜hÑ 'Ô 'ðBÝ  HÐ!@Ð!@Ð!@ÑAÔAÐAå Œ˜Ñ "Ô "ð= aݘA˜{¨OÑ<Ô<Ð<ð=ð=ð=ñ=ô=ð=ð=ð=ð=ð=ð=ð=øøøð=ð=ð=ð=ð=ð=s»AÁAÁ!Acój—| ¦«D�]}|j}| d¦«sd| d¦«vrŒ7t jj|g| d¦«¢RŽ}|||¦«}|sŒp| d¦«rt|¦«nft|¦«|  |j¦«}t|d¦«5}|  |¦«ddd¦«n #1swxYwY|j dz }|rt j ||¦«�ŒdS)z·Internal/private API used by other parts of setuptools. Similar to ``unpack_zipfile``, but receives an already opened :obj:`zipfile.ZipFile` object instead of a filename. r!ú..ÚwbNé)ÚinfolistrÚ startswithÚsplitr"r#r&ÚendswithrÚreadÚopenÚwriteÚ external_attrÚchmod) Ú zipfile_objrrÚinfoÚnamer0Údatar/Úunix_attributess rr5r5ns€ð ×$Ò$Ñ&Ô&ð.ñ.ˆØŒ}ˆð �?Š?˜3Ñ Ô ð  4¨4¯:ª:°c©?¬?Ð#:Ð#:Ø å””˜kÐ<¨D¯JªJ°s©O¬OÐ<Ð<Ð<ˆØ �  vÑ.Ô.ˆØð Ø Ø �=Š=˜Ñ Ô ð å ˜VÑ $Ô $Ð $Ð $õ ˜VÑ $Ô $Ð $Ø×#Ò# D¤MÑ2Ô2ˆDÝ�f˜dÑ#Ô#ð  qØ—’˜‘ ” � ð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð àÔ,°Ñ2ˆØ ð .Ý ŒH�V˜_Ñ -Ô -Ð -ùð-.ð.sÃ#DÄD Ä D có —|�Ä| ¦«s| ¦«rœ|j}| ¦«rBtj|j¦«}tj||¦«}tj|¦«}| |¦«}|�(| ¦«°ˆ| ¦«°œ|duo'|  ¦«p|  ¦«}|r|Std¦«‚)z;Resolve any links and extract link targets as normal files.NzGot unknown file type) ÚislnkÚissymÚlinknameÚ posixpathÚdirnamerFr&ÚnormpathÚ _getmemberÚisfiler$Ú LookupError)Útar_objÚtar_member_objÚlinkpathr+Úis_file_or_dirs rÚ_resolve_tar_file_or_dirrWŒs€à Ð $Ø×ÒÑÔð %Ø"0×"6Ò"6Ñ"8Ô"8ð %ð"Ô*ˆØ × Ò Ñ !Ô !ð 4ÝÔ$ ^Ô%8Ñ9Ô9ˆDÝ ”~ d¨HÑ5Ô5ˆHÝ Ô)¨(Ñ3Ô3ˆHØ ×+Ò+¨HÑ5Ô5ˆð Ð $Ø×ÒÑÔð %Ø"0×"6Ò"6Ñ"8Ô"8ð %ð$¨4Ð/ðØ×ÒÑÔÐ9 >×#7Ò#7Ñ#9Ô#9ðððØÐå Ð-Ñ .Ô .Ð.rc#óüK—d„|_tj|¦«5|D]À}|j}| d¦«sd| d¦«vrŒ6t jj|g| d¦«¢RŽ} t||¦«}n#t$rYŒ~wxYw|||¦«}|sŒ‘|  t j ¦«r |dd…}||fV—ŒÁ ddd¦«dS#1swxYwYdS)z1Emit member-destination pairs from a tar archive.có—dS)Nr)Úargss rúz _iter_open_tar..¤s€ $€rr!r8Néÿÿÿÿ) ÚchownÚ contextlibÚclosingrFr<r=r"r#r&rWrRr>Úsep)rSrrÚmemberrFÚ prelim_dstÚ final_dsts rÚ_iter_open_tarrd¡s}èè€ð'Ð&€G„Må Ô ˜GÑ $Ô $ð$ð$Øð $ð $ˆFØ”;ˆDà�Š˜sÑ#Ô#ð  t¨t¯zªz¸#©¬Ð'>Ð'>Øåœœ kÐD°D·J²J¸s±O´OÐDÐDÐDˆJð Ý1°'¸6ÑBÔB��øÝð ð ð Ø�ð øøøð(˜¨¨jÑ9Ô9ˆIØð Øà×!Ò!¥"¤&Ñ)Ô)ð +Ø% c r cœN� à˜)Ð#Ð #Ð #Ð #Ð #ð) $ð$ð$ð$ñ$ô$ð$ð$ð$ð$ð$ð$ð$øøøð$ð$ð$ð$ð$ð$s7ŸA#C1ÂBÂC1 B!ÂC1 B!Â!AC1Ã1C5Ã8C5có — tj|¦«}n*#tj$r}t|›d�¦«|‚d}~wwxYwt |||¦«D]1\}} | ||¦«Œ#tj$rYŒ.wxYwdS)zûUnpack tar/tar.gz/tar.bz2 `filename` to `extract_dir` Raises ``UnrecognizedFormat`` if `filename` is not a tarfile (as determined by ``tarfile.open()``). See ``unpack_archive()`` for an explanation of the `progress_filter` argument. z- is not a compressed or uncompressed tar fileNT)Útarfiler@ÚTarErrorr rdÚ_extract_memberÚ ExtractError)rrrÚtarobjÚerarcs rrr¾sÌ€ðÝ”˜hÑ'Ô'ˆˆøÝ Ô ðððÝ ØÐ FÐ FÐ Fñ ô àð øøøøðøøøõ ,ØØØñôð ð ш� ð  à × "Ò " 6¨9Ñ 5Ô 5Ð 5Ð 5øÝÔ#ð ð ð à ˆDð øøøð ˆ4s"‚—>¦9¹>ÁA/Á/BÂB)rN)rr^r"rMr'rfr2Ú_pathrÚdistutils.errorsrÚ__all__r r rr rr5rWrdÚboolrr rrrúrps�ðØ5Ð5àÐÐÐØ € € € ØÐÐÐØ € € € Ø€€€Ø€€€à#Ð#Ð#Ð#Ð#Ð#à+Ð+Ð+Ð+Ð+Ð+ð ð ð €ð.ð.ð.ð.ð.˜ñ.ô.ð.ðððð ,:À4ðOà ðOðOðOðOðD=Kð'ð'ð'ð'ð'ð6;Ið =ð =ð =ð =ð =ðCQð.ð.ð.ð.ð</ð/ð/ð*$ð$ð$ð:;IððÈTððððð:& ~°~ÐEÐÐÐr