AlkantarClanX12
Current Path : /opt/alt/python39/lib64/python3.9/distutils/__pycache__/ |
Current File : //opt/alt/python39/lib64/python3.9/distutils/__pycache__/archive_util.cpython-39.opt-2.pyc |
a R�f|! � @ s: d dl Z d dlmZ d dlZzd dlZW n ey> dZY n0 d dlmZ d dlm Z d dl mZ d dlm Z zd dlmZ W n ey� dZY n0 zd dlmZ W n ey� dZY n0 d d � Zdd� Zd"dd�Zd#dd�Zedgdfedgdfedgdfedgdfedgdfeg dfd�Zdd� Zd$d d!�ZdS )%� N)�warn)�DistutilsExecError)�spawn)�mkpath)�log)�getpwnam)�getgrnamc C sL t d u s| d u rd S zt | �}W n ty6 d }Y n0 |d urH|d S d S �N� )r �KeyError��name�result� r �;/opt/alt/python39/lib64/python3.9/distutils/archive_util.py�_get_gid s r c C sL t d u s| d u rd S zt | �}W n ty6 d }Y n0 |d urH|d S d S r )r r r r r r �_get_uid+ s r �gzipc s6 dddddd�}dddd d �}|d ur:||� � vr:td��| d } |d krZ| |�|d�7 } ttj�| �|d� dd l} t� d� t ���t��� � ���fdd�}|s�| �| d|| �}z|j ||d� W |�� n |�� 0 |d k�r2tdt� | || } tjdk�r|| | g}n |d| g}t||d� | S | S )NZgz�bz2�xz� )r �bzip2r N�compressz.gzz.bz2z.xzz.Z)r r r r zKbad value for 'compress': must be None, 'gzip', 'bzip2', 'xz' or 'compress'z.tarr ��dry_runr zCreating tar archivec s, � d ur� | _ �| _�d ur(�| _�| _| S �N)�gidZgname�uid�uname)Ztarinfo�r �group�ownerr r r �_set_uid_gida s z"make_tarball.<locals>._set_uid_gidzw|%s)�filterz'compress' will be deprecated.Zwin32z-f)�keys� ValueError�getr �os�path�dirname�tarfiler �infor r �open�add�closer �PendingDeprecationWarning�sys�platformr )� base_name�base_dirr �verboser r! r Ztar_compressionZcompress_extZarchive_namer* r"