File: //opt/hc_python/lib64/python3.12/site-packages/build/__pycache__/util.cpython-312.pyc
�
J�/i0 � � � d dl mZ d dlZd dlZd dlZddlmZ ddlmZ ddl m
Z
mZ ddlm
Z
dd�Z d
ej d � dd
�ZdgZy)� )�annotationsN� )�ProjectBuilder)� importlib)�StrPath�SubprocessRunner)�DefaultIsolatedEnvc � � t j � 5 }t j | j |� � }t
j j |� j }|�J �|cd d d � S # 1 sw Y y xY w)N)�tempfile�TemporaryDirectory�pathlib�Path�
metadata_pathr �metadata�PathDistribution)�builder�tmpdir�pathr s �9/opt/hc_python/lib/python3.12/site-packages/build/util.py�_project_wheel_metadatar s` � � � $� $� &�&��|�|�G�1�1�&�9�:���%�%�6�6�t�<�E�E���#�#�#��
'� &� &�s �AA2�2A;��runnerc �2 � |rrt � 5 }t j || |�� }|j |j � |j |j d� � t
|� cddd� S t | |�� }t
|� S # 1 sw Y yxY w)a�
Return the wheel metadata for a project.
Uses the ``prepare_metadata_for_build_wheel`` hook if available,
otherwise ``build_wheel``.
:param source_dir: Project source directory
:param isolated: Whether or not to run invoke the backend in the current
environment or to create an isolated one and invoke it
there.
:param runner: An alternative runner for backend subprocesses
r �wheelN)r r �from_isolated_env�install�build_system_requires�get_requires_for_buildr )�
source_dir�isolatedr �envr s r �project_wheel_metadatar"