관리-도구
편집 파일: metadata.cpython-38.pyc
U ʗRe| � @ sd d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z ddlmZ eee e d�d d �ZdS )z4Metadata generation logic for source distributions. � N)�Pep517HookCaller)�BuildEnvironment)�InstallationSubprocessError�MetadataGenerationFailed)�runner_with_spinner_message)� TempDirectory)� build_env�backend�details�returnc C s� t ddd�}|j}| �b td�}|�|��D z|�|�}W n. tk rh } zt|d�|�W 5 d}~X Y nX W 5 Q R X W 5 Q R X tj�||�S )zlGenerate metadata using mechanisms described in PEP 517. Returns the generated metadata directory. zmodern-metadataT)�kind�globally_managedz#Preparing metadata (pyproject.toml))�package_detailsN) r �pathr �subprocess_runner� prepare_metadata_for_build_wheelr r �os�join)r r r �metadata_tmpdir�metadata_dir�runner�distinfo_dir�error� r ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/operations/build/metadata.py�generate_metadata s 2r )�__doc__r Zpip._vendor.pep517.wrappersr �pip._internal.build_envr �pip._internal.exceptionsr r �pip._internal.utils.subprocessr �pip._internal.utils.temp_dirr �strr r r r r �<module> s �