
^V
                 @   s   d  d l  m 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 Z Gd d   d e  Z d S)    )absolute_importN)stdlib_pkgs)Command)freeze)
WheelCachepip
setuptools
distributewheelc                   sL   e  Z d  Z d Z d Z d Z d Z d
 Z   f d d   Z d d	   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 | |   |  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 d d d d d d d
 d |  j j d d d d d d
 d d j t  |  j j d |  j  d  S) Nz-rz--requirementdestrequirementactionstoredefaultmetavarfilehelpzUUse the order in the given requirements file and its 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.z--useruserz,Only output packages installed in user-site.z--all
freeze_allz,Do not skip these packages in the output: %sz, r   )	superr   __init__cmd_opts
add_optionjoinDEV_PKGSparserinsert_option_group)selfargskw)	__class__ 2/tmp/pip-build-9m6vxulb/pip/pip/commands/freeze.pyr      sD    								zFreezeCommand.__init__c             C   s   t  j j t   t    } t | j |  } t t  } | j sR | j t	  n  t
 d | j d | j d | j d | j d | j d | j d | d |  } x( t |   D] } t j j | d	  q Wd  S)
Nr   r   
local_only	user_only
skip_regexisolatedwheel_cacheskip
)r   indexFormatControlsetr   	cache_dirr   r   updater!   dictr   r   r   r   skip_requirements_regexisolated_moder   sysstdoutwrite)r$   optionsr%   format_controlr.   r/   freeze_kwargsliner(   r(   r)   runD   s     								zFreezeCommand.run)r   r   )
__name__
__module____qualname____doc__nameusagesummarylog_streamsr   r@   r(   r(   )r'   r)   r      s   )r   )zpipz
setuptoolsz
distributezwheel)
__future__r   r9   r   
pip.compatr   pip.basecommandr   pip.operations.freezer   	pip.wheelr   r!   r   r(   r(   r(   r)   <module>   s   