File: //opt/saltstack/salt/lib/python3.10/site-packages/wheel/cli/__pycache__/unpack.cpython-310.pyc
o
�N�g� � @ s4 d dl mZ d dlmZ ddlmZ dddd�Zd
S )� )�annotations)�Path� )� WheelFile�.�path�str�dest�return�Nonec C s� t | ��;}|j�d�}t|�| }td|� d�ddd� |jD ]}|�||� |jd? d@ }|�|j ��
|� qW d � n1 sBw Y td
� d S )z�Unpack a wheel.
Wheel content will be unpacked to {dest}/{name}-{ver}, where {name}
is the package name and {ver} its version.
:param path: The path to the wheel.
:param dest: Destination directory (default to current directory).
�nameverzUnpacking to: z...� T)�end�flush� i� N�OK)r Zparsed_filename�groupr �printZfilelist�extractZ
external_attr�joinpath�filename�chmod)r r Zwfr ZdestinationZzinfoZpermissions� r �D/opt/saltstack/salt/lib/python3.10/site-packages/wheel/cli/unpack.py�unpack s
��
r N)r )r r r r r
r )Z
__future__r �pathlibr Z wheelfiler r r r r r �<module> s