o
    ü§Ýjø  ã                   @  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   Zparsed_filenameÚgroupr   ÚprintÚfilelistÚextractÚexternal_attrÚchmod)r   r	   Zwfr   ZdestinationÚzinfoÚtarget_pathZpermissions© r   úQ/var/www/html/chatgpt/venv/lib/python3.10/site-packages/wheel/_commands/unpack.pyÚunpack   s   
	
ùür   N)r   )r   r   r	   r   r
   r   )Ú
__future__r   Úpathlibr   Z	wheelfiler   r   r   r   r   r   Ú<module>   s    