Viewing File: /usr/lib/python3.6/site-packages/setuptools/command/__pycache__/install_egg_info.cpython-36.pyc
3
Xoh @ s\ d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ d dl Z G dd dej
eZdS ) )logdir_utilN)Command)
namespaces)unpack_archivec @ sB e Zd ZdZdZdgZdd Zdd Zd d
Zdd Z d
d Z
dS )install_egg_infoz.Install an .egg-info directory for the packageinstall-dir=ddirectory to install toc C s
d | _ d S )N)install_dir)self r
&/usr/lib/python3.6/install_egg_info.pyinitialize_options s z#install_egg_info.initialize_optionsc C sV | j dd | jd}tjd d |j|jj d }|j| _tj j
| j|| _g | _
d S )NZinstall_libr egg_infoz .egg-info)r r )Zset_undefined_optionsZget_finalized_command
pkg_resourcesZDistributionZegg_nameZegg_versionr sourceospathjoinr targetoutputs)r Zei_cmdbasenamer
r
r finalize_options s
z!install_egg_info.finalize_optionsc C s | j d tjj| jr<tjj| j r<tj| j| jd n(tjj | jrd| j
tj| jfd| j | jsvtj
| j | j
| jf d| j| jf | j d S )Nr )dry_runz Removing zCopying %s to %s)Zrun_commandr r isdirr islinkr Zremove_treer existsZexecuteunlinkr Zensure_directorycopytreer 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 ]}| j |s d| | krd S qW jj| tjd| | |S )N.svn/CVS//zCopying %s to %s)r"