U
âQab› ã @ s\ d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ d dl Z G dd„ dej
eƒZdS )é )ÚlogÚdir_utilN)ÚCommand)Ú
namespaces)Úunpack_archivec @ 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
úG/usr/lib/python3.8/site-packages/setuptools/command/install_egg_info.pyÚinitialize_options s z#install_egg_info.initialize_optionsc C sV | dd¡ | d¡}t d d |j|j¡ ¡ d }|j| _tj
| j|¡| _g | _
d S )NZinstall_lib)r
r
Úegg_infoz .egg-info)Zset_undefined_optionsZget_finalized_commandÚ
pkg_resourcesZDistributionZegg_nameZegg_versionr Ú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 ¡ | jstt
| j¡ |
| jdd| j| jf ¡ | ¡ d S )Nr )Údry_runz Removing r
úCopying %s to %s)Zrun_commandr r Úisdirr Úislinkr Zremove_treer ÚexistsZexecuteÚunlinkr Zensure_directoryÚcopytreer Zinstall_namespacesr r
r
r Úrun! s
ÿzinstall_egg_info.runc C s | j S r )r r r
r
r Úget_outputs. s zinstall_egg_info.get_outputsc s ‡ fdd„}t ˆ jˆ j|ƒ d S )Nc sD dD ] }| |¡sd| | kr d S qˆ j |¡ t d| |¡ |S )N)z.svn/zCVS/ú/r )Ú
startswithr Úappendr Údebug)ÚsrcZdstÚskipr r
r Úskimmer3 s z*install_egg_info.copytree.