File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/__pycache__/lock.cpython-311.pyc
Back
� L�i� � �� � d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ ee� � Z G d� de� � ZdS )� N)�Values)�Path)�tomli_w)�is_valid_pylock_path)� WheelCache)� cmdoptions)�RequirementCommand�with_cleanup)�SUCCESS)�get_build_tracker)� getLogger)�get_pip_version)� pylock_from_install_requirements)� TempDirectoryc �N � e Zd ZdZdZd d�Zededee de fd�� � ZdS ) �LockCommanda� EXPERIMENTAL - Lock packages and their dependencies from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports locking from "requirements files", which provide an easy way to specify a whole environment to be installed. The generated lock file is only guaranteed to be valid for the current python version and platform. z� %prog [options] [-e] <local project path> ... %prog [options] <requirement specifier> [package-index-options] ... %prog [options] -r <requirements file> [package-index-options] ... %prog [options] <archive url/path> ...�returnNc �\ � | j � t j ddddddd�� � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � t j t j | j � � }t j t j | j � � }| j � d|� � | j � d|� � | j � d| j � � d S ) Nz--outputz-o�output_file�pathzpylock.tomlz7Lock file name (default=pylock.toml). Use - for stdout.)�dest�metavar�type�default�helpr )�cmd_opts� add_optionr � PipOption�requirements�requirements_from_scripts�constraints�build_constraints�no_deps�editable�src�ignore_requires_python�no_build_isolation� use_pep517�check_build_deps�config_settings�require_hashes�progress_bar�make_option_group�index_group�parser�package_selection_group�insert_option_group)�self� index_opts�selection_optss �{/builddir/build/BUILD/imunify360-venv-2.6.1/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/commands/lock.py�add_optionszLockCommand.add_options0 s� � �� � � �� ���"���%�N� � � � � � � � � � ��!8�!:�!:�;�;�;�� � � ��!E�!G�!G�H�H�H�� � � ��!7�!9�!9�:�:�:�� � � ��!=�!?�!?�@�@�@�� � � ��!3�!5�!5�6�6�6�� � � ��!4�!6�!6�7�7�7�� � � ���!1�!1�2�2�2�� � � ��!B�!D�!D�E�E�E�� � � ��!>�!@�!@�A�A�A�� � � ��!6�!8�!8�9�9�9�� � � ��!<�!>�!>�?�?�?�� � � ��!;�!=�!=�>�>�>�� � � ��!:�!<�!<�=�=�=�� � � ��!8�!:�!:�;�;�;��1��"��K� � � � $�5��.��K� � �� ��'�'��:�6�6�6���'�'��>�:�:�:���'�'��4�=�9�9�9�9�9� �options�argsc �� � t � dt � � � � t � d� � t j |� � t j |� � | � |� � }| � |||j �� � }| � t � � � � }t |j dd�� � }| � ||||� � }t |j � � }|D ] } d| _ � | � |||||d| j �� � } | � | |||dd|j d � � � }| � |� � |� |d�� � }|j dk rt1 j � � } nEt1 |j � � }t5 |� � st � d |� � |j } t9 |j � � � | �� � }t? j |�! � � � � }|j dk r tD j# �$ |� � n|�% |d�� � tL S )NzUsing %szspip lock is currently an experimental command. It may be removed/changed in a future release without prior warning.)r8 �sessionr&