� ,�Re#��^�ddlZddlZddlmZmZddlmcmZGd�dej��ZdS)�N)�product�starmapc�f�eZdZdZd�Zd�Zd�Zed���Zd�Z ed���Z d d �Z d �Z d S)� install_libz9Don't add compiled flags to filenames of non-Python filesc��|���|���}|�|�|��dSdS�N)�build�install� byte_compile)�self�outfiless ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/install_lib.py�runzinstall_lib.run sD�� � � � � � ��<�<�>�>�� � � � � �h� '� '� '� '� '� � �c�����fd�����D��}t|������}tt �j|����S)z� Return a collections.Sized collections.Container of paths to be excluded for single_version_externally_managed installations. c3�L�K�|]}��|��D]}|V���dSr)� _all_packages)�.0�ns_pkg�pkgr s �r� z-install_lib.get_exclusions..s\����� � ���)�)�&�1�1� � �� � � � � � � � r)�_get_SVEM_NSPsr�_gen_exclusion_paths�setr�_exclude_pkg_path)r � all_packages� excl_specss` r�get_exclusionszinstall_lib.get_exclusionsso���  � � � ��-�-�/�/� � � � � �\�4�+D�+D�+F�+F�G�G� ��7�4�1�:�>�>�?�?�?rc�l�|�d��|gz}tjj|jg|�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 rrzinstall_lib._exclude_pkg_paths8�� � � �#���.�!1�1���w�|�D�,�5�u�5�5�5�5rc#�PK�|r!|V�|�d��\}}}|�dSdS)zn >>> list(install_lib._all_packages('foo.bar.baz')) ['foo.bar.baz', 'foo.bar', 'foo'] r N)� rpartition)�pkg_name�sep�childs rrzinstall_lib._all_packages'sQ���� � <��N�N�N�#+�#6�#6�s�#;�#;� �H�c�5�� <� <� <� <� %s)�warn�infor"r#�dirname�append)�src�dst�excluder>r s ���r�pfz!install_lib.copy_tree..pfhsi����g�~�~����J������u� �H�H�'��b�g�o�o�c�.B�.B� C� C� C� �O�O�C� � � ��Jr)r�origr� copy_tree�setuptools.archive_utilr=� distutilsr>) r �infile�outfile� preserve_mode�preserve_times�preserve_symlinks�levelr=rGrFr>r s @@@rrIzinstall_lib.copy_treeWs�������I��I�8I�I�I�I��%�%�'�'��� E��#�-�-�d�F�G�D�D� D� =�<�<�<�<�<�!�!�!�!�!�!��� � � � � � � � ����"�-�-�-��rc���tj�|��}|�����r�fd�|D��S|S)Nc���g|]}|�v�|�� S�rT)r�frFs �r� z+install_lib.get_outputs..ys#���;�;�;�!�!�7�*:�*:�A�*:�*:�*:r)rHr� get_outputsr)r �outputsrFs @rrWzinstall_lib.get_outputsusQ����"�.�.�t�4�4���%�%�'�'�� � <�;�;�;�;�w�;�;�;� ;��rN)r;r;rr;) �__name__� __module__� __qualname__�__doc__rrr� staticmethodrrrrIrWrTrrrrs�������C�C�(�(�(� @� @� @�6�6�6��<�<��\�<�D�D�D� �"�"��\�"�.KL�����<����rr) r"r8� itertoolsrr�distutils.command.install_lib�commandrrHrTrr�ras��� � � � � � � � �&�&�&�&�&�&�&�&�,�,�,�,�,�,�,�,�,�s�s�s�s�s�$�"�s�s�s�s�sr