JddZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddlmZddlmZdd lmZGd d e Zd ed efdZded efdZdZdZdS)zD Create a dist_info directory As defined in the wheel specification N)contextmanager)cleandoc)Path)Command)log) packaging)SetuptoolsDeprecationWarningc\eZdZdZgdZddgZddiZdZdZe de d e fd Z d Z d S) dist_infozcreate a .dist-info directory))z egg-base=ezjdirectory containing .egg-info directories (default: top of the source tree) DEPRECATED: use --output-dir.)z output-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 futurerrrchd|_d|_d|_d|_d|_d|_d|_dS)NF)egg_base output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs O/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options(s;  ! "c|jr/d}tj|t|jp|j|_|j}|jp tj}t|jp||_| d}t|j|_|j r |j |_ n |j |_ |j r |j |_ n |j |_ |||_t!|}t%|}|d||_tj|j|jd|_dS)NzA--egg-base is deprecated for dist_info command. Use --output-dir.egg_info-z .dist-info)rwarningswarnr r distributionsrc_rootoscurdirrreinitialize_commandstrrrfinalize_optionsr!_safeget_name_version get_versionrpathjoinr)rmsgdist project_dirr!rversions rr+zdist_info.finalize_options1sN = ?UC M#; < < <"m>tDO m0ry t=+>>,,Z8800 = . $ H  $-DM > 0!%H  %/DN!!###  T]]__%%4++--..''g'' W\\$/di;S;S;STTrdir_path requires_bkpc#K|r|d}t|dt||dd dVt|dtj||dS#t|dtj||wxYwdVdS)Nz.__bkp__T) ignore_errors) dirs_exist_oksymlinks)_rm_copyshutilmove)rr6r7bkp_names r_maybe_bkp_dirzdist_info._maybe_bkp_dirPs  ",,,H  - - - - (HD4 H H H H 0HD1111 Hh/////HD1111 Hh//// EEEEEs A(Bc4|jdd|j|jj}tj|s Jdtjd tj |j | d}| ||j5|||j ddddS#1swxYwYdS)NT)parentsexist_okz&.egg-info dir should have been createdz creating '{}' bdist_wheel)rmkdirr!runr'r0isdirrinfoformatabspathrget_finalized_commandrAregg2dist)r egg_info_dirrEs rrGz dist_info.run^sL dT::: }- w}}\**TT,TTTT ''8J(K(KLLMMM00??  t/A B B C C  t/A B B B C C C C C C C C C C C C C C C C C Cs$D  DDN)__name__ __module__ __qualname__ description user_optionsboolean_options negative_optrr+rr*boolrArGrrr r s1K   L"?3Oz*L###UUU> s $   ^  C C C C Crr componentreturnc.tjdd|S)zAEscape a component used to form a wheel name according to PEP 491z [^\w\d.]+_)resub)rXs rr,r,ls 6,Y / //rr5c||dd} ttj|ddS#tjj$rOd|d|d}t jt|t| dcYSwxYw)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*rr5VersionInvalidVersionr#r$rr,strip)r5vr2s rr.r.qsS!!A#9$,,Q//0088cBBB   + # # #  G         hsmm$$$Qxx~~c""""" #s?AA B;:B;c ltj|rtj|fi|dSdS)N)r'r0rHr>rmtree)dir_nameoptss rr<r<s@ w}}X( h''$'''''((rc xtjdkr|ddtj||fi|dS)N)r:)sys version_infopopr>copytree)srcdstris rr=r=sD &   $''' OC%%%%%%%r)__doc__r'r\r>rmr# contextlibrinspectrpathlibrdistutils.corer distutilsrsetuptools.externrsetuptools._deprecation_warningr r r*r,r.r<r=rWrrr{sc  %%%%%%""""""''''''HHHHHHTCTCTCTCTCTCTCTCn0S0S0000 #c#c####*((( &&&&&r