File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/setuptools/command/__pycache__/install_egg_info.cpython-310.pyc
Back
o ;j� � @ sX d dl Z d dlmZmZ d dlmZ ddlmZ d dlm Z m Z G dd� deje�ZdS ) � N)�Command� namespaces)�unpack_archive� )�ensure_directory)�dir_util�logc @ sH e Zd ZdZdZdgZdd� Zddd�Zdd d �Zdd� Z dd d�Z dS )�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc C s d | _ d S �N)�install_dir��self� r �W/opt/saltstack/salt/lib/python3.10/site-packages/setuptools/command/install_egg_info.py�initialize_options s z#install_egg_info.initialize_options�returnNc C sH | � dd� | �d�}|�� � d�}|j| _tj�| j|�| _ g | _ d S )NZinstall_lib)r r �egg_infoz .egg-info)Zset_undefined_optionsZget_finalized_commandZ_get_egg_basenamer �source�os�path�joinr �target�outputs)r Zei_cmd�basenamer r r �finalize_options s z!install_egg_info.finalize_optionsc C s� | � d� tj�| j�rtj�| j�st�| j� ntj�| j�r.| � tj | jfd| j � t| j� | � | jdd| j � d| j� �� | �� d S )Nr z Removing r zCopying z to )Zrun_commandr r �isdirr �islinkr Zremove_tree�existsZexecute�unlinkr �copytreer Zinstall_namespacesr r r r �run s zinstall_egg_info.runc C s | j S r )r r r r r �get_outputs) s zinstall_egg_info.get_outputsc s � fdd�}t � j� j|� d S )Nc sD dD ]}| � |�sd| | v r d S q� j�|� t�d| |� |S )N)z.svn/zCVS/�/zCopying %s to %s)� startswithr �appendr �debug)�src�dst�skipr r r �skimmer. s �z*install_egg_info.copytree.<locals>.skimmer)r r r )r r* r r r r , s zinstall_egg_info.copytree)r N)�__name__� __module__�__qualname__�__doc__�descriptionZuser_optionsr r r! r"