B
62'd @ 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 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 /builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/command/install_egg_info.pyinitialize_options s z#install_egg_info.initialize_optionsc C sV | dd | d}td d |j|j d }|j| _tj
| j|| _g | _
d S )Ninstall_lib)r r egg_infoz .egg-info)set_undefined_optionsget_finalized_command
pkg_resourcesDistributionegg_nameZegg_versionr sourceospathjoinr targetoutputs)r
Zei_cmdbasenamer r r finalize_options s
z!install_egg_info.finalize_optionsc C s | d tj| jr:tj| js:tj| j| jd n(tj | jrb|
tj| jfd| j | jstt
| j |
| jdd| j| jf | d S )Nr )dry_runz Removing r zCopying %s to %s)run_commandr r isdirr islinkr remove_treer existsexecuteunlinkr ensure_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 ]}| |s d| | krd S qW j| td| | |S )N)z.svn/zCVS//zCopying %s to %s)
startswithr appendr debug)srcdstskip)r
r r skimmer3 s
z*install_egg_info.copytree.