a0bi|! L S r SSKrSSKJr SSKr SSKrSSKJr SSK J r SSK
Jr SSKJ
r
SS KJr SS
KJr S rS r SS
jrSS jr\S/S4\S/S4\S/S4\S/S4\S/S4\/ S4S.rS r SS jrg! \ a Sr Npf = f! \ a Sr N_f = f! \ a Sr Nff = f) zodistutils.archive_util
Utility functions for creating archive files (tarballs, zip files,
that sort of thing). N)warn )DistutilsExecError)spawn)mkpath)log)getpwnam)getgrnamc f [ b U c g [ U 5 nUb US $ g! [ a Sn Nf = f)z"Returns a gid, given a group name.N )r
KeyErrornameresults ڛ/builddir/build/BUILDROOT/alt-python313-setuptools-69.0.2-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/setuptools/_distutils/archive_util.py_get_gidr H 4<$ ay ! 00c f [ b U c g [ U 5 nUb US $ g! [ a Sn Nf = f)z"Returns an uid, given a user name.Nr )r r
r s r _get_uidr - r r c ^^^^ SSSSSS.nSSSS S
.nUb X(R 5 ; a [ S5 eU S
- n US:w a XR US5 -
n [ [ R
R
U 5 US9 SSKn
[ R " S5 [ T5 m[ T5 mUUUU4S jnU( d7 U
R U SXr - 5 n UR XS9 UR 5 US:X a@ [ S[ 5 XU - n
[" R$ S:X a X)U
/nOUSU /n[' XS9 U
$ U $ ! UR 5 f = f)a Create a (possibly compressed) tar file from all the files under
'base_dir'.
'compress' must be "gzip" (the default), "bzip2", "xz", "compress", or
None. ("compress" will be deprecated in Python 3.2)
'owner' and 'group' can be used to define an owner and a group for the
archive that is being built. If not provided, the current owner and group
will be used.
The output tar file will be named 'base_dir' + ".tar", possibly plus
the appropriate compression extension (".gz", ".bz2", ".xz" or ".Z").
Returns the output filename.
gzbz2xz )gzipbzip2r Ncompressz.gzz.bz2z.xzz.Z)r r r r NzKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tarr dry_runr zCreating tar archivec L > Tb TU l TU l Tb TU l TU l U $ )N)gidgnameuiduname)tarinfor" groupownerr$ s r _set_uid_gid"make_tarball.