AlkantarClanX12
Current Path : /lib64/python3.8/distutils/__pycache__/ |
Current File : //lib64/python3.8/distutils/__pycache__/archive_util.cpython-38.opt-2.pyc |
U e5d|! � @ s@ d dl Z d dlmZ d dlZzd dlZW n ek r@ dZY nX d dlmZ d dlm Z d dl mZ d dlm Z zd dlmZ W n ek r� dZY nX zd dlmZ W n ek r� dZY nX d d � Zdd� Zd"dd�Zd#dd�Zedgdfedgdfedgdfedgdfedgdfeg dfd�Zdd� Zd$d d!�ZdS )%� N)�warn)�DistutilsExecError)�spawn)�mkpath)�log)�getpwnam)�getgrnamc C sN t d ks| d krd S zt | �}W n tk r8 d }Y nX |d k rJ|d S d S �N� )r �KeyError��name�result� r �./usr/lib64/python3.8/distutils/archive_util.py�_get_gid s r c C sN t d ks| d krd S zt | �}W n tk r8 d }Y nX |d k rJ|d S d S r )r r r r r r �_get_uid+ s r �gzipc s. dddddd�}dddd d �}|d k r:||� � kr:td��| d } |d krZ| |�|d�7 } ttj�| �|d� dd l} t� d� t ���t��� � ���fdd�}|s�| �| d|| �}z|j||d� W 5 |� � X |d k�r*tdt� | || } 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 k r� | _ �| _�d k r(�| _�| _| 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�close�addr �PendingDeprecationWarning�sys�platformr )� base_name�base_dirr �verboser r! r Ztar_compressionZcompress_extZarchive_namer* r"