o
    5‘ð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 )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).
    Ú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   úh/root/parts/websockify/install/lib/python3.10/site-packages/setuptools/_vendor/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    