
    09oe#                     ^    d dl Z d dlZd dlmZmZ d dlmc mZ  G d dej                  ZdS )    N)productstarmapc                   f    e Zd ZdZd Zd Zd Zed             Zd Z	ed             Z
	 dd
Zd ZdS )install_libz9Don't add compiled flags to filenames of non-Python filesc                     |                                   |                                 }||                     |           d S d S N)buildinstallbyte_compile)selfoutfiless     WD:\Python Project\StaffProfile\venv\Lib\site-packages\setuptools/command/install_lib.pyrunzinstall_lib.run
   sD    

<<>>h'''''      c                       fd                                  D             }t          |                                           }t          t	           j        |                    S )z
        Return a collections.Sized collections.Container of paths to be
        excluded for single_version_externally_managed installations.
        c              3   L   K   | ]}                     |          D ]}|V  d S r   )_all_packages).0ns_pkgpkgr   s      r   	<genexpr>z-install_lib.get_exclusions.<locals>.<genexpr>   s\       
 
))&11
 
  
 
 
 
 
 
 
r   )_get_SVEM_NSPsr   _gen_exclusion_pathssetr   _exclude_pkg_path)r   all_packages
excl_specss   `  r   get_exclusionszinstall_lib.get_exclusions   so    

 
 
 
--//
 
 
 \4+D+D+F+FGG
741:>>???r   c                 l    |                     d          |gz   }t          j        j        | j        g|R  S )zw
        Given a package name and exclusion path within that package,
        compute the full exclusion path.
        .)splitospathjoininstall_dir)r   r   exclusion_pathpartss       r   r   zinstall_lib._exclude_pkg_path   s8    
 		#.!11w|D,5u5555r   c              #   P   K   | r!| V  |                      d          \  } }}| dS dS )zn
        >>> list(install_lib._all_packages('foo.bar.baz'))
        ['foo.bar.baz', 'foo.bar', 'foo']
        r    N)
rpartition)pkg_namesepchilds      r   r   zinstall_lib._all_packages'   sQ        	<NNN#+#6#6s#;#; Hc5  	< 	< 	< 	< 	<r   c                 v    | j         j        sg S |                     d          }|j        }|r| j         j        ng S )z
        Get namespace packages (list) but only for
        single_version_externally_managed installations and empty otherwise.
        r
   )distributionnamespace_packagesget_finalized_command!single_version_externally_managed)r   install_cmdsvems      r   r   zinstall_lib._get_SVEM_NSPs1   sH      3 	I00;;<7;Ct 33Cr   c               #      K   dV  dV  dV  t          t          d          sdS t          j                            ddt          j        j        z             } | dz   V  | d	z   V  | d
z   V  | dz   V  dS )zk
        Generate file paths to be excluded for namespace packages (bytecode
        cache files).
        z__init__.pyz__init__.pycz__init__.pyoimplementationN__pycache__z	__init__.z.pycz.pyoz
.opt-1.pycz
.opt-2.pyc)hasattrsysr"   r#   r$   r5   	cache_tag)bases    r   r   z install_lib._gen_exclusion_pathsA   s       s,-- 	Fw||;);)EEG GVmVm\!!!!\!!!!!!r      r   c                    	
 |r|r|rJ |                                  		s!t          j                            | ||          S ddlm} ddlm
 g 	
fd} ||||           S )Nr   )unpack_directory)logc                     |v r                     d|           dS                     d| t          j                            |                                         |           |S )Nz/Skipping installation of %s (namespace package)Fzcopying %s -> %s)warninfor"   r#   dirnameappend)srcdstexcluder>   r   s     r   pfz!install_lib.copy_tree.<locals>.pfh   si    g~~J  uHH'bgooc.B.BCCCOOC   Jr   )r   origr   	copy_treesetuptools.archive_utilr=   	distutilsr>   )r   infileoutfilepreserve_modepreserve_timespreserve_symlinkslevelr=   rG   rF   r>   r   s            @@@r   rI   zinstall_lib.copy_treeW   s     II8IIII%%'' 	E#--dFGDDD 	=<<<<<!!!!!!	 	 	 	 	 	 	 	"---r   c                     t           j                            |           }|                                 rfd|D             S |S )Nc                     g | ]}|v|	S  rT   )r   frF   s     r   
<listcomp>z+install_lib.get_outputs.<locals>.<listcomp>y   s#    ;;;!!7*:*:A*:*:*:r   )rH   r   get_outputsr   )r   outputsrF   s     @r   rW   zinstall_lib.get_outputsu   sQ    "..t44%%'' 	<;;;;w;;;;r   N)r;   r;   r   r;   )__name__
__module____qualname____doc__r   r   r   staticmethodr   r   r   rI   rW   rT   r   r   r   r      s        CC( ( (@ @ @6 6 6 < < \<D D D  " " \". KL   <    r   r   )	r"   r8   	itertoolsr   r   distutils.command.install_libcommandr   rH   rT   r   r   <module>ra      s    				 



 & & & & & & & & , , , , , , , , ,s s s s s$" s s s s sr   