o
    i                     @  s4   d dl mZ d dlmZ ddlmZ ddddZdS )    )annotations)Path   )	WheelFile.pathstrdestreturnNonec                 C  s   t | 9}|jd}t|| }td| dddd |jD ]}t|||}|jd? d@ }|| qW d	   n1 s@w   Y  td
 d	S )zUnpack 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).
    nameverzUnpacking to: z... T)endflush   i  NOK)	r   parsed_filenamegroupr   printfilelistextractexternal_attrchmod)r   r	   wfr   destinationzinfotarget_pathpermissions r   L/home/ubuntu/vllm_env/lib/python3.10/site-packages/wheel/_commands/unpack.pyunpack   s   
	
r    N)r   )r   r   r	   r   r
   r   )
__future__r   pathlibr   	wheelfiler   r    r   r   r   r   <module>   s    