_ddZddlZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z dd lmZGd d e Zd Zd Zy)zD Create a dist_info directory As defined in the wheel specification N)contextmanager)log)Command)Path)_normalization)SetuptoolsDeprecationWarningcXeZdZdZdZgdZddgZddiZdZdZ e d e d e fd Z d 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 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 futurerrrcfd|_d|_d|_d|_d|_d|_d|_y)NF)egg_base output_dirname dist_info_dirtag_date tag_build keep_egg_info)selfs >/usr/lib/python3/dist-packages/setuptools/command/dist_info.pyinitialize_optionszdist_info.initialize_options1s5  ! "cx|jr8d}tj|d|jxs |j|_|j}|j xst j}t|jxs||_|jd}t|j|_|jr|j|_ n|j|_ |jr|j|_ n|j|_ |j||_tj |j#}tj$|j'}|d||_t j*j-|j|j(d|_y)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:sA ==UC ( - -cM J#mm>tDO  mm0ryy t=+>,,Z80 == $ H $--DM >>!%H %//DN!!#  ((9 ::4;K;K;MNfAgY' WW\\$//dii[ ;STrdir_path requires_bkpc#K|rJ|d}t|dt||dd dt|dtj||ydy#t|dtj||wxYww)Nz.__bkp__T) ignore_errors) dirs_exist_oksymlinks)_rm_copyshutilmove)rr8r9bkp_names r_maybe_bkp_dirzdist_info._maybe_bkp_dir[sk "8,H  - (HD4 H 0HD1 Hh/ HD1 Hh/s$A<A)A<%A99A<c<|jjdd|jj|jj}tj j |sJdtjdjtj j|j|jd}|j||j5|j||jdddy#1swYyxYw)NT)parentsexist_okz&.egg-info dir should have been createdz creating '{}' bdist_wheel)rmkdirr$runr)r2isdirrinfoformatabspathrget_finalized_commandrCregg2dist)r egg_info_dirrGs rrIz dist_info.runis dT: }}-- ww}}\*T,TT* ''8J8J(KLM00?  t/A/A B C  t/A/A B C C Cs ,DDN)__name__ __module__ __qualname____doc__ description user_optionsboolean_options negative_optrr-rr,boolrCrIrrr r s` UKL("?3Oz*L#UB s $   Crr c ptjj|rtj|fi|yy)N)r)r2rJr@rmtree)dir_nameoptss rr>r>ws( ww}}X h'$'rc |tjdkr|jddtj||fi|y)N)r<)sys version_infopopr@copytree)srcdstr^s rr?r?|s1 &  $' OOC%%r)rTr)r@rb contextlibr distutilsrdistutils.corerpathlibrrwarningsr r r>r?rZrrrnsB  %"3bCbCJ( &r