efQdZddlmZddlmZddlmZmZddlmZmZm Z m Z ddl m Z m Z ddlmZddlmZdd lmZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd lZdd l Z dd l!Z!dd l"Z"dd l#Z#dd l$Z$dd l%Z%dd l&Z&dd l&m'Z'dd l(m)Z)dd l*m+Z+ddl,m-Z-ddl.m/Z/ddl0m1Z1m2Z2m3Z3ddl,m4Z4m5Z5ddl6m7Z7m8Z8ddl9m:Z:ddl;mZ>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHdd l;Z;ddlImJZJddlKmLZLddlMmNZNejOde;jPgdZQdZRdZSdZTdZUGd d!e)ZVd"ZWd#ZXd$ZYd%ZZd&Z[Gd'd(e@Z\Gd)d*e\Z]ej^_d+d,d-kre]Z\d.Z`d/Zad0Zbd1ZcdQd2Zdd3Zed4Zfd5ejgvrefZhnd6ZhdRd8Zid9Zjd:Zkd;Zl ddZmGd?d@epZqeqrZsGdAdBeqZtGdCdDZuGdEdFeuZvGdGdHevZwdIZxdJZydKeafdLZzdMZ{dNZ|GdOdPe7Z}d S)Sa) 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 )glob) get_platform) convert_path subst_vars)DistutilsArgErrorDistutilsOptionErrorDistutilsErrorDistutilsPlatformError)logdir_util) first_line_re)find_executable)installN)get_path)Command) run_setup)setopt)unpack_archive) PackageIndexparse_requirement_arg URL_SCHEME) bdist_eggegg_info)SetuptoolsDeprecationWarningSetuptoolsWarning)Wheel) normalize_pathresource_stringget_distributionfind_distributions Environment Requirement Distribution PathMetadata EggMetadata WorkingSetDistributionNotFoundVersionConflict DEVELOP_DIST) py312compat)ensure_directory) yield_linesdefault)category) easy_installPthDistributionsextract_wininst_cfgget_exe_prefixesc2tjddkS)NP)structcalcsize/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/easy_install.pyis_64bitr<]s ?3  1 $$r:c,|dS)Nutf8)encodess r; _to_bytesrBas 88F  r:cT |ddS#t$rYdSwxYw)NasciiTF)r? UnicodeErrorr@s r;isasciirFes@ t uus  ''cvtj|ddS)N z; )textwrapdedentstripreplace)texts r; _one_linerrNms. ?4 & & ( ( 0 0t < <Z1d?Z2dcd@Z3edAZ4dddDZ5dEZ6dFZ7dGZ8dHZ9dIZ:dJZ;ejdKZ<ejdLZ=dedNZ>ejdOZ?dPZ@dQZAdRZBdSZCdTZDdUZEdVZFdWZGejdXHZIdYZJeKeKdZd[\]ZLeKd^d_\ZMd`ZNdS)fr0z'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=rAzinstall 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') rPrRrWrTrYrbrdrgrirjr_rPc 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)Nrr0)0EasyInstallDeprecationWarningemitrjzip_oklocal_snapshots_ok install_dir script_direxclude_scripts index_url find_linksbuild_directoryargsoptimizerecordrT always_copy multi_versionrbno_deps allow_hostsrootprefix no_reportriinstall_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 r;initialize_optionszeasy_install.initialize_optionss%**,,, 044 d-DHHH4?T-A# &**  ?CC Ct'$*<:>> > t'7377 7DK$. ####   $ $ $!"044 -"$  (0  .. $#33NCC     r:cbd|D}tt|j|dS)Nc3K|]D}tj|stj|@|VEdSN)ospathexistsislink).0filenames r; z/easy_install.delete_blockers..sb  w~~h'' ,.7>>(+C+C       r:)listmap _delete_path)rblockersextant_blockerss r;delete_blockerszeasy_install.delete_blockerssC  $    S"O 4 455555r:ctjd||jrdStj|otj| }|rtn tj}||dS)Nz Deleting %s) r infodry_runrrisdirr_rmtreeunlink)rris_treeremovers r;rzeasy_install._delete_pathsm %%% <  F'--%%BbgnnT.B.B*B$3''") r:cdjtj}td}d}t |jdit t )zT Render the Setuptools version and installation details, then exit. {}.{} setuptoolsz=setuptools {dist.version} from {dist.location} (Python {ver})Nr9)formatsys version_inforprintlocals SystemExit)verdisttmpls r;_render_versionzeasy_install._render_versionsU gnc./ --N kdk%%FHH%%&&&llr:cL |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)$Nr.r~ 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.rprqrurFr)rprprrprqr)rxrx__EASYINSTALL_INDEXzhttps://pypi.org/simple/c6g|]}|Sr9)rKrrAs r; z1easy_install.finalize_options..Js DDD1QWWYYDDDr:,*) search_pathhosts)rwrwz9Must specify a build directory (-b) when using --editablez:No urls, filenames, or requirements specified (see --help))Irirrsplitdict sysconfigget_config_vars config_varsupdaterget_name get_version get_fullnamermajorminorgetattr contextlibsuppressAttributeErrorr_get_implementationlower setdefaultrLrrrjrENABLE_USER_SITEr warn_fix_install_dir_for_user_siteexpand_basedirs expand_dirs_expandrqrprset_undefined_optionsrr get_site_dirs all_site_dirsextend_process_site_dirsrrbcheck_site_dirrgetenvrs shadow_pathrinsertr|r create_indexr!r local_indexrt isinstancestrroscan_egg_linksadd_find_links_validate_optimizerwrurrvoutputs)rr default_index path_itemrs r;finalize_optionszeasy_install.finalize_optionss /--//[&&((+  9 ; ;<< !.7799 $ 1 = = ? ?!%!2!?!?!A!A('-HH0@0FHH'*'7'=$Ws?O?U$W$W".x8#'#3M#B#CR88%c<??     "  0 0     # #,3,G,I,I,O,O,Q,Q&-&A&C&C                   ## # 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|4Sr9)rr expanduserrKrs r;rz3easy_install._process_site_dirs..rs0QQQqRW'' 22QQQr:rz"%s (in --site-dirs) does not existz$ (in --site-dirs) is not on sys.path) rrrrrrrr rr)rnormpathrVs r;rzeasy_install._process_site_dirsls   F~sx00QQIOOCropencloseenvirongetr r_easy_install__no_default_msgrr1)rinstdirr is_site_dirtestfile test_exists pythonpaths r;rzeasy_install.check_site_dirs!!1227<<);<<w~~g&& , , G$$$$ , , ,))+++++ ,!33  ,4#5 ,3355KK++-- =H'..22K ,(Ih'''Xs##))+++ (#### , , ,))+++++ , J4#5 J b99J HT*D,&> ! 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. c|jtjd|jfz}tj|js|d|jzz }n |d|jzz }t|)NrH) _easy_install__cant_write_msgrexc_inforprrr_easy_install__not_exists_id_easy_install__access_msgr )rrs r;rGz!easy_install.cant_write_to_target1sw# LNN1   '   w~~d.// , 4$.. .CC 4$++ +CS!!!r:c^|j}tjd||dz}|dz}tj|}tddz} |rt j|tj |}t j |dt|d} | |j dit|d }t j}tjd kr}tj|\}} tj|d } | d kotj| } | r| }d dlm} | |dddgd tj|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#t0$r|YnwxYw|jstjd|dS)z@Empirically verify whether .pth files are supported in inst. dirz Checking .pth file support in %s.pthz.okzz import os f = open({ok_file!r}, 'w') f.write('OK') f.close() rHT)exist_okrCNr pythonw.exe python.exer)spawnz-Ez-cpassz-TEST PASSED: %s appears to support .pth filesz+TEST FAILED: %s does NOT support .pth filesFr9)rpr rr>rrrrNrdirnamerErIwriterrrJr executablerrr<rdistutils.spawnr^rFrGrzr) rrNrok_file ok_existsrr`r\rbbasenamealtuse_altr^s r;rHz!easy_install.check_pth_processing=su" 3W===''))F2U"GNN7++     # ( # '"""goog..G K$ / / / /Xs##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!+AM-D%K++A?M*-N Nc $|jss|dr^|dD]H}|d|zr||||d|zI||dS)z=Write all the scripts for `dist`, unless scripts are excludedscriptszscripts/N)rrmetadata_isdirmetadata_listdirinstall_script get_metadatainstall_wrapper_scripts)rr script_names r;install_egg_scriptsz easy_install.install_egg_scriptsws# (;(;I(F(F #44Y??   &&zK'?@@##+t'8'8k9Q'R'R $$T*****r:c,tj|rZtj|D]C\}}}|D]:}|jtj||;DdS|j|dSr)rrrwalkrappendr<)rrbaser&filesrs r; add_outputzeasy_install.add_outputs 7==   &%'WT]] F F!dE %FFHL'' T8(D(DEEEEF F F L   % % % % %r:c:|jrtd|ddS)NzInvalid argument zW: you can't use filenames or URLs with --editable (except via the --find-links option).)rbrrr2s r; not_editablezeasy_install.not_editables8 = ##KO44R   r:c|jsdStjtj|j|jrt|jd|jddS)Nz already exists in z; can't do a checkout there)rbrrrr<rukeyrrys r;check_editablezeasy_install.check_editablesq}  F 7>>"',,t';TXFF G G #888T1113   r:c#$Ktjd} t|Vtj|ot |dSdS#tj|ot |wwxYw)Nz easy_install-)r~)tempfilemkdtemprrrrr)rtmpdirs r;_tmpdirzeasy_install._tmpdirs!)9::: 7f++    GNN6 " " 6wv 6 6 6BGNN6 " " 6wv 6 6s A2BFc |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)rrr"rrzrdownload install_itemrrrrr}fetch_distributionrTrbryrr precedencer)process_distributionlocation)rr2depsrdlrrs r;r0zeasy_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#GGGGc|p|j}|p"tj||k}|p|d }|pJ|jduoAtjt |t |jk}|r&|s$|j|jD]}|j |krnd}tj dtj ||r4| |||}|D]}||||n4||g}|||d|d| |D] }||vr|cS dSdS)N.eggTz Processing %srr)ryrrr`endswithrrr project_namerr rrf install_eggsregg_distribution)rr2rrrinstall_neededrdistss r;rzeasy_install.install_items';4+;'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     r:c tj||dS#t$r8tj||ddYdSwxYw)Nrunix)r_select_schemerrrL)rrs r;rzeasy_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_pthraddrr|removerqrr rinstallation_report has_metadatarrget_metadata_linesryras_requirementr"rr&resolver0r'r r(reportr)r requirementrrrdistreqdistrosrcs r;rz!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)rnr)rrs r; should_unzipzeasy_install.should_unzip"sO ; "{? "   ^ , , 4  ,, 4ur:ctj|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 keptrTr)rrr<rur|rr rrr`rlistdirr,r,shutilmove)rr2 dist_filename setup_basedstrcontentss r; maybe_movezeasy_install.maybe_move+sgll4/:: 7>>#   PC HS$(D$8* E E E  7== ' ' /&JJw}--;; -(((z*--H8}}!! " Z! E E 7==///!.J J$$$ r:c|jrdSt|D] }|j| dSr)rr ScriptWriterbestget_args write_script)rrrvs r;roz$easy_install.install_wrapper_scripts@sX    F %%''0066 % %D D t $ $ $ % %r:c6t|}t||}|rA||t z}t ||z}||t|ddS)z/Generate a legacy script wrapper and install itr]N) rris_python_script_load_templaterr get_headerrrB)rrrp script_textdev_pathr2 is_scriptbodys r;rmzeasy_install.install_scriptFs4&&(())$[+>>  F&&x00688;D&11+>>EK +y'='=sCCCCCr:cd}|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)rLrdecode)rr raw_bytess r;rzeasy_install._load_templatePsG  8<<77D#L$77 (((r:tr9cLfd|Dtjd|jtjj|}|jrdSt}t|tj |rt j |t|d|z5}||dddn #1swxYwYt|d|z dS)z1Write an executable file to the scripts directorycZg|]'}tjj|(Sr9)rrr<rq)rrXrs r;rz-easy_install.write_script..bs+ @ @ @!RW\\$/1 - - @ @ @r:zInstalling %s script to %sNrCi)rr rrqrrr<rwr current_umaskr,rrrIrachmod)rrprmodertargetmaskr\s` r;rzeasy_install.write_script_sR  @ @ @ @x @ @ @    -{DOLLLdo{;;  <  F   7>>& ! !  If    &#* % %  GGH                   fedl#####s$DD  D 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 %srTzMultiple setup scripts in %sr) install_egg install_exe install_wheelrKeyErrorrrisfilerrunpack_progressrabspath startswithrurr<rrr r,rbr rreport_editablebuild_and_install) rr2rr installer_map install_distr setup_scriptsetupss r;rzeasy_install.install_eggsss?$$&   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) rrrr$r<r% zipimport zipimporterr# from_filename)regg_pathrs r;rzeasy_install.egg_distributionsh 7== " " D#Hbgll8Z.P.PQQHH"9#8#B#BCCH)(XFFFFr:c 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)rrr<rprfrrr,rrsamefilerrr remove_treer.rrrrcopytreermkpathunpack_and_compilecopy2r`update_dist_cachesr8rw)rrr destinationrnew_dist_is_zippedr\rSs r;rzeasy_install.install_eggsgll   G  X & &  gook22 | * [ ) ) )$$X.. GNN; ' '' ,.G,<,.s- W W W4RW\\*d1g . . W W Wr:)rr)r2r r#rLrrrr<egg_namerr,r$ _provider exe_to_eggrrIraitemsrLtitlerJrrrr make_zipfilerrr) rrrcfgrregg_tmp _egg_infopkg_infr\kvrqs @r;rzeasy_install.install_exesJ!-00 ; :]J  V44GGJ 22!^^    7<< &(@AA  V#GLL*55 ',,y*55!!!%gy99  w///w~~g&& Wc""A GG- . . . *-- K K1(((GG!))C*=*=*C*C*E*E*E*EqqqIJJJ GGIIIW\\)Y77   W W W W<;P;PQU;V;V W W W      LL     &111r:c  t| gg i fd}t||g} D]}|dr|d}|d}t j|ddz|d<tjj g|R} || |t j ||| t j tj dt j|dD]} t| rtj d| dz} tj| sat#| d } | d t| d z| d S) z;Extract a bdist_wininst to the directories an egg would usecR|} D]c\}}||rG||t|dz}|d}t jjg|R}|}|ds|dratj |d|d<d tj |dd< |n^|drI|dkrCd tj |dd< ||cSe|d stj d |dS) N/.pyd.dllrTrrSCRIPTS/rZzWARNING: can't process %s)rrr,rrrr<rr strip_modulesplitextrtr r) srcrrAoldnewpartsrr native_libsprefixes to_compile top_levels r;processz(easy_install.exe_to_egg..processs A$  S<<$$ CHHJJ/CIIcNNE',w7777CB{{6**/bkk&.A.A/$-$:59$E$Eb CD "'"2"258"<"=%(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.) Installedcd}|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)srHr) rzr_easy_install__mv_warningrprrrr_easy_install__id_warningrrrir) rreqrwhatregglocrriextrass r;rz easy_install.installation_reportzs/   0dn 0 4$++ +Cs>38'D'DDDtd/// ,VXX~r:aR 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)NrH)rrr`rrb_easy_install__editable_msgr)rr2rr`pythons r;rzeasy_install.report_editables3'//,//d)FHH444r:ctjdttjdtt |}|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*rrTrrz-qz-nz Running %s %s zSetup script exited with )rmodulesrrrrrrrr rr,r<rrr rv)rrrrvrs r;rzeasy_install.run_setupsI >( # # Ih    (D ! ! GQ GGDM// >>E F F F G G G G G G G G G G G G G G G G G Gs66G99G=G=c2tjd|||S)NzUnpacking %s to %s)r debug)rrrs r;rzeasy_install.unpack_progresss &S111 r:cggfd}t|||js?D]>}tj|tjdzdz}t ||=dSdS)NcF|dr+|ds|n?|ds|dr|||j r|pdS)Nr EGG-INFO/r z.so)rrrtrr)rrrto_chmodrs r;pfz+easy_install.unpack_and_compile..pfs||E"" %3>>++F+F %!!#&&&&f%% %e)<)< %$$$  c * * *|#+3t 3r:imi)rrrrstatST_MODEr)rrrrNr\rrMrs` @@r;rzeasy_install.unpack_and_compile s  4 4 4 4 4 4 4 xb111 *%%%|   DL1U:fDa    r:c>tjrdSddlm} t j|jdz ||dd|j|jr|||jd|jt j|jdS#t j|jwxYw)Nr)rrT)rwforcer) rdont_write_bytecodedistutils.utilrr r+rrrw)rrrs r;rzeasy_install.byte_compiles  "  F////// ,  dlQ. / / / Laq$, O O O O}  !] 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) rjrrrr  only_strsrvaluesrr debug_printrE)rhomers r;rzeasy_install.create_home_pathVsy  FBG..s3344d.557788 ) )Dt$$ )RW]]4-@-@ )  !;d!BCCC D%((( ) )r:z/$base/lib/python$py_version_short/site-packagesz $base/binrrz$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)Nrrur)rr)get_finalized_commandrr~rINSTALL_SCHEMESrLrrDEFAULT_SCHEMErrrrTrrr )rrrschemer r!rs r;rzeasy_install._expandls00;;G ; -{++K"&+K )--bgt7JKKF#\\^^ - - c4t,,4D$,,,------ ) )D$%%C jk227g%%',,S11CdC(((  ) )r:)T)Fr)rr9)r&)O__name__ __module__ __qualname____doc__ descriptioncommand_consumes_argumentsrr user_optionsboolean_options negative_optrrrrr staticmethodrr rrrr"rrr5r>r0rrIrJlstriprUrWrXrGrHrqrwrzr}rcontextmanagerrr0rrrrrrormrrrrrrrrr(r)rr/rrrr6rrrrrKrMrrr^r_rr9r:r;r0r0qs114K!% 17GM769G?HT QKHH6EO? :T^KL? LB   O#H-LL+ + + Z666\yyyv ( (\ (\ ( ( ()))III ! ! !9999: L L L   +#+#+#Z'x  fhh &ho   fhh #8?   fhh!$ " " "888t + + +&&&777#L#L#L#LJ! ! ! ! FOOO *I*I*I*IX*%%% DDDD ) )\ )$$$$(1D1D1DfGGG424242l.2.2.2b333j2226#8?    fhh#8? L    %X_    fhh555 VVV$,,,.3336'G'G'GR &,,,*'x   @ eggAD)))ddI"   OT-"N )))))r:r0ctjddtj}t d|S)NrDr)rrKrLrpathsepfilter)rs r; _pythonpathrps7 JNN< , , 2 22: > >E $  r:c gttjg}tjtjkr|tj|D]}}|stjdvr5tj |ddntj dkritj |ddj tj dtj |ddgn6|tj |ddgtjdkr d |vrtj d }|s3tj |d d d j tj d}|tdtdf}fd|Dt jrt jt'jt*5t!jdddn #1swxYwYt/t1t2S)z& Return a list of 'site' dirs )os2emxriscosLibz site-packagesrrz python{}.{}z site-pythondarwinzPython.frameworkHOMELibraryPythonrpurelibplatlibc3$K|] }|v|V dSrr9)rrAsitedirss r;rz get_site_dirs..s->>!AX,=,=A,=,=,=,=>>r:N)rrprr~rrtrrrr<seprrrKrLrrrrrrrgetsitepackagesrrr)rr~rZhome_sp lib_pathsr|s @r;rrs H OOKMM""" |H #*$$(((-!-!   </ / / OOBGLLHH I I I I Vs]] OOGLL, ,c.>?'  GLL >>     OOGLL@@    <8 # #  V + + z~~f%%  ',,    GNC, -         ##Xi%8%88I OO>>>>y>>>>>> ('''  ^ , ,00,..///000000000000000C1122H Os/'J""J&)J&c#Ki}|D]Q}t|}||vrd||<tj|sd||<tj|sc|tj|fV|SdS)zBYield sys.path directories that might contain "old-style" packagesrTrZ)rBrCimportN) rrrrrrrIr<rr-rJrrstrip)inputsseenr`rvrr\lineslines r; expand_pathsrs D&-&- )) d?? W w}}W%%   7##un - -D==(( ===RW\\'40011AQ((E GGIII - -??8,,%dkkmm444<<T w}}T**BJt,,,,,,, - -&-&-r:cFt|d} tj|}| |dS|d|dz |dz }|dkr |dS||dz t jd|d\}}}|dvr |dS||d|zz d d d }tj |} ||} | d d d } | tj } |tj| n*#tj$rY|dSwxYw|dr|ds |dS||S#|wxYw)znExtract configuration data from a bdist_wininst .exe Returns a configparser.RawConfigParser, or None rbN  z:  7AY*fQi7 r>>2  1 y2~#]6166"::>>VU . . .(  % 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)r zEGG-INFO/scripts/)zDATA/lib/site-packagesrrrr*rrTz .egg-inforNrLrZz -nspkg.pth)PURELIBPLATLIB\rrc@g|]\}}||fSr9)r)rrXys r;rz$get_exe_prefixes..Hs(44441aA444r:)rZipFileinfolistrrr,rrr<upperrrr-rKrLrrtrJsortreverse) exe_filenamerrQrrrrpths r;r3r3)sH  %%AJJLL L LD=DJJsOOE5zzQ58z#9#98$$[11OOArr(;(;['IJJJE5zzQdmmF&;&;}}\** Qx~~#99966$<<..00&x00LLC))++--dC88C>>(33L eAhhh*Dr(JKKK   448444H MMOOO  Os FGGcfeZdZdZd fd ZdZdZdZedZ fdZ fd Z d Z xZ S) r1z)A .pth file with Distribution paths in itr9c ||_ttt||_tt j|j|_| \|_ |_ |j dd|_ tgddt|j D]2}tt|jt#|d3dS)NT)rrrrr|rrr`basedir_loadrEdirty _init_pathssuper__init__r-rr )rrr|r __class__s r;rzPthDistributions.__init__Qs  S::;; %bgoodm&D&DEE !% DJ:aaa= T4((( ++ @ @D TX1$==>> ? ? ? ? @ @r:c:g}dx}}t|j}t|jd}|D]}|}|||drd}C|}|r|drottj |j |} | |vstj | s,tjd|d}|d|| <||rL|ds2|d}|r|d2||p|o|fS) NFrt)import from T#z!cleaned up dirty or duplicated %rrTr )rfromkeysr|rIrrrtrrKrrrr<rrr rIpoprJ) rrEr saw_importrr\rr stripped_pathnormalized_paths r; _load_rawzPthDistributions._load_raw\s"" }}T]++  % % & &D;;==D LL   344 !  JJLLM  M$<$>$- ( ( $>>## #5yr:cN|\}}|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-|jd5}||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 %srHrDzDeleting empty %sF)rrErtr rrrrrr<rrrrrrrGrIr _wrap_linesrrrIra) r last_paths last_dirtyr absolute_path rel_pathsrdatar\s r;rFzPthDistributions.saves"& 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,, ) $-(((dmT** a                 W^^DM * * % I)4= 9 9 9 Idm $ $ $ "jmsH""H&)H&c|Srr9)rs r;rzPthDistributions._wrap_liness r:c |j|jvo)|j|jvp|jtjk}|r&|j|jd|_t|dS)z"Add `dist` to the distribution mapTN) rrEr|rgetcwdrtrrr)rrnew_pathrs r;rzPthDistributions.adds= 2 M . ) MRY[[ (    J  dm , , ,DJ  Dr:c|j|jvr4|j|jd|_|j|jv4t |dS)z'Remove `dist` from the distribution mapTN)rrErrr)rrrs r;rzPthDistributions.removes`mtz)) J  dm , , ,DJmtz)) tr:c.tjt|\}}t |j}|g}tjdkrdp tj}t ||kr||jkrH|tj | | |Stj|\}}||t ||k|S)Nr) rrrrr,raltsepr}rtcurdirrr<)rrnpathlastbaselenrr}s r;rGzPthDistributions.make_relativesgmmN4$8$899 tdl##i3&30"&%jjG## $$ RY''' xx&'--..KE4 LL    %jjG##Kr:)r9)rarbrcrdrrrrFrjrrrrG __classcell__)rs@r;r1r1Ns33 @ @ @ @ @ @666> ,,,,,,\\            r:r1cPeZdZedZedZedZdS)RewritePthDistributionsc#@K|jV|D]}|V|jVdSr)preludepostlude)clsrrs r;rz#RewritePthDistributions._wrap_linessBk  DJJJJlr:z? 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)rarbrc classmethodrrNrrr9r:r;rrsW[ j G z   HHHr:rSETUPTOOLS_SYS_PATH_TECHNIQUErawrewritecttjtrtSt jtjS)z_ Return a regular expression based on first_line_re suitable for matching strings. )rr patternrrecompilerr9r:r;_first_line_rers@ -'-- :m+2244 5 55r:c|tjtjfvr5tjdkr%t |t j||Stj\}}}|d|dd|d|zf)NrrrTr2) rrrrrrOS_IWRITErrV)funcargexcetevrs r; auto_chmodrsv  29%%%"'T// c4=!!!tCyy IBA a5"Q%%tttSS12 33r:ct|}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 r;rr sXx%Y//O _c5666D)/::::: 3?CCCCCr:cg}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. rTr)r,rrrr}rt)rcacheresult prefix_lenpnps r;"_collect_zipimporter_cache_entriesr[sF_%%J  A   == ) ) bj1n1L.M F R / /  MM!    Mr:clt||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 r;_update_zipimporter_cacherqs_0 G G!!!H !H59 5 5   E!H!!r:c&t||dSr)r)rrs r;rrsou55555r:cDd}t|tj|dS)Nc.|dSr)clearrrs r;2clear_and_remove_cached_zip_archive_directory_datazf_remove_and_clear_zip_directory_cache_data..clear_and_remove_cached_zip_archive_directory_datasr:rrr_zip_directory_cache)rr s r;rrs@&Br:__pypy__cDd}t|tj|dS)Nc|tj||tj||Sr)rrrrr rs r;)replace_cached_zip_archive_directory_datazT_replace_zip_directory_cache_data..replace_cached_zip_archive_directory_datasG OO     !$ ' ' '   Y;DA B B B r:r r )rrs r;rrs@    "   *=      r:cZ t||ddS#ttf$rYdSwxYw)z%Is this string a valid Python script?execTF)r SyntaxError TypeError)rMrs r; is_pythonrsIh'''t  #uus **c t|d5}|d}dddn #1swxYwYn#t$r|cYSwxYw|dkS)zCDetermine if the specified executable is a .sh (contains a #! line)zlatin-1)encodingr*N#!)rIrrF)rbfpmagics r;is_shrs *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)rs r; nt_quote_argr!s  "C5 ) ))r:c|ds|drdSt||rdS|dr.d|dvSdS)zHIs this text, as a whole, a Python script? (as opposed to shell/bat/etc.r.pywTrr0rF)rrr splitlinesr)rrs r;rrs8#4#4V#<#<th''td##?;1133A6<<>>>> 5r:)rcdSrr9)rvs r;_chmodr&r@r:ctjd|| t||dS#tj$r }tjd|Yd}~dSd}~wwxYw)Nzchanging mode of %s to %ozchmod failed: %s)r rIr&rerror)rrrcs r;rrsxI)4666)tT 8))) $a((((((((()s*AAAceZdZdZgZeZedZedZ edZ edZ edZ dZ edZd Zed Zed Zd S) CommandSpeczm A command spec for a #! header, specified as a list of arguments akin to those passed to Popen. c|S)zV Choose the best CommandSpec class based on environmental conditions. r9rs r;rzCommandSpec.bests  r:ctjtj}tjd|S)N__PYVENV_LAUNCHER__)rrr rrbrKrL)r_defaults r;_sys_executablezCommandSpec._sys_executables07##CN33z~~3X>>>r:ct||r|St|tr ||S||S||S)zg Construct a CommandSpec from a parameter to build_scripts, which may be None. )rrfrom_environment from_string)rparams r; from_paramzCommandSpec.from_param sd eS ! ! L eT " " 3u::  ='')) )u%%%r:c>||gSr)r0r,s r;r2zCommandSpec.from_environments!sC''))*+++r:cFtj|fi|j}||S)z} Construct a command spec from a simple string representing a command line parseable by shlex.split. )shlexr split_args)rstringrs r;r3zCommandSpec.from_strings+  F55cn55s5zzr:ctj|||_t j|}t |sdg|jdd<dSdS)Nz-xr)r8r_extract_optionsoptionsrr rF)rrcmdlines r;install_optionszCommandSpec.install_options(sc{4#8#8#E#EFF )$//w & $vDL!    & &r:c|dzd}t|}|r|dpdnd}|S)zH Extract any options from the first line of the script. rHrrTr)r$rmatchgrouprK) orig_scriptfirstrAr=s r;r<zCommandSpec._extract_options.sb t#//11!4  &&u--*/7%++a..&BR}}r:cV||t|jzSr)_renderrr=rs r; as_headerzCommandSpec.as_header8s#||D4 #5#55666r:cd}|D]8}||r!||r |ddcS9|S)Nz"'rTr )rr)item_QUOTESqs r; _strip_quoteszCommandSpec._strip_quotes;sW " "Aq!! "dmmA&6&6 "AbDz!!! r:cNtjd|D}d|zdzS)Nc3nK|]0}t|V1dSr)r*rLrK)rrIs r;rz&CommandSpec._render..EsI* * 8s r;rFzCommandSpec._renderCsA)* * @E* * *   g~$$r:N)rarbrcrdr=rr9rrr0r5r2r3r?rjr<rGrLrFr9r:r;r*r*s$ GJ[ ??[? & &[ &,,[,[&&& \777\%%\%%%r:r*c&eZdZedZdS)WindowsCommandSpecFr[N)rarbrcrr9r9r:r;rPrPOs E"""JJJr:rPceZdZdZejdZeZ e d dZ e dZ e dZe dZe d d ZdS) 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#~K||}t|}dD]}|dz}||D]Q\}}|||jtz}|||||} | D]} | VRdS)z Yield write_script() argument tuples for a distribution's console_scripts and gui_scripts entry points. Nconsolegui_scripts) rrr get_entry_mapr_ensure_safe_nametemplater_get_script_args) rrheaderr2type_rBreprrvrs r;rzScriptWriter.get_argss >^^%%F4&&(())%  EJ&E ..u55;;==  b%%d+++!lVXX5 ++E4MMCIIII    r:cRtjd|}|rtddS)z? Prevent paths in *_scripts entry point names. z[\\/]z+Path separators not allowed in script namesN)rsearchr)r has_path_seps r;rXzScriptWriter._ensure_safe_names9 y400  LJKK K L Lr:ctjdks tjdkr)tjdkrt S|S)zD Select the best ScriptWriter for this environment. win32javar)rrrr_nameWindowsScriptWriterrr,s r;rzScriptWriter.bests@ <7 " "rw&'8'8RX=M=M&++-- -Jr:c#K|||zfVdSrr9)rr\rr[rs r;rZzScriptWriter._get_script_argss$Vk)******r:rc|j|}|||S)z;Create a #! line, getting options (if any) from script_text)command_spec_classrr5r?rG)rrrbcmds r;rzScriptWriter.get_headersH$))++66zBB K(((}}r:r)rN)rarbrcrdrIrJrkrYr*rhrrrjrXrrZrr9r:r;rrSs x! ##F fhhG J%["LL\L[++[+[r:rcjeZdZeZedZedZedZe dZ dS)rec~tt|}tjdd}||S)zC Select the best ScriptWriter suitable for Windows )rbnaturalSETUPTOOLS_LAUNCHERrb)rWindowsExecutableLauncherWriterrrKrL)r writer_lookuplaunchers r;rzWindowsScriptWriter.bestsA 6   :>>"7FFX&&r:c#Ktdd|}|tjddvr-djd it }tj|gd}| || ||}fd|D}|z||zd |fVd S) z For Windows, add a .py extension.pyar#rSPATHEXT;zK{ext} not listed in PATHEXT; scripts will not be recognized as executables.)rrr -script.py.pyc.pyor#rcg|]}|zSr9r9rrXrs r;rz8WindowsScriptWriter._get_script_args..***D1H***r:rNr9) rrrKrrrrrrmr_adjust_header) rr\rr[rextrrrs ` r;rZz$WindowsScriptWriter._get_script_argss6v...u5 bj+113399#>> > >-!!xx!!C  "3 ' ' 'KKK 3##E622****c***Sj&;.X======r:cd}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). r\r]rU)r:repl)rrescape IGNORECASEsub _use_header)rr\ orig_headerrr~ pattern_ob new_headers r;r{z"WindowsScriptWriter._adjust_headersm   E>> 'TGZ ' 2 2BMBB ^^;T^BB  __Z88IzzkIr:cz|ddd}tjdkpt|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 "rb)rKrrr)r clean_headers r;rzWindowsScriptWriter._use_headers:"!B$'--c22 |w&G/,*G*GGr:N) rarbrcrPrhrrrZr{rjrr9r:r;reres+ ' '[ ' > >[ > J J[ J H H\ H H Hr:rec$eZdZedZdS)rnc#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 rUz -script.pywr#cliru)rrvrwcg|]}|zSr9r9rys r;rzDWindowsExecutableLauncherWriter._get_script_args..rzr:rrr]z .exe.manifestN)r{get_win_launcherr<load_launcher_manifest) rr\rr[r launcher_typer|rhdrrm_names ` r;rZz0WindowsExecutableLauncherWriter._get_script_argss E>>!MC(CC!MC)))C  //****c***cz3,c8<<<< 6M ] + +     zz > O+F1$77= = = = = = > >r:N)rarbrcrrZr9r:r;rnrns->>[>>>r:rncd|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)r<rrLr)type launcher_fns r;rr s{T/Kzz7 >>[ ( (%--c9==KK%--c6::KK!))#v66 < 5 55r:c~tjtd}|dt zS)Nzlauncher manifest.xmlr) pkg_resourcesrrarvars)rmanifests r;rr s0,X7NOOH ??7 # #dff ,,r:Fc.tj|||Sr)r+ shutil_rmtree)r ignore_errorsonexcs r;rr% s  $T=% @ @@r:cVtjd}tj||S)N)rumask)tmps r;rr) s! (5//CHSMMM Jr:c$td|S)z, Exclude non-str values. Ref #3063. c,t|tSr)rr)r!s r;zonly_strs..3 sjc22r:)ro)rXs r;rWrW/ s 22F ; ;;r:ceZdZdZdZdZdS)rlz#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)rarbrc_SUMMARY_DETAILS_SEE_URLr9r:r;rlrl6 s!4HH ?HHHr:rlr)r)~rdrrTrrrdistutils.errorsrrr r r-r r distutils.command.build_scriptsr rcrdistutils.commandrrrrrrrrrOr9rIwarningsrr7rrr8rrrrrrsetuptools.sandboxrsetuptools.commandrsetuptools.archive_utilrsetuptools.package_indexrrrrrsetuptools.warningsrrsetuptools.wheelrrrrrr r!r"r#r$r%r&r'r(r)rr+_pathr,extern.jaraco.textr-filterwarnings PEP440Warning__all__r<rBrFrNr0rprrr2r3r1rrKrLrrrrrrrbuiltin_module_namesrrrr!rrr& ImportErrorrr*r0sys_executablerPrrernrrrrrWrlr9r:r;rs|  ''''''33333333 $#######999999++++++%%%%%%     ((((((%%%%%%222222 32222222OOOOOOOO""""""$$$$$$,,,,,, M,GHHHH   %%%===O)O)O)O)O)7O)O)O)d( GGGT+-+-+-\&&&R"""JEEEEE{EEEP.4:>>1599YFF. 6 6 6444ODODODd,!!!!@666&)))(R%%   ****    """""""         )))Q%Q%Q%Q%Q%$Q%Q%Q%j,,..########\\\\\\\\~8H8H8H8H8H,8H8H8Hv>>>>>&9>>>@666&--- !&ZAAAA <<<?????$@?????s/F66GG