iddZddlZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZGd d e Zd Zd ZdS)zD Create a dist_info directory As defined in the wheel specification N)contextmanager)log)Command)Path)_normalization)SetuptoolsDeprecationWarningc`eZdZdZdZgdZddgZddiZdZdZ e d e d e fd Z d 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))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 Q/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options1s;  ! "c|jr+d}tj|d|jp|j|_|j}|jp t j}t|jp||_| d}t|j|_|j r |j |_ n |j |_ |j r |j |_ n |j |_ | ||_tj|}tj|}|d||_t j|j|jd|_dS)NzA--egg-base is deprecated for dist_info command. Use --output-dir.)i )due_dateegg_info-z .dist-info)rr emitr distributionsrc_rootoscurdirrreinitialize_commandstrrrfinalize_optionsr$r safer_nameget_namesafer_best_effort_version get_versionrpathjoinr)rmsgdist project_dirr$rversions rr-zdist_info.finalize_options:sY = ?UC ( -cM J J J J#m>tDO m0ry t=+>>,,Z8800 = . $ H  $-DM > 0!%H  %/DN!!###  (99 :4;K;K;M;MNN''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)rr8r9bkp_names r_maybe_bkp_dirzdist_info._maybe_bkp_dir[s  ",,,H  - - - - (HD4 H H H H 0HD1111 Hh/////HD1111 Hh//// EEEEEs A(Bc|jdd|j|jj}t jdtj |j | d}| ||j 5|||j ddddS#1swxYwYdS)NT)parentsexist_okz creating '{}' bdist_wheel)rmkdirr$runrinfoformatr)r2abspathrget_finalized_commandrCregg2dist)r egg_info_dirrGs rrIz dist_info.runis+ dT::: }-  ''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;C$$C(+C(N)__name__ __module__ __qualname____doc__ description user_optionsboolean_options negative_optrr-rr,boolrCrIrrr r s UKL("?3Oz*L###UUUB s $   ^  C C C C Crr c ltj|rtj|fi|dSdS)N)r)r2isdirr@rmtree)dir_nameoptss rr>r>ws@ w}}X( h''$'''''((rc xtjdkr|ddtj||fi|dS)N)r<)sys version_infopopr@copytree)srcdstr^s rr?r?|sD &   $''' OC%%%%%%%r)rSr)r@rb contextlibr distutilsrdistutils.corerpathlibrrwarningsr r r>r?rYrrrns  %%%%%%""""""333333bCbCbCbCbCbCbCbCJ((( &&&&&r