DJ d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZ ddlmZ dd lmZ G d de Zded efdZded efdZd Zd ZdS )zD Create a dist_info directory As defined in the wheel specification N)contextmanager)cleandoc)Path)Command)log) packaging)SetuptoolsDeprecationWarningc \ e Zd ZdZg dZddgZddiZd Zd Ze de d efd Zd Z dS ) dist_infozcreate a .dist-info directory))z egg-base=ezjdirectory containing .egg-info directories (default: top of the source tree) DEPRECATED: use --output-dir.)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 h d | _ d | _ d | _ d | _ d | _ d | _ d| _ d S )NF)egg_base output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs /builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options( s; ! " c | j r/d}t j |t | j p| j | _ | j }|j pt j }t | j p| | _ | d }t | j |_ | j r | j |_ n|j | _ | j r | j |_ n|j | _ | || _ t! | }t% | }| d| | _ t j | j | j d | _ d S )NzA--egg-base is deprecated for dist_info command. Use --output-dir.egg_info-z .dist-info)r warningswarnr r distributionsrc_rootoscurdirr reinitialize_commandstrr r finalize_optionsr! _safeget_name_versionget_versionr pathjoinr )r msgdistproject_dirr! r versions r r+ zdist_info.finalize_options1 sN = ?UCM#;<<<"m>tDO m0ryt=+>>,,Z8800= . $ H$-DM> 0!%H%/DN!!### T]]__%%4++--..''g'' W\\$/di;S;S;STTr dir_pathrequires_bkpc # K |r| d}t |d t ||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)_rm_copyshutilmove)r r6 r7 bkp_names r _maybe_bkp_dirzdist_info._maybe_bkp_dirP s ",,,H----(HD4HHHH 0HD1111Hh///// HD1111Hh////EEEEEs A (Bc 4 | j dd | j | j j }t j | s J d t j d t j | j | 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' r0 isdirr infoformatabspathr get_finalized_commandrA r egg2dist)r egg_info_dirrE s r rG z dist_info.run^ sL dT::: }-w}}\**TT,TTTT''8J(K(KLLMMM00?? t/A B B C C t/ABBB C C C C C C C C C C C C C C C C C Cs $D DDN)__name__ __module____qualname__descriptionuser_optionsboolean_optionsnegative_optr r+ r r* boolrA rG r r r r s 1K L "?3Oz*L# # #U U U> s $ ^C C C C Cr r componentreturnc . t j dd| S )zAEscape a component used to form a wheel name according to PEP 491z [^\w\d.]+_)resub)rX s r r, r, l s 6,Y///r r5 c | | dd } t t j | dd S # t j j $ rO d| d| d}t j t | t | d cY S w xY w)z0Convert an arbitrary string to a version string. .r" r[ zInvalid version: zk. !! ################### # Invalid version # ################### z is not valid according to PEP 440. Please make sure specify a valid version for your package. Also note that future releases of setuptools may halt the build process if an invalid version is given. !! )replacer* r r5 VersionInvalidVersionr# r$ r r, strip)r5 vr2 s r r. r. q s S!!A#9$,,Q//0088cBBB+ # # # G hsmm$$$Qxx~~c""""" #s ?A A B;:B;c l t j | rt j | fi | d S d S )N)r' r0 rH r> rmtree)dir_nameoptss r r<