%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/setuptools/command/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/setuptools/command/__pycache__/install_lib.cpython-312.pyc

�

T��f���`�ddlZddlZddlmZmZddlmcmZGd�dej�Zy)�N)�product�starmapc�j�eZdZdZd�Zd�Zd�Zd�Zd�Ze	d��Z
d�Ze	d	��Z				d
d
�Z
d�Zy)�install_libz9Don't add compiled flags to filenames of non-Python filesc�^�tjj|�d|_d|_y�N)�origr�initialize_options�	multiarch�install_layout)�selfs �@/usr/lib/python3/dist-packages/setuptools/command/install_lib.pyr
zinstall_lib.initialize_options
s%�����+�+�D�1����"���c���tjj|�|jdd�|jdk(r2t
jdddk\rddl}|jd�|_	yyy)N�install)rr�deb�)�rr�	MULTIARCH)
r	r�finalize_options�set_undefined_optionsr�sys�version_info�	sysconfig�get_config_varr)r
rs  rrzinstall_lib.finalize_optionssg�����)�)�$�/��"�"�9�-P�Q����%�'�C�,<�,<�R�a�,@�F�,J��&�5�5�k�B�D�N�-K�'rc�l�|j�|j�}|�|j|�yyr)�buildr�byte_compile)r
�outfiless  r�runzinstall_lib.runs/���
�
���<�<�>�������h�'� rc����fd��j�D�}t|�j��}tt	�j
|��S)z�
        Return a collections.Sized collections.Container of paths to be
        excluded for single_version_externally_managed installations.
        c3�N�K�|]}�j|�D]}|����y�wr)�
_all_packages)�.0�ns_pkg�pkgr
s   �r�	<genexpr>z-install_lib.get_exclusions.<locals>.<genexpr>"s9�����
���)�)�&�1�
��
�
��
�s�"%)�_get_SVEM_NSPsr�_gen_exclusion_paths�setr�_exclude_pkg_path)r
�all_packages�
excl_specss`  r�get_exclusionszinstall_lib.get_exclusionssJ���

��-�-�/�
���\�4�+D�+D�+F�G�
��7�4�1�1�:�>�?�?rc��|jd�|gz}tjj|jg|���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    rr+zinstall_lib._exclude_pkg_path+s7��
�	�	�#��.�!1�1���w�w�|�|�D�,�,�5�u�5�5rc#�JK�|r|��|jd�\}}}|r�yy�w)zn
        >>> list(install_lib._all_packages('foo.bar.baz'))
        ['foo.bar.baz', 'foo.bar', 'foo']
        r0N)�
rpartition)�pkg_name�sep�childs   rr#zinstall_lib._all_packages3s,������N�#+�#6�#6�s�#;� �H�c�5��s�#�#c��|jjsgS|jd�}|j}|r|jjSgS)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   rr(zinstall_lib._get_SVEM_NSPs=sL��� � �3�3��I��0�0��;���<�<��7;�t� � �3�3�C��Crc#��K�d��d��d��ttd�sytjj	ddtj
jz�}|dz��|d	z��|d
z��|dz��y�w)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)�hasattrrr2r3r4rE�	cache_tag)�bases rr)z install_lib._gen_exclusion_pathsMsw�����������s�,�-���w�w�|�|�M�;��9K�9K�9U�9U�+U�V���V�m���V�m���\�!�!��\�!�!�s�A6A8c������
���|r|r|rJ��j���s@ddl}�j|j_t
jj�||�Sddlm	}ddl
m�
g��jrRddl}	|	jd���j�j�ddz�rd�n�dd�d�j��dd������
���fd�}
||||
��S)Nr)�unpack_directory)�log�
EXT_SUFFIX����-c���|�vr�jd|�y�jre�rc|j��rR|j��sA|j���}�j	dt
jj|���j	d|t
jj|���j|�|S)Nz/Skipping installation of %s (namespace package)Fzrenaming extension to %szcopying %s -> %s)
�warnr�endswith�replace�infor2r3�basename�dirname�append)�src�dst�exclude�
ext_suffixrL�
new_suffixrr
s  ������r�pfz!install_lib.copy_tree.<locals>.pf�s�����g�~����J�C�P���~�~�*����j�1I�RU�R^�R^�_i�Rj��k�k�*�j�9�����3�R�W�W�5E�5E�c�5J�K��H�H�'��b�g�g�o�o�c�.B�C��O�O�C� ��Jr)r.�distutils.dir_utilr�dir_util�
_multiarchr	r�	copy_tree�setuptools.archive_utilrK�	distutilsrLrrrR)r
�infile�outfile�
preserve_mode�preserve_times�preserve_symlinks�levelrcrKrr]rZr[rLr\rs`          @@@@@rrazinstall_lib.copy_treebs������8I�I�I��%�%�'���%�,0�N�N�I���)��#�#�-�-�d�F�G�D�D�	=�!����>�>��"�1�1�<�@�J��"�"�4�>�>�J�r�s�O�#C�D�!�
�*4�S�b�/�4�>�>�:�VX�VY�?�[�
�	�	�	���"�-��rc��tjj|�}|j�}|r|D�cgc]	}||vs�|��c}S|Scc}wr)r	r�get_outputsr.)r
�outputsrZ�fs    rrkzinstall_lib.get_outputs�sK���"�"�.�.�t�4���%�%�'���&�;�!�!�7�*:�A�;�;����<s�	A	�A	N)�rnrrn)�__name__�
__module__�__qualname__�__doc__r
rr r.r+�staticmethodr#r(r)rark�rrrrsg��C�#�
C�(�@�6��<��<�D� �"��"�0����.�`rr)	r2r�	itertoolsrr�distutils.command.install_lib�commandrr	rtrr�<module>rxs(��	�
�&�,�,�P�$�"�"�Pr

Zerion Mini Shell 1.0