ruạṛ
a �u:jz � @ s� d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ddlmZ d d lmZ ddlmZ ddlmZ G d d� de�ZdS )zD Create a dist_info directory As defined in the wheel specification � N)�contextmanager)�Path)�cast� )�_normalization)�rmdir� )�egg_info)�log)�Commandc @ sd e Zd ZdZdZg d�ZddgZddiZdd� Zd d �dd�Z e eed �dd��Z d d �dd�Zd S )� dist_infoz� This command is private and reserved for internal use of setuptools, users should rely on ``setuptools.build_meta`` APIs. z@DO NOT CALL DIRECTLY, INTERNAL ONLY: create .dist-info directory))zoutput-dir=�ozYdirectory inside of which the .dist-info will becreated [default: top of the source tree])�tag-date�dz0Add date stamp (e.g. 20050528) to version number)z tag-build=�bz-Specify explicit tag to add to version number)�no-date�Dz"Don't include date stamp [default])� keep-egg-infoNz,*TRANSITIONAL* will be removed in the futurer r r c C s( d | _ d | _d | _d | _d | _d| _d S )NF)� output_dir�name� dist_info_dir�tag_date� tag_build� keep_egg_info)�self� r �O/opt/bart/bart_venv/lib/python3.9/site-packages/setuptools/command/dist_info.py�initialize_options, s zdist_info.initialize_optionsN)�returnc C s� | j }|jptj}t| jp|�| _tt| �d��}t | j�|_ | jrN| j|_n|j| _| jrf| j|_n|j| _|� � || _t�|�� �}t�|�� �}|� d|� �| _tj�| j| j� d��| _d S )Nr �-z .dist-info)�distributionZsrc_root�os�curdirr r r �egg_info_cls�reinitialize_command�strZegg_baser r �finalize_optionsr r Z safer_name�get_nameZsafer_best_effort_version�get_versionr �path�joinr )r �distZproject_dirr r �versionr r r r&