Viewing File: /usr/lib/python3.6/site-packages/pip/commands/__pycache__/freeze.cpython-36.opt-1.pyc
3
aj @ sd d dl mZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
mZ d
ZG dd deZ
dS ) )absolute_importN)stdlib_pkgs)Command)freeze)
WheelCachepip
setuptools
distributewheelc s8 e Zd ZdZdZdZdZd
Z fddZdd 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
--requirementrequirementsappendfilez}Use the order in the given requirements file and its comments when generating output. This option can be used multiple times.)destactiondefaultmetavarhelpz-fz--find-links
find_linksZURLz<URL for finding packages, which will be added to the output.z-lz--locallocal
store_trueFzUIf in a virtualenv that has global access, do not output globally-installed packages.)r r r r z--useruserz,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_optionjoinDEV_PKGSparserZinsert_option_group)selfargskw) __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_regexisolatedwheel_cacheskip
)r indexZ
FormatControlsetr cache_dirr r updater dictr
r r r Zskip_requirements_regexZ
isolated_moder sysstdoutwrite)r Zoptionsr Zformat_controlr&