a0biSrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSK J r /SQr "SS\5r S r \ S4S jr\ 4S jr\ 4S jr\ 4S jrSrSr\ 4Sjr\\\4rg)z/Utilities for extracting common archive formatsN)DistutilsError)ensure_directory)unpack_archiveunpack_zipfileunpack_tarfiledefault_filterUnrecognizedFormatextraction_driversunpack_directoryc\rSrSrSrSrg)r z#Couldn't recognize the archive typeN)__name__ __module__ __qualname____firstlineno____doc____static_attributes__rڐ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/archive_util.pyr r s-rr cU$)z@The default progress/filter callback; returns True for all filesr)srcdsts rr r s JrcU=(d [H nU"XU5 g [SU-5e![a M,f=f)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. Nz!Not a recognized archive type: %s)r r )filename extract_dirprogress_filterdriversdrivers rrr!sR*///  8/ :  0!!Dx!OPP "   s / ==c[RRU5(d[SU-5eUSU40n[R"U5HupEnX4upxUHIn Xy-S-[RR X54U[RR XI5'MK UHn [RR X5n U"Xz-U 5n U (dM6[ U 5 [RR XJ5n [R"X5 [R"X5 M M g)z"Unpack" a directory, using the same interface as for archives Raises ``UnrecognizedFormat`` if `filename` is not a directory z%s is not a directory/N) ospathisdirr walkjoinrshutilcopyfilecopystat) rrrpathsbasedirsfilesrrdftargets rr r As 77== " " !88!CDD 2{# E WWX.E;A+.7S="'',,s:N+NE"'',,t' (AWW\\#)F$SWf5F V $ T%A OOA & OOA & /rc[R"U5(d[U<S35e[R"U5n[ X1U5 SSS5 g!,(df  g=f)zUnpack 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)rrrzs rrr\sG   h ' ' 8!EFF  "aAO< # " "s  A A%cUR5GHnURnURS5(dSURS5;aM=[R R "U/URS5Q76nU"XE5nU(dM~URS5(a [U5 OL[U5 URUR5n[US5nURU5 SSS5 URS- nU(dGM[R"XX5 GM g!,(df  NC=f)zInternal/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 startswithsplitr$r%r(endswithrreadopenwrite external_attrchmod) zipfile_objrrinfonamer2datar1unix_attributess rr7r7ks $$&}} ??3  44::c?#: k#7#7#9 - ..rc## SUl[R"U5 UHnURnUR S5(dSUR S5;aM<[ RR"U/UR S5Q76n[X5nU"XE5nU(dMUR[ R5(aUSSnX64v M SSS5 g![a Mf=f!,(df  g=f7f)z1Emit member-destination pairs from a tar archive.cg)Nr)argss r _iter_open_tar..s$rr#r:N) chown contextlibclosingrHr>r?r$r%r(rYrTr@sep)rUrrmemberrH prelim_dst final_dsts r_iter_open_tarrgs'GM   G $F;;Ds##ttzz#'>kDDJJsODJ 1'B(9I!!"&&))%crN # #) % $   % $sBD A/C9 C(AC9 D ( C62C95C66C99 DD c[R"U5n[ UUU5HupVUR XV5 M g![Ran[U<S35UeSnAff=f![R a M_f=f)zUnpack 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)tarfilerBTarErrorr rg_extract_member ExtractError)rrrtarobjerdrfs rrrsh' ,    " "6 5 #    AI K  ##   s(AA-A*A%%A*-BB)rr4rir$r)rOradistutils.errorsr_pathr__all__r r rr rr7rYrgrr rrrrrs5 +# .. ;IRVQ@=K'6;I =CQ.</*$:;I:&~~Er