관리-도구
편집 파일: freeze.cpython-36.pyc
3 �Re| � @ s� d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZ d d lmZ d d lmZ ddd dhZer�d dlmZ d dlmZ G dd� de�ZdS )� )�absolute_importN)� WheelCache)� cmdoptions)�Command)�SUCCESS)� FormatControl)�freeze)�stdlib_pkgs)�MYPY_CHECK_RUNNING�pip� setuptoolsZ distribute�wheel)�Values)�Listc @ s( e Zd ZdZdZd Zdd� Zdd� ZdS ) � FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options]�ext://sys.stderrc C s� | j jddddg ddd� | j jdd d dg ddd� | j jd dddddd� | j jdddddd� | j jtj� � | j jddddjdjt��d� | j jddddd� | 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_links�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 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: {}z, )r r r z--exclude-editable�exclude_editablez%Exclude editable package from output.r ) �cmd_opts� add_optionr � list_path�format�join�DEV_PKGS�parser�insert_option_group)�self� r* ��/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/commands/freeze.py�add_options sN zFreezeCommand.add_optionsc C s� t t� t� �}t|j|�}tt�}|js2|jt� tj |� t |j|j|j |j|j|j|||jd� }x"tf |�D ]}tjj|d � qpW tS )N) �requirementr � local_only� user_only�paths�isolated�wheel_cache�skipr � )r �setr � cache_dirr r �updater&