Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib/python3.5/site-packages/wheel/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib/python3.5/site-packages/wheel/__pycache__/egg2wheel.cpython-35.pyc



ro�e3
�@s�ddlZddlZddlZddlZddlZddlZddlZddl	Z
ddlmZddl
mZddlmZejdej�Zdd�Zdd	�Zed
kr�e�dS)�N)�make_archive)�ArgumentParser)�iglobzF(?P<name>.+?)-(?P<ver>.+?)
    (-(?P<pyver>.+?))?(-(?P<arch>.+?))?.eggcCsJtjtjj|��j�}tjdd�}tjj|�rdt	j
|�}|j|�nsxptj|�D]_}tjj
||�}tjj|�r�tj||�qttj|tjj
||��qtWd|d|df}d}|djdd	�}	|d
pdjdd�jd
d�}
|
dkrSd|	dd�}	d
j
||	||
f�}tjjtjj��}|d
dk|_tjj
|d|�}
|jtjj
|d�|
�|j|
dd�|j||
�ttjj
||�dd|�}tj||dd�d�tj|�dS)N�suffixZ_e2wz%s-%s�name�verZnone�pyver�.��arch�any�_�-�cp�z%s.dist-infozEGG-INFO�	generator�	egg2wheel�zip�root_dir�Zwhl���)�egg_info_re�match�os�path�basename�	groupdict�tempfile�mkdtemp�isfile�zipfile�ZipFile�
extractall�listdir�join�shutil�copy2�copytree�replace�wheelZbdist_wheel�	distutils�dist�DistributionZroot_is_purelibZegg2distZwrite_wheelfileZwrite_recordr�rename�rmtree)Zegg_path�dest_dir�egg_info�dir�eggZpth�srcZ	dist_infoZabirrZ
wheel_nameZbwZ
dist_info_dir�filename�r5�@/opt/alt/python35/lib/python3.5/site-packages/wheel/egg2wheel.pyrs>!#($rcCs�t�}|jddddd�|jdddtjjdd	�|jd
ddd
�|j�}xs|jD]h}x_t|�D]Q}|jr�t	j
jdj|��t
||j�|jr�t	j
jd�q�WqpWdS)N�eggs�nargs�*�helpzEggs to convertz
--dest-dirz-d�defaultz/Directory to store wheels (default %(default)s)z	--verbosez-v�action�
store_truez{0}... zOK
)r�add_argumentrr�curdir�
parse_argsr7r�verbose�sys�stdout�write�formatrr/)�parser�args�patr2r5r5r6�main8s			rI�__main__)�os.pathr�rerBrr Zwheel.bdist_wheelr)r%�distutils.distr*Zdistutils.archive_utilr�argparser�globr�compile�VERBOSErrrI�__name__r5r5r5r6�<module>s (