Your IP : 18.218.162.180
3
�Pf�@sdddlmZddlZddlZddlmZddlmZddlm Z ddl
mZd
ZGdd�de�Z
dS)�)�absolute_importN)�stdlib_pkgs)�Command)�freeze)�
WheelCache�pip�
setuptools�
distribute�wheelcs8eZdZdZdZdZdZd
Z�fdd�Zdd �Z �Z
S)�
FreezeCommandzx
Output installed packages in requirements format.
packages are listed in a case-insensitive sorted order.
rz
%prog [options]z1Output installed packages in requirements format.�ext://sys.stderrc s�tt|�j||�|jjddddgddd�|jjdd d
dgddd�|jjd
dddddd�|jjdddddd�|jjdddddjt�d�|jjd|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-fz--find-links�
find_linksZURLz<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.)rrrrz--user�userz,Only output packages installed in user-site.z--all�
freeze_allz,Do not skip these packages in the output: %sz, )rrrr) �superr�__init__Zcmd_optsZ
add_option�join�DEV_PKGS�parserZinsert_option_group)�self�args�kw)� __class__��/usr/lib/python3.6/freeze.pyrsDzFreezeCommand.__init__c
Cs�tjjt�t��}t|j|�}tt�}|js6|jt �t
|j|j|j
|j|j|j||d�}x"tf|�D]}tjj|d�qfWdS)N)ZrequirementrZ
local_onlyZ user_onlyZ
skip_regex�isolated�wheel_cache�skip�
)r�indexZ
FormatControl�setr� cache_dirrr�updater�dictr
rrrZskip_requirements_regexZ
isolated_moder�sys�stdout�write)rZoptionsr Zformat_controlr&r'Z
freeze_kwargs�liner#r#r$�runEs
zFreezeCommand.run)rr)�__name__�
__module__�__qualname__�__doc__�nameZusageZsummaryZlog_streamsrr2�
__classcell__r#r#)r"r$rs*r)rrr r
)Z
__future__rr.rZ
pip.compatrZpip.basecommandrZpip.operations.freezerZ pip.wheelrrrr#r#r#r$�<module>s
?>