File: //usr/lib/python3/dist-packages/setuptools/command/__pycache__/install_egg_info.cpython-310.pyc
o
[�c{ � @ sd d dl mZmZ d dlZd dlZd dlmZ d dlmZ d dlm Z d dl
Z
G dd� deje�ZdS )� )�log�dir_utilN)�Command)�
namespaces)�unpack_archivec @ sB e Zd ZdZdZdgZdd� Zdd� Zdd� Zd d
� Z dd� Z
d
S )�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc C s d | _ d | _d | _d S �N)�install_dir�install_layout�
prefix_option��self� r �E/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py�initialize_options s
z#install_egg_info.initialize_optionsc C s� | � dd� | � dd� tjdkr| � dd� | �d�}t�d d |j|j��� d }| jrH| j� � d vr8t
d
��| j� � | _|�dtj d�}n| j
sPd
tjv rQn |�dtj d�}|j| _tj�| j|�| _g | _d S )N�install_lib)r
r
�install)r r i )r r �egg_infoz .egg-info��debz"unknown value for --install-layoutz-py%s� �real_prefix)�set_undefined_options�sys�
hexversion�get_finalized_command�
pkg_resources�Distribution�egg_name�egg_versionr �lower�DistutilsOptionError�replace�PY_MAJORr �__dict__r �source�os�path�joinr
�target�outputs)r �ei_cmd�basenamer r r �finalize_options s. �
��
z!install_egg_info.finalize_optionsc C s� | � d� tj�| j�rtj�| j�stj| j| jd� ntj� | j�r1| �
tj| jfd| j � | js:t�
| j� | �
| jdd| j| jf � | �� d S )Nr )�dry_runz Removing r �Copying %s to %s)�run_commandr'