Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/wheel/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/wheel/__pycache__/egg2wheel.cpython-37.opt-1.pyc

B

Pp�c��@s�ddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddlmZddl
mZddlZddlmZddlmZe�dej�Zdd	�Zd
d�Zedkr�e�dS)
�N)�ArgumentParser)�make_archive)�iglob)�
WheelError)�_bdist_wheel_tagz\
    (?P<name>.+?)-(?P<ver>.+?)
    (-(?P<pyver>py\d\.\d)
     (-(?P<arch>.+?))?
    )?.egg$cCstj�|�}t�|�}|s(td�|���|��}tj	dd�}tj�
|�r^t�|�}|�
|�nRxPt�|�D]B}tj�||�}tj�
|�r�t�||�qjt�|tj�||��qjW|d}	|	r�|	�dd�}	|dp�d�dd	��d
d	�}
|
dkr�d|	dd�nd
}|ddk}|�r&tj�tj���}
nttj���}
||
_|	|
_d|
_|d�pRd|
_|�snd|
_|	||
f|
_tj�|djf|��}|
� tj�|d�|�|
j!|dd�|
�"||�dj||
f|�}t#tj�||�d|d�}t�$||dd�d�t�%|�dS)NzInvalid egg file name: {}Z_e2w)�suffix�pyver�.��arch�any�_�-Zcp�ZnoneTz{name}-{ver}.dist-infozEGG-INFO�	egg2wheel)�	generatorz{name}-{ver}-{pyver}-{}-{}�zip)Zroot_dir���Zwhl)&�os�path�basename�egg_info_re�matchr�format�	groupdict�tempfileZmkdtemp�isfile�zipfileZZipFileZ
extractall�listdir�join�shutilZcopy2Zcopytree�replace�wheelZbdist_wheel�	distutilsZdistZDistributionrZroot_is_pureZ
python_tagZplat_name_suppliedZ	plat_nameZfull_tag_suppliedZfull_tagZegg2distZwrite_wheelfileZwrite_recordr�renameZrmtree)Zegg_path�dest_dir�filenamerZegg_info�dir�eggZpth�srcrrZabiZroot_is_purelibZbwZ
dist_info_dirZ
wheel_name�r*�@/opt/alt/python37/lib/python3.7/site-packages/wheel/egg2wheel.pyrsL

rcCs�t�}|jdddd�|jddtjjdd�|jd	d
dd�|��}xX|jD]N}xHt|�D]<}|jr|t	d
�
|��tj�
�t||j�|jrZt	d�qZWqLWdS)N�eggs�*zEggs to convert)�nargs�helpz
--dest-dirz-dz/Directory to store wheels (default %(default)s))�defaultr/z	--verbosez-v�
store_true)�actionz{}... ZOK)r�add_argumentrr�curdir�
parse_argsr,r�verbose�printr�sys�stdout�flushrr%)�parser�argsZpatr(r*r*r+�mainMs
r=�__main__)Zdistutils.distr#Zos.pathr�rer r8rr�argparserZdistutils.archive_utilrZglobrZwheel.bdist_wheelr"Z
wheel.toolrZwheel.wininst2wheelr�compile�VERBOSErrr=�__name__r*r*r*r+�<module>s$
6