
    09oe                     ~    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dS )
    )logdir_utilN)Command)
namespaces)unpack_archive   )ensure_directoryc                   :    e Zd ZdZdZdgZd Zd Zd Zd Z	d Z
dS )	install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=dzdirectory to install toc                     d | _         d S N)install_dirselfs    \D:\Python Project\StaffProfile\venv\Lib\site-packages\setuptools/command/install_egg_info.pyinitialize_optionsz#install_egg_info.initialize_options   s        c                 B   |                      dd           |                     d          }t          j        d d |j        |j                                                  dz   }|j        | _        t          j	        
                    | j        |          | _        g | _        d S )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 	C 	C++J77 -$);
 

(**{# ogll4#3X>>r   c                 ^   |                      d           t          j                            | j                  rEt          j                            | j                  s!t          j        | j        | j                   nSt          j        	                    | j                  r/| 
                    t          j        | j        fd| j        z              | j        st          | j                   | 
                    | j        dd| j        d| j                   |                                  d S )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   $$$7==%% 	ObgnnT[.I.I 	O dlCCCCCW^^DK(( 	OLLT[NK$+4MNNN| 	*T[)))M22T[[[$++N	
 	
 	
 	!!!!!r   c                     | j         S r   )r#   r   s    r   get_outputszinstall_egg_info.get_outputs/   s
    |r   c                 H      fd}t           j         j        |           d S )Nc                     dD ]!}|                      |          sd|z   | v r d S "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   sr     (    >>$''  3:+<+<44 ,=L$$$I(#s333Jr   )r   r   r"   )r   r?   s   ` r   r1   zinstall_egg_info.copytree2   s:    		 		 		 		 		 	t{DK99999r   N)__name__
__module____qualname____doc__descriptionuser_optionsr   r&   r3   r5   r1   r)   r   r   r   r      sv        88BK 	9L     	 	 	" " "  : : : : :r   r   )	distutilsr   r   r   
setuptoolsr   r   setuptools.archive_utilr   _pathr	   r   	Installerr   r)   r   r   <module>rK      s    # # # # # # # # 				       ! ! ! ! ! ! 2 2 2 2 2 2 $ $ $ $ $ $    4: 4: 4: 4: 4:z+W 4: 4: 4: 4: 4:r   