관리-도구
편집 파일: freeze.cpython-37.pyc
B ��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 ZdZdZdZdd� Zdd� ZdS ) � FreezeCommandzx Output installed packages in requirements format. packages are listed in a case-insensitive sorted order. z %prog [options])zext://sys.stderrzext://sys.stderrc C s� | j jddddg ddd� | j jdd d dg ddd� | j jd dddddd� | j jdddddd� | j �t�� � | j jdddd�d�t��d� | j jddddd� | j�d| 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-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_internal/commands/freeze.py�add_options sN zFreezeCommand.add_optionsc C s� t t� t� �}t|j|�}tt�}|js2|�t� t� |� t |j|j|j |j|j|j|||jd� }x"tf |�D ]}tj�|d � qpW tS )N) �requirementr � local_only� user_only�paths�isolated�wheel_cache�skipr � )r �setr � cache_dirr r �updater% r �check_list_path_option�dictr r r r �path� isolated_moder r �sys�stdout�writer )r( �options�args�format_controlr1 r2 Z freeze_kwargs�liner) r) r* �runO s&