Viewing File: /opt/hc_python/lib/python3.12/site-packages/pip/_internal/commands/__pycache__/lock.cpython-312.pyc
�
T�*j� � �� � 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� Zy)� 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 �@ � e Zd ZdZdZd d�Zededee de
fd�� Zy)
�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 j t j ddddddd�� � | j j t j � � | j j t j
� � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j � � | j j t j"