Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pip/_internal/operations/build/__pycache__/metadata_legacy.cpython-39.pyc
Ðазад
a "�h� � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZm Z m Z ddlmZ ddl mZ ddlmZ e�e�Zeed �d d�Zeeeeeed�d d�ZdS )z:Metadata generation logic for legacy source distributions.� N)�BuildEnvironment)�open_spinner)�InstallationError�InstallationSubprocessError�MetadataGenerationFailed)�make_setuptools_egg_info_args)�call_subprocess)� TempDirectory)� directory�returnc C sR dd� t �| �D �}|s&td| � ���t|�dkr@td| � ���t j�| |d �S )z.Find an .egg-info subdirectory in `directory`.c S s g | ]}|� d �r|�qS )z .egg-info)�endswith)�.0�f� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pip/_internal/operations/build/metadata_legacy.py� <listcomp> � z"_find_egg_info.<locals>.<listcomp>z No .egg-info directory found in � z+More than one .egg-info directory found in r )�os�listdirr �len�path�join)r � filenamesr r r �_find_egg_info s �r )� build_env� setup_py_path� source_dir�isolated�detailsr c C s� t �d||� tddd�j}t|||d�}| �~ td��V}zt||d|d� W n0 ty~ } zt|d �|�W Y d }~n d }~0 0 W d � n1 s�0 Y W d � n1 s�0 Y t |�S )znGenerate metadata using setup.py-based defacto mechanisms. Returns the generated metadata directory. z2Running setup.py (path:%s) egg_info for package %szpip-egg-infoT)�kind�globally_managed)�egg_info_dir�no_user_configzPreparing metadata (setup.py)zpython setup.py egg_info)�cwd�command_desc�spinner)�package_detailsN) �logger�debugr r r r r r r r ) r r r r r r"