Your IP : 3.15.26.184
�
�Re8 � @ s� d d l Z d d l 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 Gd d � d e � Z
d S) � N)�InstallRequirement)�logger)�Command)�get_installed_distributions)�
pkg_resourcesc sR e Z d Z d Z d Z d Z d Z � f d d � Z d d � Z d d � Z � S)
�
FreezeCommandz1Output installed packages in requirements format.�freezez
%prog [options]c
s� t t | � j | | � | j j d d d d d d d d d d d
d �| j j d d
d d d d d g d d d
d �| j j d d d d d d d d d
d �| j j d | j � d S)Nz-rz
--requirement�dest�requirement�action�store�default�metavar�file�helpzVUse the order in the given requirements file and it's comments when generating output.z-fz--find-links�
find_links�append�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 )�superr �__init__�cmd_opts�
add_option�parser�insert_option_group)�self�args�kw)� __class__� �./tmp/pip-ztkk0jow-build/pip/commands/freeze.pyr s, zFreezeCommand.__init__c C s t j � d S)N)r �move_stdout_to_stderr)r r r r! �
setup_logging- s zFreezeCommand.setup_loggingc C s� | j } | j p g } | j } d } d } | j } | rN t j | � } n g } t j }
x9 t j D]. } | j
d � rg | j | j d � � qg qg Wx* | D]"