Your IP : 3.144.37.178
3
�Pf � @ sd d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ d
ZG dd� de�Z
dS )� )�absolute_importN)�stdlib_pkgs)�Command)�freeze)�
WheelCache�pip�
setuptools�
distribute�wheelc s8 e Zd ZdZdZdZdZd
Z� fdd�Zdd � Z � Z
S )�
FreezeCommandzx
Output installed packages in requirements format.
packages are listed in a case-insensitive sorted order.
r z
%prog [options]z1Output installed packages in requirements format.�ext://sys.stderrc s� t t| �j||� | jjddddg ddd� | jjdd d
dg ddd� | jjd
dddddd� | jjdddddd� | jjdddddjt� d� | jjd| 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_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.)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: %sz, )r r r r ) �superr �__init__Zcmd_optsZ
add_option�join�DEV_PKGS�parserZinsert_option_group)�self�args�kw)� __class__� �/usr/lib/python3.6/freeze.pyr sD zFreezeCommand.__init__c
C s� t jjt� t� �}t|j|�}tt�}|js6|jt � t
|j|j|j
|j|j|j||d�}x"tf |�D ]}tjj|d � qfW d S )N)Zrequirementr Z
local_onlyZ user_onlyZ
skip_regex�isolated�wheel_cache�skip�
)r �indexZ
FormatControl�setr � cache_dirr r �updater �dictr
r r r Zskip_requirements_regexZ
isolated_moder �sys�stdout�write)r Zoptionsr Zformat_controlr&