관리-도구
편집 파일: meta.cpython-39.pyc
a ��Re� � @ s> d Z ddlZddlZddlZddlZddlZzddlmZ W n e yV ddl ZY n0 zddlmZ W n e y� ddl mZ Y n0 ddlmZ ddlmZmZ ddlmZmZmZ ddlmZmZmZ e�e�Zd d � Zddd �Zefdd�Zdd� Z e�!� Z"e"j#ddd� e"j#dddd� dd� Z$edk�r:e$� dS )z2Build metadata for a project using PEP 517 hooks. � N)�Path� )�BuildEnvironment)�Pep517HookCaller�quiet_subprocess_runner)�tempdir�mkdir_p�dir_to_zipfile)�validate_system�load_system� compat_systemc C s� | � i �}t�d|� |�|� t�d� t� �T}t�d|� | �|i �}tj�||�}t � |tj�|tj�|��� W d � n1 s�0 Y d S )NzGot build requires: %sz$Installed dynamic build dependencieszTrying to build metadata in %s)�get_requires_for_build_wheel�log�info�pip_installr � prepare_metadata_for_build_wheel�os�path�join�shutil�move�basename)�hooks�env�dest�reqs�td�filename�source� r ��/builddir/build/BUILDROOT/alt-python39-pip-21.3.1-2.el8.x86_64/opt/alt/python39/lib/python3.9/site-packages/pip/_vendor/pep517/meta.py� _prep_meta s r! �.c C s� |p t | �}tj�| |pd�}t|� t|� t| |d |�d��}|�t ��P t � �*}|�|d � t|||� W d � n1 s�0 Y W d � n1 s�0 Y d S )N�distz build-backendzbackend-path�requires) r r r r r r r �get�subprocess_runnerr r r r! )� source_dirr �systemr r r r r �build) s �r) c C s<