� ,�Re�����ddlZddlZdejvZd�Zd�Zd�Zd�Zd�ZGd�d ��Z Gd �d ��Z e j D]Z e e d e ��e j���e ��Zd �ZGd�d��Zd�Zd�ZdS)�N�__pypy__c��dtjvrdStrtjdkrdSddl}|�d��dS)N� distutils)��ra�Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.)�sys�modules�is_pypy� version_info�warnings�warn)r s ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/_distutils_hack/__init__.py�warn_distutils_presentr s^���#�+�%�%�����3�#�f�,�,� ���O�O�O� �M�M� ?������c��dtjvrdSddl}|�d��d�tjD��}|D]}tj|=�dS)Nrrz"Setuptools is replacing distutils.c�H�g|]}|dks|�d���|�� S)rz distutils.)� startswith)�.0�names r� z#clear_distutils.."s>�� � � � � �;� � �$�/�/�,�"?�"?� � � � � r)rr r r )r �modsrs r�clear_distutilsrsx���#�+�%�%����O�O�O� �M�M�6�7�7�7� � ��K� � � �D� ���� �K�� � ��rc�N�tj�dd��}|dkS)z? Allow selection of distutils by environment variable. �SETUPTOOLS_USE_DISTUTILS�local)�os�environ�get)�whichs r�enabledr +s%�� �J�N�N�5�w� ?� ?�E� �G� �rc��ddl}t��t��5|�d��ddd��n #1swxYwY|�d��}d|jvsJ|j���dt jvsJ�dS)Nrrzdistutils.core� _distutilszsetuptools._distutils.log)� importlibr�shim� import_module�__file__rr )r#�cores r�ensure_local_distutilsr(3s����������� ���-�-���� �,�,�,�-�-�-�-�-�-�-�-�-�-�-����-�-�-�-� � "� "�#3� 4� 4�D� �4�=� (� (� (�$�-� (� (� (� &�c�k� 9� 9� 9� 9� 9� 9s�A�A� Ac�^�t��rt��t��dSdS)z� Ensure that the local copy of distutils is preferred over stdlib. See https://github.com/pypa/setuptools/issues/417#issuecomment-392298401 for more motivation. N)r rr(�rr� do_overrider+Ds8���y�y�!�� � � �� � � � � �!�!rc��eZdZd�Zd�ZdS)� _TrivialRec��||_dS�N)� _patterns)�self�patternss r�__init__z_TrivialRe.__init__Qs ��!����rc�D��t�fd�|jD����S)Nc3� �K�|]}|�vV�� dSr/r*)r�pat�strings �r� z#_TrivialRe.match..Us'�����;�;�S�3�&�=�;�;�;�;�;�;r)�allr0)r1r7s `r�matchz_TrivialRe.matchTs(����;�;�;�;�D�N�;�;�;�;�;�;rN)�__name__� __module__� __qualname__r3r:r*rrr-r-Ps2������"�"�"�<�<�<�<�z/DistutilsMetaFinder.find_spec..`s��D�rr*)r�format�locals�getattr)r1�fullname�path�target� method_name�methods r� find_speczDistutilsMetaFinder.find_specYs]�� � �H�$7�$7��$@�$@� � �F�2�+�2�>�>�V�X�X�>�>� ���{�L�L�9�9���v�x�x�rc� ��|���rdSddl}ddl}ddl} |�d���n#t $rYdSwxYwG�fd�d|jj��}|j� d|���j ���S)Nrzsetuptools._distutilsc� ��eZdZ�fd�Zd�ZdS)�?DistutilsMetaFinder.spec_for_distutils..DistutilsLoaderc���d�_�S)Nr)r;)r1�spec�mods �r� create_modulezMDistutilsMetaFinder.spec_for_distutils..DistutilsLoader.create_moduleys���*�� �� rc��dSr/r*)r1�modules r� exec_modulezKDistutilsMetaFinder.spec_for_distutils..DistutilsLoader.exec_module}s���rN)r;r<r=rRrU)rQs�r�DistutilsLoaderrNxs=������� � � � � � � � � � rrVr)�origin) � is_cpythonr#� importlib.abc�importlib.utilr%� Exception�abc�Loader�util�spec_from_loaderr&)r1r#rVrQs @r�spec_for_distutilsz&DistutilsMetaFinder.spec_for_distutilscs���� �?�?� � � � �F������������� ��)�)�*A�B�B�C�C��� � � � �F�F� ���� � � � � � � �i�m�2� � � ��~�.�.� ���*�*�3�<�/� � � s�;� A �A c�@�tj�d��S)zj Suppress supplying distutils for CPython (build and tests). Ref #2965 and #3007. zpybuilddir.txt)rrG�isfiler*rrrXzDistutilsMetaFinder.is_cpython�s�� �w�~�~�.�/�/�/rc�^�|���rdSt��d�|_dS)zj Ensure stdlib distutils when running under pip. See pypa/pip#8761 for rationale. Nc��dSr/r*r*rrrBz2DistutilsMetaFinder.spec_for_pip..����$�r)�pip_imported_during_buildrr`�r1s r� spec_for_pipz DistutilsMetaFinder.spec_for_pip�s9�� � )� )� +� +� � �F�����".�,����rc�h��ddl}t�fd�|�d��D����S)zO Detect if pip is being imported in a build script. Ref #2355. rNc3�H�K�|]\}}��|��V��dSr/)�frame_file_is_setup)r�frame�line�clss �rr8[email protected]_imported_during_build..�sF����� � �/:�u�d�C� #� #�E� *� *� � � � � � r)� traceback�any� walk_stack)rnros` rrfz-DistutilsMetaFinder.pip_imported_during_build�sX��� ����� � � � �>G�>R�>R�SW�>X�>X� � � � � � rc�^�|j�dd���d��S)zN Return True if the indicated frame suggests a setup.py file. r&�zsetup.py)� f_globalsr�endswith)rls rrkz'DistutilsMetaFinder.frame_file_is_setup�s*�� ��"�"�:�r�2�2�;�;�J�G�G�Grc�2�t��d�|_dS)zp Ensure stdlib distutils when running select tests under CPython. python/cpython#91169 c��dSr/r*r*rrrBz>DistutilsMetaFinder.spec_for_sensitive_tests..�rerN)rr`rgs r�spec_for_sensitive_testsz,DistutilsMetaFinder.spec_for_sensitive_tests�s �� ����".�,����r)r� )�test.test_distutilsztest.test_peg_generatorztest.test_importlibrzr/)r;r<r=rKr`� staticmethodrXrh� classmethodrfrkrxrr �sensitive_testsr*rrr?r?Xs����������� � � �B�0�0��\�0�/�/�/�� � ��[� ��H�H��\�H�/�/�/� � �g� %� %�  � � � � "� ��O�Orr?� spec_for_c�N�ttjvpt��dSdSr/)�DISTUTILS_FINDERr� meta_path� insert_shimr*rr�add_shimr��s$���� �%�6�������6�6�6rc��eZdZd�Zd�ZdS)r$c�"�t��dSr/)r�rgs r� __enter__zshim.__enter__����� � � � � rc�"�t��dSr/)� remove_shim)r1�exc�value�tbs r�__exit__z shim.__exit__�r�rN)r;r<r=r�r�r*rrr$r$�s2�������������rr$c�P�tj�dt��dS)Nr)rr��insertr�r*rrr�r��s!���M����,�-�-�-�-�-rc�r� tj�t��dS#t$rYdSwxYwr/)rr��remover�� ValueErrorr*rrr�r��sF�� � � ���-�.�.�.�.�.�� � � � � ��� ���s �$(� 6�6)rr�builtin_module_namesr rrr r(r+r-r?r}r�setattrrxr�r�r$r�r�r*rr�r�s{�� � � � � � � � � ��0� 0�����& � � ����:�:�:�" !� !� !�<�<�<�<�<�<�<�<�d�d�d�d�d�d�d�d�N � /���D� �G���D����4�����'�&�(�(��7�7�7���������.�.�.� � � � � r