o
    h{                     @   sd   d dl mZmZ d dlZd dlZd dlmZ d dlmZ d dlm	Z	 d dl
Z
G dd dejeZdS )    )logdir_utilN)Command)
namespaces)unpack_archivec                   @   sB   e Zd ZdZdZdgZdd Zdd Zdd Zd	d
 Z	dd Z
dS )install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=dzdirectory to install toc                 C   s   d | _ d | _d | _d S N)install_dirinstall_layoutprefix_optionself r   _/var/www/html/olx_land/venv/lib/python3.10/site-packages/setuptools/command/install_egg_info.pyinitialize_options   s   
z#install_egg_info.initialize_optionsc                 C   s   |  dd |  dd tjdkr|  dd | d}td d |j|j d }| jrH| j	 d	vr8t
d
| j	 | _|dtj d}n| jsPdtjv rQn	|dtj d}|j| _tj| j|| _g | _d S )Ninstall_lib)r
   r
   install)r   r   i  )r   r   egg_infoz	.egg-infodebz"unknown value for --install-layoutz-py%s real_prefix)set_undefined_optionssys
hexversionget_finalized_commandpkg_resourcesDistributionegg_nameegg_versionr   lowerDistutilsOptionErrorreplacePY_MAJORr   __dict__r   sourceospathjoinr
   targetoutputs)r   ei_cmdbasenamer   r   r   finalize_options   s.   


z!install_egg_info.finalize_optionsc                 C   s   |  d tj| jrtj| jstj| j| jd ntj	| jr1| 
tj| jfd| j  | js:t| j | 
| jdd| j| jf  |   d S )Nr   )dry_runz	Removing r   Copying %s to %s)run_commandr'   r(   isdirr*   islinkr   remove_treer/   existsexecuteunlinkr   ensure_directorycopytreer&   install_namespacesr   r   r   r   run2   s   
zinstall_egg_info.runc                 C   s   | j S r	   )r+   r   r   r   r   get_outputs?   s   zinstall_egg_info.get_outputsc                    s     fdd}t  j j| d S )Nc                    sl   dD ]}|  |sd| | v r d S q jr' jdv r'|  dr'td d S  j| td| | |S )N)z.svn/zCVS//r   zSOURCES.txtzSkipping SOURCES.txtr0   )
startswithr   r   infor+   appenddebug)srcdstskipr   r   r   skimmerD   s   
z*install_egg_info.copytree.<locals>.skimmer)r   r&   r*   )r   rE   r   r   r   r9   B   s   zinstall_egg_info.copytreeN)__name__
__module____qualname____doc__descriptionuser_optionsr   r.   r;   r<   r9   r   r   r   r   r   
   s    r   )	distutilsr   r   r'   r   
setuptoolsr   r   setuptools.archive_utilr   r   	Installerr   r   r   r   r   <module>   s    