PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
setuptools
/
_distutils
/
__pycache__
� �{�F�n�� � � d Z ddlmZ ddlZddlmZmZ ddlZn # e$ r dZY nw xY wddl m Z ddlmZ ddl mZ dd lmZ dd lmZ n # e$ r dZY nw xY w ddlmZ n # e$ r dZY nw xY wd� Zd � Z d3d4d�Z d5d6d�Zedgd fed!gd"fed#gd$fed%gd&fed'gd(feg d)fd*�Zd+� Ze d7d8d/�� � Ze d9d:d1�� � Z d7d;d2�ZdS )<zodistutils.archive_util Utility functions for creating archive files (tarballs, zip files, that sort of thing).� )�annotationsN)�Literal�overload� )�log)�mkpath)�DistutilsExecError)�spawn)�getpwnam)�getgrnamc �v � t �| �dS t | � � }n# t $ r d}Y nw xY w|�|d S dS )z"Returns a gid, given a group name.N� )r �KeyError��name�results �t/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/_distutils/archive_util.py�_get_gidr ! �\ � ���4�<��t���$������� � � ��������� ���a�y���4� � �,�,c �v � t �| �dS t | � � }n# t $ r d}Y nw xY w|�|d S dS )z"Returns an uid, given a user name.Nr )r r r s r �_get_uidr . r r �gzipF� base_name�str�base_dir�str | os.PathLike[str]�compress�%Literal['gzip', 'bzip2', 'xz'] | None�verbose�bool�dry_run�owner� str | None�group�returnc �X ��� �� ddddd�}dddd �}|�%||� � � vrt d� � �| dz } | |� |d� � z } t t j � | � � |� � � dd l} t j d� � t �� � �t �� � � � ���fd�}|se| � | d|| � �� � } |� ||�� � |� � � n# |� � � w xY w| S )a� Create a (possibly compressed) tar file from all the files under 'base_dir'. 'compress' must be "gzip" (the default), "bzip2", "xz", or None. '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. �gz�bz2�xz� )r �bzip2r* Nz.gzz.bz2z.xz)r r, r* Nz=bad value for 'compress': must be None, 'gzip', 'bzip2', 'xz'z.tar�r"