a
    ”¼de0  ã                   @   s¸   d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl	m
Z
 d dlmZ d dlmZ d d	lmZ d d
lmZ d dlmZ h d£Zer¤d dlmZ d dlmZ G dd„ deƒZdS )é    )Úabsolute_importN)Ú
WheelCache)Ú
cmdoptions)ÚCommand)ÚSUCCESS)ÚFormatControl)Úfreeze)Ústdlib_pkgs)Ú
deprecated)ÚMYPY_CHECK_RUNNING>   zpkg-resourcesZ
distributeÚwheelÚ
setuptoolsÚpip)ÚValues)ÚListc                   @   s(   e Zd ZdZdZdZdd„ Zdd„ ZdS )	ÚFreezeCommandzx
    Output installed packages in requirements format.

    packages are listed in a case-insensitive sorted order.
    z
      %prog [options])úext://sys.stderrr   c              	   C   sÊ   | j jddddg ddd� | j jdd	d
dg ddd� | j jddddddd� | j jdddddd� | j  t ¡ ¡ | j jdddd d t¡¡d� | j jddddd� | j  t ¡ ¡ | j 	d| j ¡ d S ) 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-fz--find-linksÚ
find_linksÚURLz<URL for finding packages, which will be added to the output.z-lz--localÚlocalÚ
store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)r   r   r   r   z--userÚuserz,Only output packages installed in user-site.z--allÚ
freeze_allz,Do not skip these packages in the output: {}z, )r   r   r   z--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)Úself© r,   úV/var/www/sistema_ama/venv/lib/python3.9/site-packages/pip/_internal/commands/freeze.pyÚadd_options!   s^    ú	úûûÿüüzFreezeCommand.add_optionsc                 C   s´   t tƒ tƒ ƒ}t|j|ƒ}ttƒ}|js2| t¡ |jrD| |j¡ t	 
|¡ |jrdtdd ddd� t|j|j|j|j|j|j|||jd�	}tf i |¤ŽD ]}tj |d ¡ qštS )Nz0--find-links option in pip freeze is deprecated.z21.2im#  )ÚreplacementÚgone_inÚissue)	Úrequirementr   Ú
local_onlyÚ	user_onlyÚpathsÚisolatedÚwheel_cacheÚskipr!   Ú
)r   Úsetr   Ú	cache_dirr	   r    Úupdater'   Úexcludesr   Úcheck_list_path_optionr   r
   Údictr   r   r   ÚpathÚisolated_moder!   r   ÚsysÚstdoutÚwriter   )r+   ÚoptionsÚargsÚformat_controlr7   r8   Zfreeze_kwargsÚliner,   r,   r-   ÚrunQ   s:    

ü÷zFreezeCommand.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚusageÚlog_streamsr.   rI   r,   r,   r,   r-   r      s
   0r   )Ú
__future__r   rB   Úpip._internal.cacher   Zpip._internal.clir   Úpip._internal.cli.base_commandr   Úpip._internal.cli.status_codesr   Ú#pip._internal.models.format_controlr   Zpip._internal.operations.freezer   Úpip._internal.utils.compatr	   Úpip._internal.utils.deprecationr
   Úpip._internal.utils.typingr   r'   Úoptparser   Útypingr   r   r,   r,   r,   r-   Ú<module>   s   