HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/site-packages/setuptools/command/__pycache__/install_lib.cpython-310.pyc
o

��i#�@sHddlZddlZddlmZmZddlmmZGdd�dej�ZdS)�N)�product�starmapc@s\eZdZdZdd�Zdd�Zdd�Zedd	��Zd
d�Z	edd
��Z
	ddd�Zdd�ZdS)�install_libz9Don't add compiled flags to filenames of non-Python filescCs*|��|��}|dur|�|�dSdS�N)�build�install�byte_compile)�self�outfiles�r�I/usr/local/lib/python3.10/site-packages/setuptools/command/install_lib.py�run
s
�zinstall_lib.runcs4�fdd����D�}t|����}tt�j|��S)z�
        Return a collections.Sized collections.Container of paths to be
        excluded for single_version_externally_managed installations.
        c3s$�|]
}��|�D]}|Vq	qdSr)�
_all_packages)�.0Zns_pkg�pkg�r	rr�	<genexpr>s����z-install_lib.get_exclusions.<locals>.<genexpr>)�_get_SVEM_NSPsr�_gen_exclusion_paths�setr�_exclude_pkg_path)r	Zall_packagesZ
excl_specsrrr�get_exclusionss

�zinstall_lib.get_exclusionscCs&|�d�|g}tjj|jg|�R�S)zw
        Given a package name and exclusion path within that package,
        compute the full exclusion path.
        �.)�split�os�path�joinZinstall_dir)r	rZexclusion_path�partsrrrrszinstall_lib._exclude_pkg_pathccs(�|r|V|�d�\}}}|sdSdS)zn
        >>> list(install_lib._all_packages('foo.bar.baz'))
        ['foo.bar.baz', 'foo.bar', 'foo']
        rN)�
rpartition)�pkg_name�sep�childrrrr's
��zinstall_lib._all_packagescCs,|jjsgS|�d�}|j}|r|jjSgS)z�
        Get namespace packages (list) but only for
        single_version_externally_managed installations and empty otherwise.
        r)�distribution�namespace_packagesZget_finalized_commandZ!single_version_externally_managed)r	Zinstall_cmdZsvemrrrr1s

zinstall_lib._get_SVEM_NSPsccsd�dVdVdVttd�sdStj�ddtjj�}|dV|d	V|d
V|dVdS)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�sysrrrr$�	cache_tag)�baserrrrAs�
�


z install_lib._gen_exclusion_paths�rc	sh|r|r|rJ�|����stj�|||�Sddlm}ddlm�g����fdd�}||||��S)Nr)�unpack_directory)�logcs<|�vr��d|�dS��d|tj�|����|�|S)Nz/Skipping installation of %s (namespace package)Fzcopying %s -> %s)�warn�inforr�dirname�append)�src�dst��excluder,r
rr�pfhs�
z!install_lib.copy_tree.<locals>.pf)r�origr�	copy_treeZsetuptools.archive_utilr+�	distutilsr,)	r	�infile�outfileZ
preserve_modeZpreserve_timesZpreserve_symlinks�levelr+r5rr3rr7Ws
zinstall_lib.copy_treecs.tj�|�}|����r�fdd�|D�S|S)Ncsg|]}|�vr|�qSrr)r�f�r4rr�
<listcomp>ysz+install_lib.get_outputs.<locals>.<listcomp>)r6r�get_outputsr)r	Zoutputsrr=rr?us
zinstall_lib.get_outputsN)r*r*rr*)
�__name__�
__module__�__qualname__�__doc__r
rr�staticmethodrrrr7r?rrrrrs
	

�r)	rr'�	itertoolsrrZdistutils.command.install_lib�commandrr6rrrr�<module>s