K iz dZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z d d lmZdd lmZdd lmZGd deZy)zD Create a dist_info directory As defined in the wheel specification N)contextmanager)Path)cast)_normalization)rmdir)egg_info)log)Commandc\eZdZdZdZgdZddgZddiZdZdd Z e d e d e fd Z dd Zy) 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 futurerrrcXd|_d|_d|_d|_d|_d|_y)NF) output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs b/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options,s. ! "Nc |j}|jxstj}t |j xs||_t t|jd}t|j |_ |jr|j|_ n|j|_ |jr|j|_ n|j|_ |j||_tj |j#}tj$|j'}|d||_tj*j-|j |j(d|_y)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  mm0ryy t=+> d&?&? &KL0 == $ H $--DM >>!%H %//DN!!#  ((9 ::4;K;K;MNfAgY' WW\\$//dii[ ;STr dir_path requires_bkpc#K|rT|d}t|dtj||dd dt|dtj||ydy#t|dtj||wxYww)Nz.__bkp__T) ignore_errors) dirs_exist_oksymlinks)_rmshutilcopytreemove)rr5r6bkp_names r_maybe_bkp_dirzdist_info._maybe_bkp_dirNso "8,H  - OOHhdT R 0HD1 Hh/ HD1 Hh/s.BA)B%BBc&|jjdd|jj|jj}tj j |sJdtjdtj j|jd|jd}|j||j5|j||jdddy#1swYyxYw)NT)parentsexist_okz&.egg-info dir should have been createdz creating '' bdist_wheel)rmkdirr runr%r0isdirr infoabspathrget_finalized_commandr@regg2dist)r egg_info_dirrEs rrGz dist_info.run\s dT: }}-- ww}}\*T,TT* :bggood.@.@AB!DE00?  t/A/A B C  t/A/A B C C Cs !DD)returnN)__name__ __module__ __qualname____doc__ description user_optionsboolean_options negative_optrr+rr)boolr@rGr rrrs_ UK L"?3Oz*L#U4 s $   Cr r)rRr%r< contextlibrpathlibrtypingrr_shutilrr;r r' distutilsr distutils.corer rrXr rr`s:  %"."SCSCr