관리-도구
편집 파일: metadata.cpython-38.pyc
U &?�f� � @ sd d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z ddlmZ eee e d�d d �ZdS )z4Metadata generation logic for source distributions. � N)�BuildBackendHookCaller)�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 �U/opt/hc_python/lib/python3.8/site-packages/pip/_internal/operations/build/metadata.py�generate_metadata s 2r )�__doc__r �pip._vendor.pyproject_hooksr �pip._internal.build_envr �pip._internal.exceptionsr r �pip._internal.utils.subprocessr �pip._internal.utils.temp_dirr �strr r r r r �<module> s �