� ,�Re����ddlZddlZddlZddlZddlZddlZddlmZddlm Z ddl Z ddl m Z ddl mZd�Zd�Zd �ZdS) �N)�log)�DistutilsError)�Wheel�)�SetuptoolsDeprecationWarningc��t|t��r|���St|ttf��sJ�|S)z8Ensure find-links option end-up being a list of strings.)� isinstance�str�split�tuple�list)� find_linkss ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/installer.py�_fixup_find_linksrsF���*�c�"�"�"����!�!�!� �j�5�$�-� 0� 0�0�0�0� ��c � �tjdt�� tjd��n5#tj$r#|�dtj��YnwxYwt|��}|� d��}d|vrtd���dtj vo dtj v}d tj vrd }nd |vr|d d }nd }d |vr#t|d d ��d d �ng}|jr|�|j��tj�|�����}tj��}tj|��D]}||vr|�|��r|cS� t/j��5} t2jdddddd| g} |r| �d��|�| �d|f��|pgD]} | �d| f���| �|jpt;|���� t=j| ��n4#t<j $r"} tt;| ����| �d } ~ wwxYwtCtEj"tj�#| d����d��} tj�#|| �$����}| �%|��tj&|tj�#|d����}tj'�(||���}|cd d d ��S#1swxYwYd S)zLFetch an egg needed for building. Use pip/wheel to fetch/build a wheel.z\setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.�wheelz,WARNING: The wheel package is not available.� easy_install� allow_hostszQthe `allow-hosts` option is not supported when using pip to install requirements.� PIP_QUIET� PIP_VERBOSE� PIP_INDEX_URLN� index_urlrrz-m�pipz--disable-pip-version-checkz --no-depsz-wz--quietz --index-urlz --find-linksz*.whlrzEGG-INFO)�metadata))�warnings�warnr� pkg_resources�get_distribution�DistributionNotFound�announcer�WARN� strip_marker�get_option_dictr�os�environr�dependency_links�extend�path�realpath�get_egg_cache_dir� Environment�find_distributions�can_add�tempfile�TemporaryDirectory�sys� executable�append�urlr � subprocess� check_call�CalledProcessErrorr�glob�join�egg_name�install_as_egg� PathMetadata� Distribution� from_filename)�dist�req�opts�quietrr�eggs_dir� environment�egg_dist�tmpdir�cmd�link�er� dist_location� dist_metadatas r�fetch_build_eggrLs��� �M� /�$���� P��&�w�/�/�/�/�� � -�P�P�P� � � �D�c�h�O�O�O�O�O�P���� �s� � �C� � � �� /� /�D������G�H�H� H� �r�z� )� M�m�2�:�.M�E��"�*�$�$�� � � �� � ���%�a�(� � �� �7C�t�7K�7K��$�|�,�Q�/�0�0����3�3� �� ��1����$�/�0�0�0��w���� 6� 6� 8� 8�9�9�H��+�-�-�K�!�4�X�>�>���� �s�?�?�{�2�2�8�<�<�?��O�O�O�� � $� &� &��&� �N�D�%� )� �[� �&�  �� � "� �J�J�y� !� !� !� � � �J�J� �y�1� 2� 2� 2��$�"� /� /�D� �J�J���-� .� .� .� .� � � �3�7�&�c�#�h�h�'�'�'� 0� � !�#� &� &� &� &���,� 0� 0� 0� ��Q���(�(�a� /����� 0�����d�i��� � �V�W� =� =�>�>�q�A�B�B���� � �X�u�~�~�/?�/?�@�@� � ���]�+�+�+�%�2� �2�7�<�<� �z�B�B�D�D� ��)�7�7� �M�8�3�3���9��������������������sG�1�/A#�"A#�4B M8�I�M8�J�%J�J�C$M8�8M<�?M<c�l�tj�t|����}d|_|S)z� Return a new requirement without the environment marker to avoid calling pip with something like `babel; extra == "i18n"`, which would always be ignored. N)r� Requirement�parser �marker)r@s rr#r#_s,�� � #� )� )�#�c�(�(� 3� 3�C��C�J� �Jr)r8r%r5r1r/r� distutilsr�distutils.errorsrr�setuptools.wheelr�_deprecation_warningrrrLr#�rr�rVs��� � � � � � � � ����� � � � ���������������+�+�+�+�+�+�����"�"�"�"�"�"�>�>�>�>�>�>����E�E�E�P � � � � r