o
    cÃa¡  ã                   @   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 | ƒ�(}|j d¡}tj ||¡}td |¡dd� tj	 
¡  | |¡ 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: {}...Ú )ÚendNÚOK)r   Úparsed_filenameÚgroupÚosÚpathÚjoinÚprintÚformatÚsysÚstdoutÚflushÚ
extractall)r   ÚdestÚwfr   Údestination© r   ú2/usr/lib/python3/dist-packages/wheel/cli/unpack.pyÚunpack	   s   
	
ûr   )r   )Ú
__future__r   Úos.pathr   r   Ú	wheelfiler   r   r   r   r   r   Ú<module>   s
    