� ��^i����ddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z m Z ddlmZddlmZdd lmZdd lmZdd lmZmZdd lmZdd lmZmZeje��Z Gd�de ��Z!dS)�N)�Values)�List)� WheelCache)� cmdoptions)�RequirementCommand� with_cleanup)�SUCCESS)� CommandError)�InstallRequirement)�get_requirement_tracker)� ensure_dir�normalize_path)� TempDirectory)�build�should_build_for_wheel_commandc�N�eZdZdZdZd d�Zededee de fd���Z dS) � WheelCommanda� Build Wheel archives for your requirements and dependencies. Wheel is a built-package format, and offers the advantage of not recompiling your software during every install. For more details, see the wheel docs: https://wheel.readthedocs.io/en/latest/ Requirements: setuptools>=0.8, and wheel. 'pip wheel' uses the bdist_wheel setuptools extension from the wheel package to build individual wheels. z� %prog [options] ... %prog [options] -r ... %prog [options] [-e] ... %prog [options] [-e] ... %prog [options] ...�returnNc���|j�ddddtjd���|j�t j����|j�t j����|j�t j����|j�t j����|j�t j ����|j�t j ����|j�t j ����|j�t j ����|j�t j ����|j�t j����|j�t j����|j�t j����|j�t j����|j�ddd d d � ��|j�t j����|j�t j����|j�d d d d���|j�t j����t jtj|j��}|j�d|��|j�d|j��dS)Nz-wz --wheel-dir� wheel_dir�dirzLBuild wheels into , where the default is the current working directory.)�dest�metavar�default�helpz --no-verify� no_verify� store_trueFz%Don't verify if built wheel is valid.)r�actionrrz--prezYInclude pre-release and development versions. By default, pip only finds stable versions.)rrrr)�cmd_opts� add_option�os�curdirr� no_binary� only_binary� prefer_binary�no_build_isolation� use_pep517� no_use_pep517� constraints�editable� requirements�src�ignore_requires_python�no_deps� progress_bar� build_options�global_options�require_hashes�make_option_group� index_group�parser�insert_option_group)�self� index_optss ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/commands/wheel.py� add_optionszWheelCommand.add_options+s��� � � � � � ����I�-� !� � � � � � � ��!5�!7�!7�8�8�8� � � � ��!7�!9�!9�:�:�:� � � � ��!9�!;�!;�<�<�<� � � � ��!>�!@�!@�A�A�A� � � � ��!6�!8�!8�9�9�9� � � � ��!9�!;�!;�<�<�<� � � � ��!7�!9�!9�:�:�:� � � � ��!4�!6�!6�7�7�7� � � � ��!8�!:�!:�;�;�;� � � � ���!1�!1�2�2�2� � � � ��!B�!D�!D�E�E�E� � � � ��!3�!5�!5�6�6�6� � � � ��!8�!:�!:�;�;�;� � � � � ����8� !� � � � � � � ��!9�!;�!;�<�<�<� � � � ��!:�!<�!<�=�=�=� � � � � ���2� !� � � � � � � ��!:�!<�!<�=�=�=��1� � "� �K� � � � � �'�'��:�6�6�6� � �'�'��4�=�9�9�9�9�9��options�argsc ��tj|��|�|��}|�||��}t |j|j��}t|j��|_t|j��|� t����}t|j dd���}|�||||��}|�||||||jd���} |�| ||||j|j���} |�|��| �|d���} g} | j���D]C} | jr| �| ���t3| ��r| �| ���Dt7| ||j |jpg|jpg���\}}|D]�} | jr | jjsJ�| j sJ� tCj"| j |j���A#tF$r@}tH�%d | j&|��|�| ��Yd}~��d}~wwxYwtO|��d krtQd ���tRS) N�wheelT)�delete�kind�globally_managedF)�temp_build_dirr<� req_tracker�session�finder� download_dir� use_user_site)�preparerrFr<� wheel_cacher-r')�check_supported_wheels)rJ�verifyr0r1z Building wheel for %s failed: %srz"Failed to build one or more wheels)*r�check_install_build_global�get_default_session�_build_package_finderr� cache_dir�format_controlrrr � enter_contextr r�no_clean�get_requirements�make_requirement_preparer� make_resolverr-r'�trace_basic_info�resolver+�values�is_wheel�save_linked_requirementr�appendrrr0r1�link�local_file_path�shutil�copy�OSError�logger�warning�name�lenr r )r7r<r=rErFrJrD� directory�reqsrI�resolver�requirement_set� reqs_to_build�req�build_successes�build_failures�es r9�runzWheelCommand.runes����-�g�6�6�6��*�*�7�3�3���+�+�G�W�=�=�� ��!2�G�4J�K�K� �*�7�+<�=�=����7�$�%�%�%��(�(�)@�)B�)B�C�C� �!��'�'��!� � � � � �$�$�T�7�F�G�D�D���1�1�$��#��� �*��2� � ���%�%����#�#*�#A��)� &� � �� ���f�%�%�%�"�*�*�4��*�M�M��24� �"�/�6�6�8�8� *� *�C��|� *��0�0��5�5�5�5�/��4�4� *��$�$�S�)�)�)��+0� �#��)�)�!�/�5�2�"�1�7�R� + �+ �+ �'���#� +� +�C��8� 1��� 1� 1� 1�1��&� &� &�&� +�� �C�/��1B�C�C�C�C��� +� +� +����6��H����� �%�%�c�*�*�*�*�*�*�*�*�����  +���� �~� � �!� #� #��C�D�D� D��s�7H� I!�!6I�I!)rN) �__name__� __module__� __qualname__�__doc__�usager:rrr�str�intro�r;r9rrs|������ � � 0�E�8:�8:�8:�8:�t�K�6�K��c��K�s�K�K�K��\�K�K�Kr;r)"�loggingr!r_�optparser�typingr�pip._internal.cacher�pip._internal.clir�pip._internal.cli.req_commandrr�pip._internal.cli.status_codesr �pip._internal.exceptionsr �pip._internal.req.req_installr �pip._internal.req.req_trackerr �pip._internal.utils.miscr r�pip._internal.utils.temp_dirr�pip._internal.wheel_builderrr� getLoggerrprbrrwr;r9�r�s[������ � � � � � � � �������������*�*�*�*�*�*�(�(�(�(�(�(�J�J�J�J�J�J�J�J�2�2�2�2�2�2�1�1�1�1�1�1�<�<�<�<�<�<�A�A�A�A�A�A�?�?�?�?�?�?�?�?�6�6�6�6�6�6�M�M�M�M�M�M�M�M� �� �8� $� $��\�\�\�\�\�%�\�\�\�\�\r;