\bg dZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z d d lmZdd lmZdd lmZGd deZdS)zD Create a dist_info directory As defined in the wheel specification N)contextmanager)Path)cast)_normalization)rmdir)egg_info)log)CommandcdeZdZdZdZgdZddgZddiZdZdd Z e d e d e fd 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))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 futurerrrcZd|_d|_d|_d|_d|_d|_dS)NF) output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs m/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options,s4 ! "returnNc|j}|jp tj}t |jp||_t t|d}t|j|_ |j r |j |_ n |j |_ |j r |j |_ n |j |_ | ||_tj|}tj|}|d||_tj|j|jd|_dS)Nr -z .dist-info) distributionsrc_rootoscurdirrrr egg_info_clsreinitialize_commandstregg_baserrfinalize_optionsr r safer_nameget_namesafer_best_effort_version get_versionrpathjoinr)rdist project_dirr rversions rr,zdist_info.finalize_options4s, m0ry t=+>> d&?&? &K&KLL00 = . $ H  $-DM > 0!%H  %/DN!!###  (99 :4;K;K;M;MNN''g'' W\\$/di;S;S;STTr dir_path requires_bkpc#"K|r|d}t|dtj||dd dVt|dtj||dS#t|dtj||wxYwdVdS)Nz.__bkp__T) ignore_errors) dirs_exist_oksymlinks)_rmshutilcopytreemove)rr6r7bkp_names r_maybe_bkp_dirzdist_info._maybe_bkp_dirNs  ",,,H  - - - - OHhdT R R R R 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&r1isdirr infoformatabspathrget_finalized_commandrAregg2dist)r egg_info_dirrEs rrGz dist_info.run\sL dT::: }- w}}\**TT,TTT* ''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  DD)r!N)__name__ __module__ __qualname____doc__ description user_optionsboolean_options negative_optrr,rr*boolrArGr rrrs UK   L"?3Oz*L###UUUU4 s $   ^  C C C C C Cr r)rRr&r= contextlibrpathlibrtypingrr_shutilrr<r r( distutilsr distutils.corer rrXr rr`s  %%%%%%""""""......""""""SCSCSCSCSCSCSCSCSCSCr