� ��^i� ���ddlZddlmZddlmZddlmZddlmZddl m Z ddl m Z ddl mZhd �ZGd �d e��ZdS) �N)�Values)�List)� cmdoptions)�Command)�SUCCESS)�freeze)� stdlib_pkgs>�pip�wheel� distribute� setuptoolsc�B�eZdZdZdZdZd d�Zdedee de fd �Z dS) � FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options])�ext://sys.stderrr�returnNc ��|j�ddddgdd���|j�dd d d d d ���|j�ddd d d���|j�tj����|j�ddd d�d�t �������|j�ddd d���|j�tj����|j� d|j��dS)Nz-rz --requirement� requirements�append�filez}Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.)�dest�action�default�metavar�helpz-lz--local�local� store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)rrrrz--user�userz,Only output packages installed in user-site.z--all� freeze_allz,Do not skip these packages in the output: {}z, )rrrz--exclude-editable�exclude_editablez%Exclude editable package from output.r) �cmd_opts� add_optionr� list_path�format�join�DEV_PKGS� list_exclude�parser�insert_option_group)�selfs ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/commands/freeze.py� add_optionszFreezeCommand.add_optionssr�� � � � � � �����'� !� � � � � � � � � ����/� !� � � � � � � � ����?� !� � � � � � � ��!5�!7�!7�8�8�8� � � � � �����f�T�Y�Y�x�0�0�1�1� !� � � � � � � � �#��8� !� � � � � � � ��!8�!:�!:�;�;�;� � �'�'��4�=�9�9�9�9�9��options�argsc ��tt��}|js|�t��|jr|�|j��t j|��t|j |j |j |j |j ||j���D]$}tj�|dz���%t$S)N)� requirement� local_only� user_only�paths�isolated�skipr� )�setr r�updater%�excludesr�check_list_path_optionrrrr�path� isolated_moder�sys�stdout�writer)r)r-r.r5�lines r*�runzFreezeCommand.runMs����;�����!� "� �K�K�� !� !� !� � � *� �K�K��(� )� )� )��)�'�2�2�2���,��}��l��,��*��$�5� � � � *� *�D� �J� � �T�D�[� )� )� )� )��r,)rN) �__name__� __module__� __qualname__�__doc__�usage� log_streamsr+rr�str�intrA�r,r*rrsl��������  �E�:�K�2:�2:�2:�2:�h�6���c���s������r,r)r=�optparser�typingr�pip._internal.clir�pip._internal.cli.base_commandr�pip._internal.cli.status_codesr�pip._internal.operations.freezer�pip._internal.utils.compatr r%rrJr,r*�rRs��� � � � �������������(�(�(�(�(�(�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2�2� 7� 7� 7��S�S�S�S�S�G�S�S�S�S�Sr,