\bg`WdZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlmZddlmZddlmZddlmZmZmZddlmZddl Z dd l m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z,m-Z-dd l.m/Z/dd l0m1Z1dd l2m3Z3m4Z4m5Z5dd l6m7Z7m8Z8m9Z9ddl:m;Z;ddlZ>ddl?m@Z@ddlAmBZBddlCmDZEmFZGddlHmIZImJZJddlKmLZLmMZMddlNmOZOddlPmQZQddlRmSZSmTZTmUZUmVZVddlWmXZXmYZYmZZZerddl[m\Z\ej]de j^gdZ_dZ`dZad Zbd!ZcGd"d#e/Zdd$Zed%Zfd&Zgd'Zhd(ZiGd)d*e%ZjGd+d,ejZkejlmd-d.d/krekZjd0Znd1Zod2ZpdUd3Zqd4Zrd5Zsd6ejtvresZund7ZudVd9Zvd:Zwd;Zxd<ZyGd=d>ed?@ZzGdAdBe{Z|e|}Z~GdCdDe|ZGdEdFZGdGdHeZGdIdJeZdKZdLZdMZdNZdWdRZGdSdTe=ZdS)Xa) Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ https://setuptools.pypa.io/en/latest/deprecated/easy_install.html ) annotationsN)Iterable)glob)get_path) TYPE_CHECKINGNoReturn TypedDict) yield_lines) DEVELOP_DIST DistributionDistributionNotFound EggMetadata Environment PathMetadata RequirementVersionConflict WorkingSetfind_distributionsget_distributionnormalize_pathresource_string)Command)unpack_archive) bdist_eggegg_infosetopt) URL_SCHEME PackageIndexparse_requirement_arg) run_setup)SetuptoolsDeprecationWarningSetuptoolsWarning)Wheel)ensure_directory)attempt_chmod_verbosermtree)py39py312)dir_utillog)install) first_line_re)DistutilsArgErrorDistutilsErrorDistutilsOptionErrorDistutilsPlatformError) convert_path get_platform subst_vars)Selfdefault)category) easy_installPthDistributionsextract_wininst_cfgget_exe_prefixesc2tjddkS)NP)structcalcsizep/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/setuptools/command/easy_install.pyis_64bitrD^s ?3  1 $$rBc,|dS)Nutf8)encodess rC _to_bytesrJbs 88F  rBcV |dn#t$rYdSwxYwdS)NasciiFT)rG UnicodeErrorrHs rCisasciirNfsC  uu 4s  &&cvtj|ddS)N z; )textwrapdedentstripreplace)texts rC _one_linerrVns. ?4 & & ( ( 0 0t < <ejd[Z?d\Z@dmd]ZAd^ZBd_ZCdmd`ZDdaZEdmdbZFdmdcZGejddHZIdmdeZJeKeKdfdghiZLeKdjdkhZMdlZNdS)|r8z'Manage a download/build/install processz Find/get/install Python packagesT)zprefix=Nzinstallation prefix)zip-okzzinstall package as a zipfile) multi-versionmz%make apps have to require() a version)upgradeUz1force upgrade (searches PyPI for latest versions))z install-dir=dzinstall package to DIR)z script-dir=rIzinstall scripts to DIR)exclude-scriptsxzDon't install scripts) always-copyaz'Copy all needed packages to install dir)z index-url=iz base URL of Python Package Index)z find-links=fz(additional URL(s) to search for packages)zbuild-directory=bz/download/extract/build in DIR; keep the results)z optimize=Ozlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])zrecord=Nz3filename in which to record list of installed files) always-unzipZz*don't install as a zipfile, no matter what)z site-dirs=Sz)list of directories where .pth files work)editableez+Install specified packages in editable form)no-depsNzdon't install dependencies)z allow-hosts=Hz$pattern(s) that hostnames must match)local-snapshots-oklz(allow building eggs from local checkouts)versionNz"print version information and exit)z no-find-linksNz9Don't load find-links defined in packages being installeduserNz!install in user site-package '%s') rXrZr_r\rarjrlrorqrrrgrXc td|_dx|_|_dx|_x|_|_d|_d|_ d|_ d|_ dx|_ |_ dx|_x|_|_dx|_x|_|_dx|_x|_|_d|_d|_d|_d|_d|_d|_d|_d|_d|_t@j!|_"t@j#|_$d|_%d|_&dx|_'|_(d|_)i|_*d|_+|j,j-|_-|j,.||j,/ddS)NFr8)0EasyInstallDeprecationWarningemitrrzip_oklocal_snapshots_ok install_dir script_direxclude_scripts index_url find_linksbuild_directoryargsoptimizerecordr\ always_copy multi_versionrjno_deps allow_hostsrootprefix no_reportrqinstall_purelibinstall_platlibinstall_headers install_libinstall_scripts install_data install_baseinstall_platbasesite USER_BASEinstall_userbase USER_SITEinstall_usersite no_find_links package_indexpth_filealways_copy_from site_dirsinstalled_projects_dry_run distributionverbose_set_command_optionsget_option_dictselfs rCinitialize_optionszeasy_install.initialize_optionss%**,,, 044 d-DHHH4?T-A# &**  ?CC Ct'$*<:>> > t'7377 7DK$. ####   $ $ $!"044 -"$  (0  .. $#33NCC     rBreturnNonecbd|D}tt|j|dS)Nc3K|]D}tj|stj|@|VEdSN)ospathexistsislink).0filenames rC z/easy_install.delete_blockers..sb  w~~h'' ,.7>>(+C+C       rB)listmap _delete_path)rblockersextant_blockerss rCdelete_blockerszeasy_install.delete_blockerssC  $    S"O 4 455555rBctjd||jrdStj|otj| }|rtn tj}||dS)Nz Deleting %s) r+infodry_runrrisdirr_rmtreeunlink)rris_treeremovers rCrzeasy_install._delete_pathsm %%% <  F'--%%BbgnnT.B.B*B$3''") rBc tjjdtjj}t d}t d|jd|jd|dt)zT Render the Setuptools version and installation details, then exit. . setuptoolsz setuptools z from z (Python )) sys version_infomajorminorrprintrqlocation SystemExit)verdists rC_render_versionzeasy_install._render_versionsd !'BB#*:*@BB -- NDLNN NNNNNOOOrBcL |jo|tjd}t t j|_|j|j |j |j |tj jdtj jtj jtj j|jd|jdt!tddt!tddd t#jt&5|jt)jt)jd dddn #1swxYwY|jd t!td ddd|j|jd <|j|jd<|jr t8jst=jd| |!|"|#dddd|j$ |j%|_$|j&d|_&|'dd|'dd|jr|j(r|j(|_%|j)|_$|'ddtU|_+|j+,|-|j.|j/s|0tcj2dd}|j3p||_3|j+dd|_4|j%tk|j$fD]&}||j4vr|j46d|'|j7%d|j7dD}ndg}|j8'|9|j3|j4| |_8tu|j4tj;z|_<|j=9t}|j=t~r|j=|_=ng|_=|j@r,|j8A|j4tj;z|j&s|j8B|j=|'dd!|C|jD|_D|j/r|jEstd"|jGstd#g|_HdS)$Nrrr exec_prefixabiflags platlibdirlib) dist_name dist_version dist_fullname py_versionpy_version_shortpy_version_nodot sys_prefixsys_exec_prefixrr)implementation_lowerimplementationpy_version_nodot_platwindiruserbaseusersitez6WARNING: The user site-packages directory is disabled.rxryr}rFr)rxrxrrxryr,)rr__EASYINSTALL_INDEXzhttps://pypi.org/simple/c6g|]}|SrA)rSrrIs rC z1easy_install.finalize_options..Es DDD1QWWYYDDDrB,*) search_pathhosts)rrz9Must specify a build directory (-b) when using --editablez:No urls, filenames, or requirements specified (see --help))Irqrrsplitdict sysconfigget_config_vars config_varsupdaterget_name get_version get_fullnamerrrgetattr contextlibsuppressAttributeErrorr,_get_implementationlower setdefaultrTrrrrrENABLE_USER_SITEr+warn_fix_install_dir_for_user_siteexpand_basedirs expand_dirs_expandryrxrset_undefined_optionsrr get_site_dirs all_site_dirsextend_process_site_dirsrrjcheck_site_dirrgetenvr{ shadow_pathrinsertrr create_indexrr local_indexr| isinstancestrrwscan_egg_linksadd_find_links_validate_optimizerr}r.r~outputs)rr default_index path_itemrs rCfinalize_optionszeasy_install.finalize_optionss /--//[&&((+  9 ; ;<< *3355 -99;;!.;;==$##9 T TCZ44!#|U;; ! !   0 0     # #(/(C(E(E(K(K(M(M")"="?"?%%                   ## # C2 & & . .sB 7 7   (,'<$'+'<$ 9 OT2 O HM N N N ++---           ? "".DO   %!&D  ""=2PQQQ ""#46STTT 9 3- 3#3D "2DO ""9.BCCC*__ !!$"9"9$."I"IJJJ} "    ! ! ! "79STT 8=-aaa0)>$/+J+JJ 6 6I 000 ''9555   'DD(8(>(>s(C(CDDDEEEE   %!%!2!2 ,"3""D  't'7#('BCC ? &$/3// :"&/"7"7"9"9 DO  " K   - -d.>.I J J J! ?   - -do > > > ""=2JKKK// >> = !5 #K y #L #% s+AG  G G c#jK|dStttj}d|dD}|D]k}t j|stjd|7t||vrt|dzt|VldS)Ncpg|]3}tj|4SrA)rr expanduserrSrs rCrz3easy_install._process_site_dirs..ms0QQQqRW'' 22QQQrBrz"%s (in --site-dirs) does not existz$ (in --site-dirs) is not on sys.path) rrrrrrrr+rr0)rnormpathr^s rCrzeasy_install._process_site_dirsgs   F~sx00QQIOOC&> ! DM"s%A**B  B ,A D99EEaS can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: %s The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: %s z This directory does not currently exist. Please create it and try again, or choose a different installation directory (using the -d or --install-dir option). a Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: https://setuptools.pypa.io/en/latest/deprecated/easy_install.html Please make the appropriate changes for your system and try again. rc|jtjd|jfz}tj|js|d|jzz }n |d|jzz }t|)NrP) _easy_install__cant_write_msgrexc_inforxrrr_easy_install__not_exists_id_easy_install__access_msgr/)rr!s rCrOz!easy_install.cant_write_to_target,sw# LNN1   '   w~~d.// , 4$.. .CC 4$++ +CS!!!rBcv|j}tjd||dz}|dz}tj|}tddz} |rt j|tj |}t j |dt|dtj } ||jdit!|d }t$j}tjd kr}tj|\}} tj|d } | d kotj| } | r| }ddlm} | |dddgdtj|rtjd| |r|tj|rt j|tj|rt j|dSdS |r|tj|rt j|tj|rt j|n#|r|tj|rt j|tj|rt j|wwxYw#t4$r|YnwxYw|jstjd|dS)z@Empirically verify whether .pth files are supported in inst. dirz Checking .pth file support in %s.pthz.okz import os f = open({ok_file!r}, 'w', encoding="utf-8") f.write('OK') f.close() rPT)exist_okwencodingNr% pythonw.exe python.exer)spawnz-Ez-cpassz-TEST PASSED: %s appears to support .pth filesz+TEST FAILED: %s does NOT support .pth filesFrA)rxr+rrGrrrrVrdirnamerMrQr) PTH_ENCODINGwriteformatlocalsrRr executablerrrErdistutils.spawnrirNrOrr) rrVrok_file ok_existstmplrkrdrpbasenamealtuse_altris rCrPz!easy_install.check_pth_processing8s}" 3W===''))F2U"GNN7++     % ( # '"""goog..G K$ / / / /XsU-?@@@A  (  //fhh//000  ^ 7d??(* j(A(A%GX',,w >>C&nn..,>V27>>RUCVCVG)%( 111111z4v6:::7>>'** HLgVVVGGIII7>>'**'Ig&&&7>>(++(Ih'''''(( GGIII7>>'**'Ig&&&7>>(++(Ih''' GGIII7>>'**'Ig&&&7>>(++(Ih''''(9 ( ( (  % % ' ' ' ' ' (<! M HBG L L Lus!+A'M9D%K77A?M69NNc $|jss|dr^|dD]H}|d|zr||||d|zI||dS)z=Write all the scripts for `dist`, unless scripts are excludedscriptszscripts/N)rzmetadata_isdirmetadata_listdirinstall_script get_metadatainstall_wrapper_scripts)rr script_names rCinstall_egg_scriptsz easy_install.install_egg_scriptsts# (;(;I(F(F #44Y??   &&zK'?@@##+t'8'8k9Q'R'R $$T*****rBc,tj|rZtj|D]C\}}}|D]:}|jtj||;DdS|j|dSr)rrrwalkrappendrE)rrbaser.filesrs rC add_outputzeasy_install.add_outputs 7==   &%'WT]] F F!dE %FFHL'' T8(D(DEEEEF F F L   % % % % %rBc:|jrtd|ddS)NzInvalid argument zW: you can't use filenames or URLs with --editable (except via the --find-links option).)rjr.rr;s rC not_editablezeasy_install.not_editables8 = ##KO44R   rBc|jsdStjtj|j|jrt|jd|jddS)Nz already exists in z; can't do a checkout there)rjrrrrEr}keyr.rs rCcheck_editablezeasy_install.check_editablesq}  F 7>>"',,t';TXFF G G #888T1113   rBc#$Ktjd} t|Vtj|ot |dSdS#tj|ot |wwxYw)Nz easy_install-)r)tempfilemkdtempr rrrr)rtmpdirs rC_tmpdirzeasy_install._tmpdirs!999 7f++    GNN6 " " 6wv 6 6 6BGNN6 " " 6wv 6 6s A2BFdepsDistribution | Nonec |5}t|tst|rU|||j||}|d|||dcdddStj |r:|||d|||dcdddSt|}| ||j |||j|j|j |j}| d|z}|jr|dz }t%||jt(kr&||||d|cdddS|||j||cdddS#1swxYwYdS)NTz+Could not find suitable distribution for %rz2 (--always-copy skips system and development eggs)Using)rr rrrrdownload install_itemrrrrrfetch_distributionr\rjrrr/ precedencer process_distributionr)rr;rrdlrr!s rCr8zeasy_install.easy_installs \\^^" LvdK00 7d## 7%%d++++44T6BBB,,T2vtTJJ " L" L" L" L" L" L" L" LW^^D))7%%d+++,,T4tLL" L" L" L" L" L" L" L" L166D    % % %%88  $$ D|CdJ#POOC$S)))L00))$dGDDDA" L" L" L" L" L" L" L" LD((t}fdKKE" L" L" L" L" L" L" L" L" L" L" L" L" L" L" L" L" L" Ls&A-GA G(B#GGGGinstall_neededc|pt|j}|p"tj||k}|p|d }|pJ|jduoAtjt|t|jk}|r&|s$|j|j D]}|j |krnd}tj dtj ||r4||||}|D]}||||n4||g}|||d|d| |D] }||vr|cS dS)N.eggTz Processing %srr)r0rrrrkendswithrrr project_namerr+rru install_eggsregg_distribution)rr;rrrrrdistss rCrzeasy_install.install_items(A40@+A+A'N27??8+D+D+N'Hx/@/@/H/H+H'  ! - 5x 8 899d3445   & &():; & &=H,,E-"& "'"2"28"<"<===  E%%dHf==E < <))$d;;;; <**8445E  % %dE!HdG D D D    4<<KKK trBc tj||dS#t$r8tj||ddYdSwxYw)Nr$unix)r,_select_schemerr rT)rrs rCr zeasy_install.select_schemeso O  "4 . . . . . O O O O ) )$ Wf0M0M N N N N N N Os>AAc|||j|||j|jvr|j||j|||||j|j<tj |j ||g|R| dr4|j s-|j |d|s |jsdS|'|j|jkrtjd|dS|||vr0|}t%t'|}tj d| t)g|g|j|j}n^#t.$r"}t1t'||d}~wt2$r'}t1||d}~wwxYw|js|jr:|D]7}|j|jvr'||8tj d|dS)Nzdependency_links.txtzSkipping dependencies for %szProcessing dependencies for %sz'Finished processing dependencies for %s) update_pthraddrrremoverrr+rinstallation_report has_metadatarr get_metadata_linesrras_requirementrr rresolver8r r/rreportr)r requirementrrrdistreqdistrosrks rCrz!easy_install.process_distributions  t$$$ 4#DH- - -   # #D ) ) ) T"""   &&&,0) ))+tCdCCCDDD   3 4 4 T=O    - -''(>??    4D, 4 F  $[_)D)D H3T : : : F  D $;$;))++G%c'll33K 1;??? 4 nn,, t/1BGG$ 0 0 0 Q((a / 4 4 4 ,,! 3 4   =t4 = = =84#:::%%d&9&9&;&;<<< :KHHHHHs$/F66 HG H*"H  Hc|j|j S|drdS|dsdSdS)Nz not-zip-safeTzzip-safeF)rvr)rrs rC should_unzipzeasy_install.should_unzip"sO ; "{? "   ^ , , 4  ,, 4urBctj|j|j}tj|r%d}t j||j|j||Stj|r|}ntj ||krtj |tj |}t|dkrGtj||d}tj|r|}t|tj|||S)Nz<%r already exists in %s; build directory %s will not be keptr\r)rrrEr}rrr+rrrkrlistdirr6r%shutilmove)rr; dist_filename setup_basedstr!contentss rC maybe_movezeasy_install.maybe_move+sgll4/:: 7>>#   PC HS$(D$8* E E E  7== ' ' /&JJw}--;; -(((z*--H8}}!! " Z! E E 7==///!.J J$$$ rBc|jrdSt|D] }|j| dSr)rz ScriptWriterbestget_args write_script)rrr~s rCr~z$easy_install.install_wrapper_scripts@sX    F %%''0066 % %D D t $ $ $ % %rBc6t|}t||}|rA||t z}t ||z}||t|ddS)z/Generate a legacy script wrapper and install itreN) r ris_python_script_load_templateror get_headerrrJ)rrr script_textdev_pathr; is_scriptbodys rCr|zeasy_install.install_scriptFs4&&(())$[+>>  F&&x00688;D&11+>>EK +y'='=sCCCCCrBcd}|r|dd}td|}|dS)z There are a couple of template scripts in the package. This function loads one of them and prepares it for use. z script.tmplz.tmplz (dev).tmplrutf-8)rTrdecode)rr raw_bytess rCrzeasy_install._load_templatePsG  8<<77D#L$77 (((rBtrAmoder c`fd|Dtjd|jtjj|}|jrdSt}t|tj |rt j |d|vrdnd}t|d|z|5}||dddn #1swxYwYt|d|z dS) z1Write an executable file to the scripts directorycZg|]'}tjj|(SrA)rrrEry)rr`rs rCrz-easy_install.write_script..bs+ @ @ @!RW\\$/1 - - @ @ @rBzInstalling %s script to %sNrerrdrei)rr+rryrrrErr current_umaskr%rrrQrmchmod) rrrrrtargetmaskrfrds ` rCrzeasy_install.write_script_sh  @ @ @ @x @ @ @    -{DOLLLdo{;;  <  F   7>>& ! !  If   $;;44G &#*x 8 8 8 A GGH                   fedl#####s.DDDlist[Distribution]c|j|j|jd} ||dd}|||gS#t$rYnwxYw|}t j|r,|dst|||j n>t j |rt j |}| |r |jr|||||}t j|d}t j|st%t j|dd}|s/t'dt j |zt)|dkr/t'dt j |z|d }|jr*t-j|||gS|||S) N)r.exez.whl.pyzsetup.pyrz"Couldn't find a setup script in %sr\zMultiple setup scripts in %sr) install_egg install_exe install_wheelrKeyErrorrrisfilerrunpack_progressrabspath startswithr}rrErrr/r6rjr+rreport_editablebuild_and_install) rr;rr installer_map install_distr setup_scriptsetupss rCrzeasy_install.install_eggsus?$$&   9()<)<)>)>rss)CDL!L778 8    D   7>>- ( ( 81G1G1N1N 8 =&$2F G G G G W]]= ) ) 877J  ! !& ) ) J$ J }jIIJw||J ;; w~~l++ %"',,z3 CCDDF $8goom4456{{Q$2RW__]5S5SS"!9L = D HT))$ == > > >I)), CC Cs"A AAc tj|r/t|tj|d}n!t t j|}tj ||S)NEGG-INFO)metadata) rrrrrEr zipimport zipimporterr from_filename)regg_pathrs rCrzeasy_install.egg_distributionsh 7== " " D#Hbgll8Z.P.PQQHH"9#8#B#BCCH)(XFFFFrBc tj|jtj|}tj|}|jst|||}tj |r!tj ||stj |r;tj |stj||jnDtj |r%|tj|fd|z d}tj |r3||rt$jd}}nwt$jd}}nh||r|||jd}}n4d}||rt$jd}}nt$jd}}||||f|dztj|tj|fzt5|| n #t6$rt5|d wxYw||||S) Nr Removing FMovingCopying ExtractingTz %s to %sfix_zipimporter_caches)rrrErxrurrr%rrsamefilerrr* remove_treer8rrrrcopytreermkpathunpack_and_compilecopy2rkupdate_dist_cachesrAr)rrr destinationrnew_dist_is_zippedrdr[s rCrzeasy_install.install_eggsgll   G  X & &  gook22 | * [ ) ) )$$X.. GNN; ' '' ,.G,<,.s:   26BGLLT!W - -   rB)rr)r:r/r rTr3rrrEegg_namerr%r _provider exe_to_eggrrQrmitemsrTtitlerrrr make_zipfilerrr) rrrcfgrregg_tmp _egg_infopkg_infrdkvrys @rCrzeasy_install.install_exes!-00 ; :]J  V44GGJ 22!^^    7<< &(@AA  V#GLL*55 ',,y*55!!!%gy99  w///w~~g&& OgsW555 O1222IIj11OODAq,,,aiiS.A.A.G.G.I.I.I.I111 MNNNO O O O O O O O O O O O O O O O W\\)Y77      :F:O:OPT:U:U         LL     &111sA8GG!$G!cD t| gg t fd}t||g} D]}|dr|d}|d}t j|ddz|d<tj j g|R} || |t j ||| t jtj dt j|dD]} t!| rtj d| dz} tj | sgt%| d d 5} | d t!| d zd d d n #1swxYwYd S)z;Extract a bdist_wininst to the directories an egg would usec|} D]\}}||ri||t|dz}|d}t jjg|R}|}|ds|drrtj |d|d< tj |ddg |no|drZ|dkrT tj |ddg ||cS|dstjd |dS) N/.pyd.dllrrSCRIPTS/rbzWARNING: can't process %s)rrr6rrrrErr strip_modulersplitextrr+r) srcrrIoldnewpartsrr native_libsprefixes to_compile top_levels rCprocessz(easy_install.exe_to_egg..processs A$  S<<$$ CHHJJ/CIIcNNE',w7777CB{{6**/bkk&.A.A/$-$:59$E$Eb ! rw'7'7a'A'A!'D&EFFF#**3////U++/z0A0A! rw'7'7a'A'A!'D&EFFF"))#...JJJ <<'' ;4c:::4rBrrrrr)r&r#z.txtrdrrerPN)r;setrrrrrrrrrEr write_stub byte_compilewrite_safety_flag analyze_eggrorrQrm)rrrr'stubsresr"resourcepyfilertxtrdr#r$r%r&s ` @@@@rCr zeasy_install.exe_to_eggst$M22  EE          * }gw777 7 7Cyy{{##F++ 7 # 9%259==Eb g6666!!&))) V$$$$Xv666 *%%%# GLL* - -y/DWe/T/T   / B BDxx~ Bgll7Jv FFw~~c**Bc3999BQ &((4. 9 9D @AAABBBBBBBBBBBBBBB  B Bs >HH H c t|}|sJtj|j|}tj|}|jst|tj |r;tj |stj ||jnDtj|r%|tj|fd|z ||j|fdtj|dtj|t)|dn#t)|dwxYw||||S)Nrrz Installing z to Fr)r# is_compatiblerrrErxr rrr%rrr*rrr8rinstall_as_eggrurkrrr)r wheel_pathrwheelrs rCrzeasy_install.install_wheelJsj!!""$$$$$gll4#3U^^5E5EFF gook22 | * [ ) ) ) 7== % % bgnn[.I.I   dl C C C C C W^^K ( (  LL k)     J LL$7##J////1M1M1MO    {5 I I I I I {5 I I I I I  $$$$$[111s 1AF F3a( Because this distribution was installed --multi-version, before you can import modules from this package in an application, you will need to 'import pkg_resources' and then use a 'require()' call similar to one of these examples, in order to select the desired version: pkg_resources.require("%(name)s") # latest installed version pkg_resources.require("%(name)s==%(version)s") # this exact version pkg_resources.require("%(name)s>=%(version)s") # this version or higher z Note also that the installation directory must be on sys.path at runtime for this to work. (e.g. by being the application's script directory, by being on PYTHONPATH, or by being added to sys.path by your code.) Installedwhatcd}|jrG|js@|d|jzz }|jt t t jvr |d|jzz }|j }|j }|j }d}|tzS)z9Helpful installation message for display to package usersz %(what)s %(eggloc)s%(extras)srPr) rr_easy_install__mv_warningrxrrrr_easy_install__id_warningrrrqro) rreqrr8r!egglocrrqextrass rCrz easy_install.installation_reportzs/   0dn 0 4$++ +Cs>38'D'DDDtd/// ,VXX~rBaR Extracted editable version of %(spec)s to %(dirname)s If it uses setuptools in its setup script, you can activate it in "development" mode by going to that directory and running:: %(python)s setup.py develop See the setuptools documentation for the "develop" command for more info. ctj|}tj}d|jt zzS)NrP)rrrkrrp_easy_install__editable_msgro)rr;rrkpythons rCrzeasy_install.report_editables3'//,//d)FHH444rBctjdttjdtt |}|jdkr'd|jdz z}|dd|zn!|jdkr|dd|jr|dd tj d |t|dzdd | t||dS#t$r#}td |jd|d}~wwxYw) Nzdistutils.command.bdist_eggzdistutils.command.egg_infor$rr\rrz-qz-nz Running %s %s zSetup script exited with )rmodulesrrrrrrrr+rr6rEr rr/r~)rrrr~rs rCr zeasy_install.run_setupsI .sV$SM   ;;rBz+No eggs found in %s (setup script problem?))rrrrrk_set_fetcher_optionsrr rrr+rrr5r)rrrr~dist_direggsrHs` ` @rCrzeasy_install.build_and_installsB\*#" (E(E    ,  % %bgool&C&C D D D KK ! ! ! NN<T : : :"H:..H#D  R  RFQQQ H     dl + + + + H     dl + + + +s BD*D,cD|jd}d}i}|D]\}}||vr |d||<t |}t j|d}tj ||dS)a When easy_install is about to run bdist_egg on a source dist, that source dist might have 'setup_requires' directives, requiring additional fetching. Ensure the fetcher options given to easy_install are available to that command as well. r8)r|rr{rrr\)r8z setup.cfgN) rrcopyr rrrrEr edit_config) rrei_optsfetch_directives fetch_optionsrr)settings cfg_filenames rCrIz!easy_install._set_fetcher_optionss#33NCCHHJJ    ( (HC***!$QM#  ]333w||D+66 <22222rBc$|jdS|j|jD]v}|js|j|jkrt jd||j||j|jvr|j|jw|js|j|jjvrt jd|n\t jd||j ||j|jvr|j |j|j rdS|j |jdkrdStj|jd}tj|rtj|t'|dt(j5}||j|jdzddddS#1swxYwYdS) Nz&Removing %s from easy-install.pth filez4%s is already the active version in easy-install.pthz"Adding %s to easy-install.pth filersetuptools.pthwtrerP)rrrrr+rrrpathsrrrsaverrrErxrrrQr)rlrm make_relative)rrr^rrds rCrzeasy_install.update_pthsS = Ftx( 4 4A% !* *E*E H=q A A A M  # # #zT--- '' 333! ;} 333J =tDDD !!$'''=(888$++DM::: <  F  8| # # F7<< 02BCC 7>>( # # Ih    (D5+= > > > G! GGDM// >>E F F F G G G G G G G G G G G G G G G G G Gs6HH  H c2tjd|||S)NzUnpacking %s to %s)r+debug)rrrs rCrzeasy_install.unpack_progress s &S111 rBcggfd}t|||js?D]>}tj|tjdzdz}t ||=dSdS)NcF|dr+|ds|n?|ds|dr|||j r|pdS)Nr EGG-INFO/rz.so)rrrrr)rrrto_chmodr%s rCpfz+easy_install.unpack_and_compile..pfs||E"" %3>>++F+F %!!#&&&&f%% %e)<)< %$$$  c * * *|#+3t 3rBimi)rr*rrstatST_MODEr)rrrr`rdrr_r%s` @@rCrzeasy_install.unpack_and_compiles  4 4 4 4 4 4 4 xb111 *%%%|   DL1U:fDa    rBc>tjrdSddlm} t j|jdz ||dd|j|jr|||jd|jt j|jdS#t j|jwxYw)Nr)r*r\T)rforcer) rdont_write_bytecodedistutils.utilr*r+r5rrr)rr%r*s rCr*zeasy_install.byte_compile#s  "  F////// ,  dlQ. / / / LatT\ R R R R}  !] L   dl + + + + +C dl + + + +s ABBa bad install directory or PYTHONPATH You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: %s and your PYTHONPATH environment variable currently contains: %r Here are some of your options for correcting the problem: * You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files * You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.) * You can set up the installation directory to support ".pth" files by using one of the approaches described here: https://setuptools.pypa.io/en/latest/deprecated/easy_install.html#custom-installation-locations Please make the appropriate changes for your system and try again. c|jsdSttjd}t |jD]c}||rLtj |s-| d|ztj |dddS)zCreate directories under ~.N~zos.makedirs('%s', 0o700)i) rrr2rrr only_strsrvaluesrr debug_printrM)rhomers rCrzeasy_install.create_home_pathZsy  FBG..s3344d.557788 ) )Dt$$ )RW]]4-@-@ )  !;d!BCCC D%((( ) )rBz/$base/lib/python$py_version_short/site-packagesz $base/binrr$z$base/Lib/site-packagesz $base/Scriptsc|dj}|jrt|}|j|d<|jt j|j}| D]'\}}t||dt|||(ddl m }|D]`}t||}|L|||}t jdkrt j|}t|||adS)Nr,rr)r4r$)get_finalized_commandrrrINSTALL_SCHEMESrTrrDEFAULT_SCHEMEr rr&rfr4rr)rr'rschemer(r)r4s rCrzeasy_install._expandps00;;G ; -{++K"&+K )--bgt7JKKF#\\^^ - - c4t,,4D$,,,------ ) )D$%%C jk227g%%',,S11CdC(((  ) )rBrr)T)r/r0rr)rr)F)rr0rr)rr0rr)rr0rr)rr0r)rrA)rr rr)rr)r7)r8r rr )O__name__ __module__ __qualname____doc__ descriptioncommand_consumes_argumentsrr user_optionsboolean_options negative_optrrrrr staticmethodrrrr rr*rrr>rGr:rrQrRlstripr]r_r`rOrPrrrrrcontextmanagerrr8rr rrrr~r|rrrrrrr rr:r;rr@rr rrIrrrr*rSrUrrrprqrrArBrCr8r8rs114K!% 17GM769G?HT QKHH6EO? :T^KL? LB   O#H-LL+ + + Z6666\t%t%t%t%l ( (\ (\ ( ( ()))IIII ! ! ! !99999: L L L    +#+#+#+#Z'x  fhh &ho   fhh #8?   fhh!$ " " " ":::x + + + +&&&&777#L#L#L#L#LLDI$$$$$LOOO *I*I*I*I*IX*%%%% DDDDD ) )\ )$$$$$,1D1D1D1DfGGG424242l-2-2-2`2B2B2B2Bh2226#8?    fhh#8? L     %X_    fhh555 VVVV$,,,03336*G*G*G*GX &,,,,*'x   @ eggAD))))ddI"   OT-"N )))))rBr8ctjddtj}t d|S)NrLr)rrSrTrpathsepfilter)r s rC _pythonpathrs7 JNN< , , 2 22: > >E $  rBc gttjg}tjtjkr|tj|D]}|stjdvr5tj |ddntj dkr{tj |ddtj j dtj j dtj |ddgn6|tj |ddgtjd krd |vr"tjd }|sEtj |d d tj j dtj j d}|t!dt!df}fd|Dt"jrt"jt)jt,5t#jdddn #1swxYwYt1t3t4S)z& Return a list of 'site' dirs )os2emxriscosLibz site-packagesrrrArz site-pythondarwinzPython.frameworkHOMELibraryPythonpurelibplatlibc3$K|] }|v|V dSrrA)rrIsitedirss rCrz get_site_dirs..s->>!AX,=,=A,=,=,=,=>>rBN)rrrrrrrrrrEseprrrrSrTrrrrrrrgetsitepackagesrrr)r$rrlhome_sp lib_pathsrs @rCrrs H OOKMM""" |H #*$$((()!)!   </ / / OOBGLLHH I I I I Vs]] OO NS-3NNc6F6LNN#   VUM::     OO VUO<<    <8 # #  V + + z~~f%%  ',,   % @ @(8(> @ @         ##Xi%8%88I OO>>>>y>>>>>> ('''  ^ , ,00,..///000000000000000 NH-- . ..s'KK  K c#Kt}|D]]}t|}||vr||tj|sLtj|}||fV|D]}|ds|dvrttj ||}tt|}|D]}| drt| }||vr>||tj|ss|tj|fV_dS)zBYield sys.path directories that might contain "old-style" packagesrb)rJrUimportN)r(rrrrrrr _read_pthrErr rrstrip)inputsseenrkrrcontentlineslines rC expand_pathsrs 55D%-%- )) d??  w}}W%%   7##un - -D==(( ===  Wd ; ;<:  7AY*fQi7 r>>2  1 y2~$mFAFF2JJ??VV . . .(  % yBK()))44*400 66&>>DZZq))!,F]]3#<#>#>??F MM"+f-- . . . .!      z** #//'2J2J      sHH H 6AH 4H A>F H F0H /F00-H 4H H c ,gd}tj|} |D]}|j}|d}t |dkr\|ddkrP|ddr5|dd|d dd fnt |dks|d s|d r|d d vr| | }t|D]b}| dd}|ds#||dd|ddfc|n#|wxYwd|D}|||S)z4Get exe->egg path translations for a given .exe file))zPURELIB/r)zPLATLIB/pywin32_system32r)zPLATLIB/r)rzEGG-INFO/scripts/)zDATA/lib/site-packagesrrrr$rr\z .egg-inforNr^rbz -nspkg.pth)PURELIBPLATLIB\rrc@g|]\}}||fSrA)r)rr`ys rCrz$get_exe_prefixes..Es(44441aA444rB)rZipFileinfolistrrr6rrrEupperrrr rSrTrrrRsortreverse) exe_filenamer$rYrrr"rpths rCr;r;&sH  %%AJJLL L LD=DJJsOOE5zzQ58z#9#98$$[11OOArr(;(;['IJJJE5zzQdmmF&;&;}}\** Qx~~#99966$<<..00&x00LLC))++--dC88C>>(33L eAhhh*Dr(JKKK   448444H MMOOO  Os FGGcneZdZdZd dfd ZdZdZddZed Z dfd Z dfd Z d Z xZ S)r9z)A .pth file with Distribution paths in itrArrc ||_ttt||_tt j|j|_| \|_ |_ |j dd|_ tgddt|j D]2}tt|jt#|d3dS)NT)rrrrrrrrkbasedir_loadrWdirty _init_pathssuper__init__r rr)rrrr __class__s rCrzPthDistributions.__init__Ns  S::;; %bgoodm&D&DEE !% DJ:aaa= T4((( ++ @ @D TX1$==>> ? ? ? ? @ @rBcBg}dx}}t|j}t|j}|D]}|}|||drd}D|}|r|drpttj |j |} | |vstj | s,tjd|d}||| |rL|ds2|d}|r|d2||p|o|fS)NF)import from T#z!cleaned up dirty or duplicated %rr)r(rrr splitlinesrrrrSrrrrErrr+r[popr) rrWr saw_importrrrr stripped_pathnormalized_paths rC _load_rawzPthDistributions._load_rawYs"" 4=!!DM**&&(( & &D;;==D LL   344 !  JJLLM  M$<$>$- ( ( $>>## #5yrBcf|\}}|ddD]R}||jvr2|j|tjd|d}=||S|jddD]}||vr|dsutj |j |}tj |s1|j|tjd|d}|xj |p|j|j kzc_ |j sdStt|j|j}|rtjd|j||}d |dz}tj|jrtj|jt-|jdt.j 5}||dddn #1swxYwYnWtj |jr3tjd |jtj|jd |_ |jdd|j dd<dS) z$Write changed .pth file back to diskNzdetected new path %rT)rrrz!removing now non-existent path %rz Saving %srPrVrezDeleting empty %sF)rrWrr+rrrrrrErrrrrrrYr[r _wrap_linesrrrQr)rlrm) r last_paths last_dirtyr absolute_path rel_pathsrdatards rCrXzPthDistributions.save|s"& J qqqM ( (D4:%% !!$'''/666! !!$''''JqqqM & &D:%%doo?//% !# T\4 @ @ w~~m44&J%%d+++H@$GGG!%J jBDJ$2B$BB z  FT/<<==  % Ik4= 1 1 1$$Y//E99U##d*Dw~~dm,, ) $-(((dmTE4FGGG 1                W^^DM * * % I)4= 9 9 9 Idm $ $ $ "jms H..H25H2c|SrrA)rs rCrzPthDistributions._wrap_liness rBc |j|jvo)|j|jvp|jtjk}|r&|j|jd|_t|dS)z"Add `dist` to the distribution mapTN) rrWrrgetcwdrrrr)rrnew_pathrs rCrzPthDistributions.adds= 2 M . ) MRY[[ (    J  dm , , ,DJ  DrBc|j|jvr4|j|jd|_|j|jv4t |dS)z'Remove `dist` from the distribution mapTN)rrWrrr)rrrs rCrzPthDistributions.removes`mtz)) J  dm , , ,DJmtz)) trBc.tjt|\}}t |j}|g}tjdkrdp tj}t ||kr||jkrH|tj | | |Stj|\}}||t ||k|S)Nr) rrrrr6raltseprrcurdirrrE)rrnpathlastbaselenr"rs rCrYzPthDistributions.make_relativesgmmN4$8$899 tdl##i3&30"&%jjG## $$ RY''' xx&'--..KE4 LL    %jjG##KrB)rArs)rtrurvrwrrrrXr}rrrrY __classcell__)rs@rCr9r9Ks33 @ @ @ @ @ @ @666< 0,0,0,0,d\             rBr9cPeZdZedZedZedZdS)RewritePthDistributionsc#>K|jV|Ed{V|jVdSr)preludepostlude)clsrs rCrz#RewritePthDistributions._wrap_liness@klrBz? import sys sys.__plen = len(sys.path) z import sys new = sys.path[sys.__plen:] del sys.path[sys.__plen:] p = getattr(sys, '__egginsert', 0) sys.path[p:p] = new sys.__egginsert = p + len(new) N)rtrurv classmethodrrVrrrArBrCrrsW[ j G z   HHHrBrSETUPTOOLS_SYS_PATH_TECHNIQUErawrewritecttjtrtSt jtjS)z_ Return a regular expression based on first_line_re suitable for matching strings. )r r-patternr recompilerrArBrC_first_line_rers@ -'-- :m+2244 5 55rBct|}t|tj|rt |dSt |dS)aa Fix any globally cached `dist_path` related data `dist_path` should be a path of a newly installed egg distribution (zipped or unzipped). sys.path_importer_cache contains finder objects that have been cached when importing data from the original distribution. Any such finders need to be cleared since the replacement distribution might be packaged differently, e.g. a zipped egg distribution might get replaced with an unzipped egg folder or vice versa. Having the old finders cached may then cause Python to attempt loading modules from the replacement distribution using an incorrect loader. zipimport.zipimporter objects are Python loaders charged with importing data packaged inside zip archives. If stale loaders referencing the original distribution, are left behind, they can fail to load modules from the replacement distribution. E.g. if an old zipimport.zipimporter instance is used to load data from a new zipped egg archive, it may cause the operation to attempt to locate the requested data in the wrong location - one indicated by the original distribution's zip archive directory information. Such an operation may then fail outright, e.g. report having read a 'bad local file header', or even worse, it may fail silently & return invalid data. zipimport._zip_directory_cache contains cached zip archive directory information for all existing zipimport.zipimporter instances and all such instances connected to the same archive share the same cached directory information. If asked, and the underlying Python implementation allows it, we can fix all existing zipimport.zipimporter instances instead of having to track them down and remove them one by one, by updating their shared cached zip archive directory information. This, of course, assumes that the replacement distribution is packaged as a zipped egg. If not asked to fix existing zipimport.zipimporter instances, we still do our best to clear any remaining zipimport.zipimporter related cached data that might somehow later get used when attempting to load data from the new distribution and thus cause such load operations to fail. Note that when tracking down such remaining stale data, we can not catch every conceivable usage from here, and we clear only those that we know of and have found to cause problems if left alive. Any remaining caches should be updated by whomever is in charge of maintaining them, i.e. they should be ready to handle us replacing their zip archives with new distributions at runtime. N)r_uncacherpath_importer_cache!_replace_zip_directory_cache_data*_remove_and_clear_zip_directory_cache_data) dist_pathrrs rCrrsXx%Y//O _c5666D)/::::: 3?CCCCCrBcg}t|}|D]V}t|}||r0|||dztjdfvr||W|S)ap Return zipimporter cache entry keys related to a given normalized path. Alternative path spellings (e.g. those using different character case or those using alternative path separators) related to the same path are included. Any sub-path entries are included as well, i.e. those corresponding to zip archives embedded in other zip archives. r\r)r6rrrrr)rcacheresult prefix_lenpnps rC"_collect_zipimporter_cache_entriesr QsF_%%J  A   == ) ) bj1n1L.M F R / /  MM!    MrBclt||D]"}||}||=|o |||}||||<#dS)a Update zipimporter cache data for a given normalized path. Any sub-path entries are processed as well, i.e. those corresponding to zip archives embedded in other zip archives. Given updater is a callable taking a cache entry key and the original entry (after already removing the entry from the cache), and expected to update the entry and possibly return a new one to be inserted in its place. Returning None indicates that the entry should not be replaced with a new one. If no updater is given, the cache entries are simply removed without any additional processing, the same as if the updater simply returned None. N)r )rrupdaterr old_entry new_entrys rC_update_zipimporter_cachergs_0 G G!!!H !H59 5 5   E!H!!rBc&t||dSr)r)rrs rCrrsou55555rBcDd}t|tj|dS)Nc.|dSr)clearrr s rC2clear_and_remove_cached_zip_archive_directory_datazf_remove_and_clear_zip_directory_cache_data..clear_and_remove_cached_zip_archive_directory_datasrBr rr_zip_directory_cache)rrs rCrrs@&BrB__pypy__cDd}t|tj|dS)Nc|tj||tj||Sr)rrrrrrs rC)replace_cached_zip_archive_directory_datazT_replace_zip_directory_cache_data..replace_cached_zip_archive_directory_datasG OO     !$ ' ' '   Y;DA B B B rBrr)rrs rCrrs@    "   *=      rBcZ t||ddS#ttf$rYdSwxYw)z%Is this string a valid Python script?execTF)r SyntaxError TypeError)rUrs rC is_pythonr"sIh'''t  #uus **c t|d5}|d}dddn #1swxYwYn#t$r|cYSwxYw|dkS)zCDetermine if the specified executable is a .sh (contains a #! line)zlatin-1rer$N#!)rQrrN)rpfpmagics rCis_shr's *y 1 1 1 RGGAJJE                 D=s,A5 A9A9A AAc,tj|gS)z@Quote a command line argument according to Windows parsing rules subprocess list2cmdline)args rC nt_quote_argr-s  "C5 ) ))rBc|ds|drdSt||rdS|dr.d|dvSdS)zHIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.r.pywTr$rArF)rr"rrr)rrs rCrrs8#4#4V#<#<th''td##?;1133A6<<>>>> 5rBc$eZdZUded<ded<dS) _SplitArgsr0commentsr$N)rtrurv__annotations__rArBrCr1r1s"NNNKKKKKrBr1F)totalceZdZUdZgZded<eZedZ edZ edd Z ed Z eddZ ddZedZdZedZedZdS) CommandSpeczm A command spec for a #! header, specified as a list of arguments akin to those passed to Popen. z list[str]optionsc|S)zV Choose the best CommandSpec class based on environmental conditions. rArs rCrzCommandSpec.bests  rBctjtj}tjd|S)N__PYVENV_LAUNCHER__)rrrrrprSrT)r_defaults rC_sys_executablezCommandSpec._sys_executables07##CN33z~~3X>>>rBparam!Self | str | Iterable[str] | Nonerr5c$t||r|St|tr||St|tr ||S||St dt |)zg Construct a CommandSpec from a parameter to build_scripts, which may be None. Nz!Argument has an unsupported type )r r  from_stringrfrom_environmentr!type)rr>s rC from_paramzCommandSpec.from_params eS ! ! L eS ! ! *??5)) ) eX & & 3u::  ='')) )IDKKIIJJJrBc>||gSr)r=r9s rCrBzCommandSpec.from_environments!sC''))*+++rBstringr cFtj|fi|j}||S)z} Construct a command spec from a simple string representing a command line parseable by shlex.split. )shlexr split_args)rrFr s rCrAzCommandSpec.from_string s+  F55cn55s5zzrBrctj|||_t j|}t |sdg|jdd<dSdS)Nz-xr)rHr_extract_optionsr7r*r+rN)rrcmdlines rCinstall_optionszCommandSpec.install_optionssc{4#8#8#E#EFF )$//w & $vDL!    & &rBc|dzd}t|}|r|dpdnd}|S)zH Extract any options from the first line of the script. rPrr\r)rrmatchgrouprS) orig_scriptfirstrOr7s rCrKzCommandSpec._extract_optionssb t#//11!4  &&u--*/7%++a..&BR}}rBcV||t|jzSr)_renderrr7rs rC as_headerzCommandSpec.as_header$s#||D4 #5#55666rBcd}|D]8}||r!||r |ddcS9|S)Nz"'r\r)rr)item_QUOTESqs rC _strip_quoteszCommandSpec._strip_quotes'sW " "Aq!! "dmmA&6&6 "AbDz!!! rBcNtjd|D}d|zdzS)Nc3nK|]0}t|V1dSr)r6rZrS)rrWs rCrz&CommandSpec._render..1sI* * 8r?rr5)rFr rr5)rr )rtrurvrwr7r3r1rIrrr=rDrBrArMr}rKrUrZrTrArBrCr6r6sE GJ[ ??[? K K K[ K,,[,[&&&& \777\%%\%%%rBr6c&eZdZedZdS)WindowsCommandSpecFrmN)rtrurvr1rIrArBrCr^r^;s %(((JJJrBr^ceZdZdZejdZeZ e ddZ e dZ e dZe dZe dddZdS)rz` Encapsulates behavior around writing entry point scripts for console and gui apps. aJ # EASY-INSTALL-ENTRY-SCRIPT: %(spec)r,%(group)r,%(name)r import re import sys # for compatibility with easy_install; see #2198 __requires__ = %(spec)r try: from importlib.metadata import distribution except ImportError: try: from importlib_metadata import distribution except ImportError: from pkg_resources import load_entry_point def importlib_load_entry_point(spec, group, name): dist_name, _, _ = spec.partition('==') matches = ( entry_point for entry_point in distribution(dist_name).entry_points if entry_point.group == group and entry_point.name == name ) return next(matches).load() globals().setdefault('load_entry_point', importlib_load_entry_point) if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(load_entry_point(%(spec)r, %(group)r, %(name)r)()) Nc#vK||}t|}dD]|}|dz}||D]M}|||jtz}|||||}|Ed{VN}dS)z Yield write_script() argument tuples for a distribution's console_scripts and gui_scripts entry points. Nconsolegui_scripts) rr r get_entry_mapkeys_ensure_safe_nametemplatero_get_script_args) rrheaderr;type_rPrrr~s rCrzScriptWriter.get_argsls >^^%%F4&&(())%  EJ&E**5116688  %%d+++!lVXX5 ++E4MM    rBcRtjd|}|rtddS)z? Prevent paths in *_scripts entry point names. z[\\/]z+Path separators not allowed in script namesN)rsearchr)r has_path_seps rCrgzScriptWriter._ensure_safe_name}s9 y400  LJKK K L LrBctjdks tjdkr)tjdkrt S|S)zD Select the best ScriptWriter for this environment. win32javar%)rrrr_nameWindowsScriptWriterrr9s rCrzScriptWriter.bests@ <7 " "rw&'8'8RX=M=M&++-- -JrBc#K|||zfVdSrrA)rrkrrjrs rCrizScriptWriter._get_script_argss$Vk)******rBrrr rp(str | CommandSpec | Iterable[str] | Nonerc|j|}|||S)z;Create a #! line, getting options (if any) from script_text)command_spec_classrrDrMrU)rrrpcmds rCrzScriptWriter.get_headersH$))++66zBB K(((}}rBr)rN)rr rprurr )rtrurvrwrQrRr~rhr6rwrrr}rgrrirrArBrCrr?s x! ##F fhhG J%   [ LL\L[++[+?C[rBrcjeZdZeZedZedZedZe dZ dS)rsc~tt|}tjdd}||S)zC Select the best ScriptWriter suitable for Windows )rpnaturalSETUPTOOLS_LAUNCHERrp)rWindowsExecutableLauncherWriterrrSrT)r writer_lookuplaunchers rCrzWindowsScriptWriter.bestsA 6   :>>"7FFX&&rBc#Ktdd|}|tjddvr-djd it }tj|gd}| || ||}fd|D}|z||zd |fVd S) z For Windows, add a .py extension.pyar/raPATHEXT;zK{ext} not listed in PATHEXT; scripts will not be recognized as executables.)rr -script.py.pyc.pyor/rcg|]}|zSrArArr`rs rCrz8WindowsScriptWriter._get_script_args..***D1H***rBrNrA) rrrSrrrnror"rur_adjust_header) rrkrrjrextr!r rs ` rCriz$WindowsScriptWriter._get_script_argss6v...u5 bj+113399#>> > >-!!xx!!C  "3 ' ' 'KKK 3##E622****c***Sj&;.X======rBcd}d}|dkr||}}tjtj|tj}|||}||r|n|S)z Make sure 'pythonw' is used for gui and 'python' is used for console (regardless of what sys.executable is). rgrhrc)rFrepl)rrescape IGNORECASEsub _use_header)rrk orig_headerrr pattern_ob new_headers rCrz"WindowsScriptWriter._adjust_headersm   E>> 'TGZ ' 2 2BMBB ^^;T^BB  __Z88IzzkIrBc|ddd}tjdkptj|S)z Should _adjust_header use the replaced header? On non-windows systems, always use. On Windows systems, only use the replaced header if it resolves to an executable on the system. r$r"rp)rSrrrwhich)r clean_headers rCrzWindowsScriptWriter._use_headers<"!B$'--c22 |w&D&,|*D*DDrBN) rtrurvr^rwrrrirr}rrArBrCrsrss+ ' '[ ' > >[ > J J[ J E E\ E E ErBrsc$eZdZedZdS)r}c#K|dkrd}d}dg}nd}d}gd}|||}fd|D} |z||zd| fVd zt|d fVtsd z} | tdfVd Sd S) zG For Windows, add a .py extension and an .exe launcher rcz -script.pywr/clir)rrrcg|]}|zSrArArs rCrzDWindowsExecutableLauncherWriter._get_script_args..rrBrrrez .exe.manifestN)rget_win_launcherrDload_launcher_manifest) rrkrrjr launcher_typerr hdrrm_names ` rCriz0WindowsExecutableLauncherWriter._get_script_argss E>>!MC(CC!MC)))C  //****c***cz3,c8<<<< 6M ] + +     zz > O+F1$77= = = = = = > >rBN)rtrurvrrirArBrCr}r}s->>[>>>rBr}cd|z}tr@tdkr|dd}n-|dd}n|dd}td|S)z Load the Windows launcher (executable) suitable for launching a script. `type` should be either 'cli' or 'gui' Returns the executable as a byte string. z%s.exez win-arm64rz-arm64.z-64.z-32.r)rDr3rTr)rC launcher_fns rCrrs{T/Kzz7 >>[ ( (%--c9==KK%--c6::KK!))#v66 < 5 55rBc~tjtd}|dt zS)Nzlauncher manifest.xmlr) pkg_resourcesrrtrvars)rmanifests rCrr s0,X7NOOH ??7 # #dff ,,rBcVtjd}tj||S)N)rumask)tmps rCrr s! (5//CHSMMM JrBc$td|S)z, Exclude non-str values. Ref #3063. c,t|tSr)r r )r)s rCzonly_strs.. sjc22rB)r)rjs rCriri s 22F ; ;;rBfullnamer rcJ t|tj5}|cdddS#1swxYwYdS#t$rMt|t j5}|cdddcYS#1swxYwYYdSwxYw)Nre)rQr)rlrUnicodeDecodeErrorr(LOCALE_ENCODING)rrds rCrr! s7  (U%7 8 8 8 A6688                      (T%9 : : : a6688                      sUA > A AA AA %B"0B B"B B"B B"!B"ceZdZdZdZdZdS)rtz#easy_install command is deprecated.z Please avoid running ``setup.py`` and ``easy_install``. Instead, use pypa/build, pypa/installer or other standards-based tools. z-https://github.com/pypa/setuptools/issues/917N)rtrurv_SUMMARY_DETAILS_SEE_URLrArBrCrtrt5 s!4HH ?HHHrBrtr)r)rr rr )rw __future__rrrrrrBrrHrrrar?r*rrrrQwarningsrrcollections.abcrrrtypingrrr jaraco.textr rr r r rrrrrrrrrrrrsetuptools.archive_utilrsetuptools.commandrrrsetuptools.package_indexrrrsetuptools.sandboxr setuptools.warningsr!r"setuptools.wheelr#_pathr%_shutilr&rr'rcompatr(r)r7r*r+distutils.commandr,distutils.command.build_scriptsr-distutils.errorsr.r/r0r1rfr2r3r4typing_extensionsr5filterwarnings PEP440Warning__all__rDrJrNrVr8rrrr:r;r9rrSrTrrr rrrbuiltin_module_namesrr"r'r-rr1rr6r=sys_executabler^rrsr}rrrrirrtrArBrCrso  #"""""  $$$$$$5555555555######222222::::::::::TTTTTTTTTT((((((OOOOOOOO""""""$$$$$$GGGGGGGG ########%%%%%%999999 BAAAAAAAAA'&&&&&& M,GHHHH   %%%===R)R)R)R)R)7R)R)R)j( A/A/A/H*-*-*-Z&&&R"""JHHHHH{HHHV.2:>>1599YFF. 6 6 6ODODODd,!!!!@666&)))(R%%   ****   % R%R%R%R%R%$R%R%R%l,,..))))))))________D8E8E8E8E8E,8E8E8Ev>>>>>&9>>>@666&---  <<<(?????$@?????rB