
    df                         d dl mZmZ d dlZd dlmZ d dlmZ d dlmZ ddl	m
Z
 d dlZ G d d	ej                  e      Zy)
    )logdir_utilN)Command)
namespaces)unpack_archive   )ensure_directoryc                   8    e Zd ZdZdZdgZd Zd Zd Zd Z	d Z
y)	install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=dzdirectory to install toc                     d | _         y N)install_dirselfs    \/home/api-vastappli/venv/lib/python3.12/site-packages/setuptools/command/install_egg_info.pyinitialize_optionsz#install_egg_info.initialize_options   s
        c                 R   | j                  dd       | j                  d      }t        j                  d d |j                  |j
                        j	                         dz   }|j                  | _        t        j                  j                  | j                  |      | _        g | _        y )Ninstall_lib)r   r   egg_infoz	.egg-info)set_undefined_optionsget_finalized_commandpkg_resourcesDistributionegg_nameegg_versionr   sourceospathjoinr   targetoutputs)r   ei_cmdbasenames      r   finalize_optionsz!install_egg_info.finalize_options   s    ""=#A	C++J7 --$););

(*{# ooggll4#3#3X>r   c                    | j                  d       t        j                  j                  | j                        rUt        j                  j                  | j                        s,t        j                  | j                  | j                         nbt        j                  j                  | j                        r9| j                  t        j                  | j                  fd| j                  z          | j                  st        | j                         | j                  | j                  dd| j                  d| j                         | j                          y )Nr   )dry_runz	Removing  zCopying z to )run_commandr   r    isdirr"   islinkr   remove_treer(   existsexecuteunlinkr	   copytreer   install_namespacesr   s    r   runzinstall_egg_info.run"   s    $77==%bggnnT[[.I  dllCWW^^DKK(LLT[[NK$++4MN||T[[)MM2T[[$++N	
 	!r   c                     | j                   S r   )r#   r   s    r   get_outputszinstall_egg_info.get_outputs/   s    ||r   c                 R      fd}t         j                   j                  |       y )Nc                     dD ]  }| j                  |      sd|z   | v s y  j                  j                  |       t        j                  d| |       |S )N)z.svn/zCVS//zCopying %s to %s)
startswithr#   appendr   debug)srcdstskipr   s      r   skimmerz*install_egg_info.copytree.<locals>.skimmer4   sX     (  >>$'3:+<  LL$II(#s3Jr   )r   r   r"   )r   r?   s   ` r   r1   zinstall_egg_info.copytree2   s    		 	t{{DKK9r   N)__name__
__module____qualname____doc__descriptionuser_optionsr   r&   r3   r5   r1   r)   r   r   r   r      s/    8BK 	9L 	":r   r   )	distutilsr   r   r   
setuptoolsr   r   setuptools.archive_utilr   _pathr	   r   	Installerr   r)   r   r   <module>rK      s.    # 	  ! 2 $ 4:z++W 4:r   