� ,�Re+����ddlmZddlZddlZddlZddlZddlmcmZ ddl Z e jZ Gd�de j��Zd�e jj D��ej ze_ dS)�)�DistutilsArgErrorNc��eZdZdZejjddgzZejjddgzZdd�fdd �fgZe e��Z d �Z d �Z d �Z d �Zed���Zd�ZdS)�installz7Use easy_install to install the package, w/dependencies)�old-and-unmanageableNzTry not to use this!)�!single-version-externally-managedNz5used by system package builders to create 'flat' eggsrr�install_egg_infoc��dS�NT���selfs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/install.py�zinstall.s��$���install_scriptsc��dSr r r s rrzinstall.s���rc��tjdtj��tj�|��d|_d|_dS)NzRsetup.py install is deprecated. Use build and pip and other standards-based tools.) �warnings�warn� setuptools�SetuptoolsDeprecationWarning�origr�initialize_options�old_and_unmanageable�!single_version_externally_managedr s rrzinstall.initialize_options sP��� � A� � 3� � � � � �'�'��-�-�-�$(��!�15��.�.�.rc��tj�|��|jr d|_dS|jr|js|jst d���dSdSdS)NTzAYou must specify --record or --root when building system packages)rr�finalize_options�rootr�recordrr s rrzinstall.finalize_options,s��� � �%�%�d�+�+�+� �9� �59�D� 2� 2� 2� � 3� ��9� �T�[� �'� ���� � � � � � rc�|�|js|jrtj�|��Sd|_d|_dS)N�)rrrr�handle_extra_path� path_file� extra_dirsr s rr"zinstall.handle_extra_path7s@�� �9� 8��>� 8��<�1�1�$�7�7� 7��������rc��|js|jrtj�|��S|�t j����s!tj�|��dS|���dS)N) rrrr�run�_called_from_setup�inspect� currentframe�do_egg_installr s rr&z install.runAs��� � $� *��(N� *��<�#�#�D�)�)� )��&�&�w�';�'=�'=�>�>� "� �L� � �T� "� "� "� "� "� � � � !� !� !� !� !rc��|�Ed}tj|��tj��dkrd}tj|��dSt j|��}|dd�D]a}|dd�\}t j|��}|j�d d ��}|d kr |j d kr�O|d ko |j dkcSdS)a� Attempt to detect whether run() was called from setup() or by another command. If called by setup(), the parent caller will be the 'run_command' method in 'distutils.dist', and *its* caller will be the 'run_commands' method. If called any other way, the immediate caller *might* be 'run_command', but it won't have been called by 'run_commands'. Return True in that case or if a call stack is unavailable. Return False otherwise. Nz4Call stack not available. bdist_* commands may fail.� IronPythonz6For best results, pass -X:Frames to enable call stack.T����__name__r!zsetuptools.dist� run_commandzdistutils.dist� run_commands) rr�platform�python_implementationr(�getouterframes� getframeinfo� f_globals�get�function)� run_frame�msg�frames�frame�caller�info� caller_modules rr'zinstall._called_from_setupLs��� � �H�C� �M�#� � � ��-�/�/�<�?�?�N��� �c�"�"�"��4��'� �2�2���A�a�C�[� � �E��B�Q�B�i�G�F��'��/�/�D�"�,�0�0��R�@�@�M�� 1�1�1�d�m�}�6T�6T���!1�1�4��M�^�3� � � � � rc��|j�d��}||jd|j|j���}|���d|_|j�tjd����|� d��|j� d��j g}tj r |�dtj ��||_|�d� ��dt_ dS) N� easy_install�x)�argsrr�.z*.egg� bdist_eggrF)�show_deprecation)� distribution�get_command_classrr�ensure_finalized�always_copy_from� package_index�scan�globr1�get_command_obj� egg_outputr�bootstrap_install_from�insertrDr&)r rB�cmdrDs rr*zinstall.do_egg_installns����(�:�:�>�J�J� ��l� � �C�d�i�� � � � �� ������"��� ����t�y��1�1�2�2�2� ����%�%�%��!�1�1�+�>�>�I�J�� � ,� >� �K�K��:�<� =� =� =���� �����'�'�'�,0� �)�)�)rN)r0� __module__� __qualname__�__doc__rr� user_options�boolean_options� new_commands�dict�_ncrrr"r&� staticmethodr'r*r rrrrs�������A�A��<�,�>� B�0��L� �l�2�� C�6��O� �.�.�/� �-�-�.��L� �$�|� � �C� 6� 6� 6� � � ���� "� "� "�����\��B1�1�1�1�1rrc�:�g|]}|dtjv�|��S)r)rr[)�.0rSs r� r_�s(��K�K�K�S��Q��w�{�1J�1J�S�1J�1J�1Jr)�distutils.errorsrr(rNrr3�distutils.command.install�commandrrr�_install� sub_commandsrYr rr�res���.�.�.�.�.�.����� � � � ���������(�(�(�(�(�(�(�(�(����� �<��u1�u1�u1�u1�u1�d�l�u1�u1�u1�tL�K�D�L�-�K�K�K� ������r