Your IP : 216.73.217.17


Current Path : /usr/lib/python2.7/site-packages/wheel/cli/
Upload File :
Current File : //usr/lib/python2.7/site-packages/wheel/cli/pack.pyc

�
���]c@spddlmZddlZddlZddlZddlmZddlm	Z	ej
d�Zd�ZdS(i����(tprint_functionN(t
WheelError(t	WheelFiles6^(?P<namever>(?P<name>.+?)-(?P<ver>\d.*?))\.dist-info$c	CsBgtj|�D]<}tjjtjj||��rtj|�r|^q}t|�dkr|tdj	|���n|s�tdj	|���n|d}tj|�j
d�}|r�|d|7}nttjj||d���`}g|D].}|jd�r�|j
d	�dj�^q�}	|	sMtd
j	|���nWdQXtd�|	D��}
td
�|	D��}td�|	D��}djdj|
�dj|�dj|�g�}
tjj|dj	||
��}t|d��:}tdj	|�dd�tjj�|j|�WdQXtd�dS(sBRepack a previously unpacked wheel directory into a new wheel file.

    The .dist-info/WHEEL file must contain one or more tags so that the target
    wheel file name can be determined.

    :param directory: The unpacked wheel directory
    :param dest_dir: Destination directory (defaults to the current directory)
    is+Multiple .dist-info directories found in {}s%No .dist-info directories found in {}itnamevert-tWHEELsTag: t sCNo tags present in {}/WHEEL; cannot determine target wheel filenameNcSs#h|]}|jd�d�qS(Ri(tsplit(t.0ttag((s//tmp/pip-install-NwWfNs/wheel/wheel/cli/pack.pys	<setcomp>.s	cSs#h|]}|jd�d�qS(Ri(R(RR	((s//tmp/pip-install-NwWfNs/wheel/wheel/cli/pack.pys	<setcomp>/s	cSs#h|]}|jd�d�qS(Ri(R(RR	((s//tmp/pip-install-NwWfNs/wheel/wheel/cli/pack.pys	<setcomp>0s	t.s	{}-{}.whltwsRepacking wheel as {}...tendttOK(tostlistdirtpathtisdirtjointDIST_INFO_REtmatchtlenRtformattgrouptopent
startswithRtrstriptsortedRtprinttsyststdouttflushtwrite_files(t	directorytdest_dirtbuild_numbertfntdist_info_dirst
dist_info_dirtname_versiontftlinettagstimplstabiverst	platformsttaglinet
wheel_pathtwf((s//tmp/pip-install-NwWfNs/wheel/wheel/cli/pack.pytpack
s2
<
!;	3!
(
t
__future__Rtos.pathRtreRt	wheel.cliRtwheel.wheelfileRtcompileRR2(((s//tmp/pip-install-NwWfNs/wheel/wheel/cli/pack.pyt<module>s