Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/setuptools/command/__pycache__/install_egg_info.cpython-37.pyc
Назад
B �5�gK � @ s` d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ ddl m Z G dd � d eje�ZdS ) � )�log�dir_utilN)�Command)� namespaces)�unpack_archive� )�ensure_directoryc @ sB e Zd ZdZdZdgZdd� Zdd� Zdd� Zd d � Z dd� Z d S )�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc C s d | _ d S )N)�install_dir)�self� r �K/tmp/pip-install-251nq386/setuptools/setuptools/command/install_egg_info.py�initialize_options s z#install_egg_info.initialize_optionsc C sH | � dd� | �d�}|�� � d�}|j| _tj�| j|�| _ g | _ d S )N�install_lib)r r �egg_infoz .egg-info)�set_undefined_options�get_finalized_commandZ_get_egg_basenamer �source�os�path�joinr �target�outputs)r Zei_cmd�basenamer r r �finalize_options s z!install_egg_info.finalize_optionsc C s� | � d� tj�| j�r:tj�| j�s:tj| j| jd� n(tj� | j�rb| � tj| jfd| j � | jsrt| j� | � | j dd| j| jf � | �� d S )Nr )�dry_runz Removing r zCopying %s to %s)�run_commandr r �isdirr �islinkr �remove_treer �exists�execute�unlinkr �copytreer Zinstall_namespaces)r r r r �run s zinstall_egg_info.runc C s | j S )N)r )r r r r �get_outputs, s zinstall_egg_info.get_outputsc s � fdd�}t � j� j|� d S )Nc sF x&dD ]}| � |�s d| | krd S qW � j�|� t�d| |� |S )N)z.svn/zCVS/�/zCopying %s to %s)� startswithr �appendr �debug)�src�dst�skip)r r r �skimmer1 s z*install_egg_info.copytree.<locals>.skimmer)r r r )r r. r )r r r$ / s zinstall_egg_info.copytreeN)�__name__� __module__�__qualname__�__doc__�description�user_optionsr r r% r&