Your IP : 18.188.0.20
3
fL � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZdd� Zdd� Z
dd� Zdd � Zd
d� ZdS )� Nc C s� t jdd�} | jddd� | jdddd tjjd
� | j� }d}yttf t |��� W n4 t
k
r� } ztdj|�� d
}W Y d d }~X nX tj
d
� d S )Nz,Recreate wheel of package with given RECORD.)�description�record_pathzPath to RECORD file)�helpz-oz--output-dirz>Dir where to place the wheel, defaults to current working dir.�outdir)r �dest�defaultr z
Failed: {}� )�argparse�ArgumentParser�add_argument�os�path�curdir�
parse_args�print�rewheel_from_record�vars�
BaseException�format�sys�exit)�parser�nsZretcode�e� r �-/opt/alt/python36/lib64/python3.6/__init__.py�run
s r c s� g }t jtjtjg�}dd� |D �}x�| D ]�}d }xd|D ]\�tjj�|�djtj � � �fdd�tj
��D �}� fdd�|D �}t|�dkr8|d }q8W |d k r�|jtjj|d�� q*|jd � q*W |S ) Nc S s g | ]}t jj|�r|�qS r )r r
�exists)�.0�spr r r �
<listcomp>( s z'find_system_records.<locals>.<listcomp>z-[^\{0}]+\.dist-infoc s g | ]}t jj� |��qS r )r r
�join)r �p)r r r r . s c s g | ]}t j� |�r|�qS r )�re�match)r �c)�dist_info_rer r r 0 s r r ZRECORD)
�site�getsitepackagesr �base_prefix�base_exec_prefixr r
r! r �sep�listdir�len�append)ZprojectsZrecordsZsys_sitepackZprojectr
Z
candidatesZfilteredr )r&