a
    xÏOc¡  ã                   @   s6   d dl mZ d dlZd dlZddlmZ ddd„ZdS )	é    )Úprint_functionNé   )Ú	WheelFileÚ.c                 C   st   t | ƒ�P}|j d¡}tj ||¡}td |¡dd� tj	 
¡  | |¡ W d  ƒ n1 s^0    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: {}...Ú )ÚendNÚOK)r   Zparsed_filenameÚgroupÚosÚpathÚjoinÚprintÚformatÚsysÚstdoutÚflushÚ
extractall)r   ÚdestZwfr   Zdestination© r   úG/var/www/html/gsl.tools/lib/python3.9/site-packages/wheel/cli/unpack.pyÚunpack	   s    	

(r   )r   )Ú
__future__r   Úos.pathr   r   Z	wheelfiler   r   r   r   r   r   Ú<module>   s   