qp d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m Z ddlmZ d d lmZ ddlmZ ddlmZ G 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 d e Zd ZdZdZg dZddgZddiZd Zdd Z e dedefd Z ddZd 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-datedz0Add date stamp (e.g. 20050528) to version number)z tag-build=bz-Specify explicit tag to add to version number)no-dateDz"Don't include date stamp [default]) keep-egg-infoNz,*TRANSITIONAL* will be removed in the futurer r r c Z d | _ d | _ d | _ d | _ d | _ d| _ d S )NF) output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs n/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options, s4 ! " returnNc | j }|j pt j }t | j p| | _ t t | d }t | j |_ | j r | j |_ n|j | _ | j r | j |_ n|j | _ | || _ t j | }t j | }| d| | _ t j | j | j d | _ d S )Nr -z .dist-info)distributionsrc_rootoscurdirr r r egg_info_clsreinitialize_commandstregg_baser r finalize_optionsr r safer_nameget_namesafer_best_effort_versionget_versionr pathjoinr )r distproject_dirr r versions r r, zdist_info.finalize_options4 s, m0ryt=+>>d&?&? &K&KLL00= . $ H$-DM> 0!%H%/DN!!### (99 :4;K;K;M;MNN''g'' W\\$/di;S;S;STTr dir_pathrequires_bkpc # " K |r| d}t |d t j ||dd d V t |d t j || d S # t |d t j || w xY wd V d S )Nz.__bkp__T) ignore_errors) dirs_exist_oksymlinks)_rmshutilcopytreemove)r r6 r7 bkp_names r _maybe_bkp_dirzdist_info._maybe_bkp_dirN s ",,,H----OHhdTRRRR 0HD1111Hh///// HD1111Hh////EEEEEs A (Bc | j dd | j | j j }t j | s J d t j dt j | j d | d }| || j 5 | || j d d d d S # 1 swxY w Y d S )NT)parentsexist_okz&.egg-info dir should have been createdz creating ''bdist_wheel)r mkdirr runr&