관리-도구
편집 파일: metadata_editable.cpython-312.pyc
� G��e� � �h � d Z ddlZddlmZ ddlmZ ddlmZmZ ddl m Z ddlmZ ded ed e de fd�Zy) z4Metadata generation logic for source distributions. � N)�BuildBackendHookCaller)�BuildEnvironment)�InstallationSubprocessError�MetadataGenerationFailed)�runner_with_spinner_message)� TempDirectory� build_env�backend�details�returnc �f � t dd�� }|j }| 5 t d� }|j |� 5 |j |� } ddd� ddd� t j j |� S # t $ r}t |�� |�d}~ww xY w# 1 sw Y �OxY w# 1 sw Y �SxY w)zlGenerate metadata using mechanisms described in PEP 660. Returns the generated metadata directory. zmodern-metadataT)�kind�globally_managedz,Preparing editable metadata (pyproject.toml))�package_detailsN) r �pathr �subprocess_runner�#prepare_metadata_for_build_editabler r �os�join)r r r �metadata_tmpdir�metadata_dir�runner�distinfo_dir�errors ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/operations/build/metadata_editable.py�generate_editable_metadatar s� � � $�):�T�R�O�"�'�'�L� � S� -�:� �� � &� &�v� .� S� S�&�J�J�<�X�� S�S� �7�7�<�<��l�3�3�� /� S�.�w�G�U�R�� S�� S� S��S� S�s? �B'�B�A=� B'�= B� B�B�B�B$ � B'�'B0)�__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 �<module>r&