3
ÕZð]¡  ã               @   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   s`   t | ƒ�F}|jjdƒ}tjj||ƒ}tdj|ƒdd� tj	j
ƒ  |j|ƒ W dQ R X 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   ú1/tmp/pip-build-uspjrw0y/wheel/wheel/cli/unpack.pyÚunpack	   s    	

r   )r   )Ú
__future__r   Úos.pathr   r   Z	wheelfiler   r   r   r   r   r   Ú<module>   s   