관리-도구
편집 파일: _impl.cpython-311.pyc
� �܋f�. � � � d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dl mZmZm Z ddlmZ d� Zd � Z G d � de� � Z G d� d e� � Z G d� de� � Z G d� de� � Zdd�Zdd�Zd� Z G d� d� � ZdS )� N)�contextmanager)�abspath)�join)�STDOUT� check_call�check_output� )�_in_proc_script_pathc � � t |dd�� � 5 }t j | |fi |�� d d d � � d S # 1 swxY w Y d S )N�w�utf-8��encoding)�open�json�dump)�obj�path�kwargs�fs �X/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/pyproject_hooks/_impl.py� write_jsonr s� � � �d�C�'� *� *� *� $�a�� �#�q�#�#�F�#�#�#�$� $� $� $� $� $� $� $� $� $� $� $���� $� $� $� $� $� $s �4�8�8c � � t | d�� � 5 }t j |� � cd d d � � S # 1 swxY w Y d S )Nr r )r r �load)r r s r � read_jsonr s� � � �d�W� %� %� %� ���y��|�|�� � � � � � � � � � � ���� � � � � � s �3�7�7c � � e Zd ZdZd� ZdS )�BackendUnavailablezEWill be raised if the backend cannot be imported in the hook process.c � � || _ d S �N�� traceback��selfr! s r �__init__zBackendUnavailable.__init__ � � �"����� N��__name__� __module__�__qualname__�__doc__r$ � r&