2biFSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKJ r SSK J r J r J r SSKJr SSKJrJrJrJrJrJr \R."\5rSR55r\R8"S 5rS rS r\r "S S \!5r"g))BytesION)ZipInfo) sysconfigdetect_encodingZipFile)finder) FileOperatorget_export_entry convert_pathget_executable get_platformin_venva s^#!.*pythonw?[0-9.]*([ ].*)?$z# -*- coding: utf-8 -*- import re import sys from %(module)s import %(import_name)s if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(%(func)s()) cSU;amURS5(a<URSS5upSU;a URS5(d U<SU<S3nU$URS5(dSU-nU$)N z /usr/bin/env r"z "z"%s") startswithsplit) executableenv _executables ڍ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/distlib/scripts.pyenquote_executabler5s j   1 1)//Q7 Ck!+*@*@*E*E*-{;  ((--#j0 cn\rSrSrSr\rSrSSjrSr \ RRS5(aSr SrS rSS jrS r\rS rS rSrSrSSjrSr\S5r\R8S5r\R<S:Xd \R<S:Xa\R>S:XaSr SSjr!SSjr"Sr#g) ScriptMakerGzS A class to copy or create scripts from source scripts or callable specifications. NcXlX lX0lSUlSUl[ R S:H=(d- [ R S:H=(a [ RS:HUl[S5Ul U=(d [U5Ul [ R S:H=(d- [ R S:H=(a [ RS:HUl [RUlg)NFposixjava)X.Ynt) source_dir target_dir add_launchersforceclobberosname_nameset_modesetvariantsr _fileop_is_ntsys version_info)selfr$r%r&dry_runfileops r__init__ScriptMaker.__init__Ps$$*  G+FF1B2E13W1D K( 6g!6 ggo4 GGv  2"((d"2 ,,rcURSS5(acUR(aR[RR U5up4UR SS5n[RR X45nU$)NguiFpythonpythonw)getr0r)pathrreplacejoin)r3roptionsdnfns r_get_alternate_executable%ScriptMaker._get_alternate_executableasU ;;ue $ $WW]]:.FBHi0Bb-Jrr c[U5nURS5S:HsSSS5 $!,(df  g=f![[4a [R SU5 gf=f)zH Determine if the specified executable is a script (contains a #! line) z#!NzFailed to open %sF)openreadOSErrorIOErrorloggerwarning)r3rfps r _is_shellScriptMaker._is_shellisR  *%771:-&%%W% 2J? s# <+ < 9<<&A%$A%cURU5(a5SSKnURRR S5S:XaU$SU-$UR 5R S5(aU$SU-$)Nrzos.nameLinuxz jython.exez/usr/bin/env %s)rNr langSystem getPropertylowerendswith)r3rr s r_fix_jython_executable"ScriptMaker._fix_jython_executableusw~~j))99##// :gE%%F %z1 1!!#,,\::!!$z1 1rc [RS:waSnOC[U5[U5-S-n[RS:XaSnOSnSU;=(a XE:*nU(a SU-U-S -nU$S nUS U-U-S -- nUS - nU$)a Build a shebang line. In the simple case (on Windows, or a shebang line which is not too long or contains spaces) use a simple formulation for the shebang. Otherwise, use /bin/sh as the executable, with a contrived shebang which allows the script to run either under Python or sh, using suitable quoting. Thanks to Harald Nordgren for his input. See also: http://www.in-ulm.de/~mascheck/various/shebang/#length https://hg.mozilla.org/mozilla-central/file/tip/mach rTdarwini s#! s #!/bin/sh s '''exec' s "$0" "$@" s' ''')r)r*lenr1platform)r3r post_interpsimple_shebangshebang_lengthmax_shebang_lengthresults r_build_shebangScriptMaker._build_shebangs 77g !N!_s;/??!CN||x'%("%("#:5E-C  Z'+5=F  $F lZ/+=O OF h F rcSnUR(aURnSnGOS[R"5(d [5nGO-[ 5(aL[ R R[R"S5S[R"S5-5nO[ R R[R"S5S[R"S5<[R"S5<35n[ R RU5(dK[ R R[R"S5S[R"S5-5nU(aURXS5n[RRS 5(aURU5nU(a [!U5nUR#S 5n[RS :XaS U;a S U;aUS- nUR%XR5nUR'S 5 US :waUR'U5 U$U$![(a [+SU-5ef=f![(a [+SU<SU<S35ef=f)NTFscriptszpython%sEXEBINDIRr:VERSIONr utf-8cliz -X:Framesz -X:FullFramess -X:Framesz,The shebang (%r) is not decodable from utf-8z The shebang (z-) is not decodable from the script encoding ())rris_python_buildr rr)r=r?get_pathget_config_varisfilerCr1r`rrWrencoderfdecodeUnicodeDecodeError ValueError)r3encodingrar@enquotershebangs r _get_shebangScriptMaker._get_shebangs ??JG**,,')J YYi&8&8&C&)A)A%)HHJJ((2(77 B(77>@AJ77>>*-- WW\\)*B*B8*L *i.F.Fu.M NP 77 LJ << " "6 * *44Z@J +J7J &&w/ LLE !k&D{2 = (K%%j>  J NN7 # w  Kx( w" J>HJ J J& K 7>JKK KsI 6I' I$'JcUR[URURR S5SURS9-$)N.r)module import_namefunc)script_templatedictprefixsuffixr)r3entrys r_get_script_textScriptMaker._get_script_texts@##d%,,7<||7I7I#7Nq7Q05 '>> >rc^[RRU5nURU-$N)r)r=basenamemanifest)r3exenamebases r get_manifestScriptMaker.get_manifests%ww(}}t##rc*UR=(a URn[RR S5nUR U5(dX'- nU(dX#-nOUS:XaUR S5nOUR S5n[5n [U S5n [RRS5n U (a>[R"[U 55SSn [SU S9n U RX5 OU RSU5 SSS5 U R!5nX-U-nUGHmn[R"R%UR&U5nU(a][R"R)U5unnUR+S 5(aUnS U-nUR,R/UU5 OUR(a"UR SU-5(d U<SU<3n[R"R7U5(a*UR>(d[2R5SU5 GMUR,R/UU5 UR@(aUR,RCU/5 UREU5 GMp g!,(df  GN=f![0a [2R5S 5 S U-n[R"R7U5(a[R8"U5 [R:"UU5 UR,R/UU5 [2R=S 5 [R8"U5 N![0a Nf=ff=f)NrmpytwSOURCE_DATE_EPOCHz __main__.py)filename date_timez.pyz%s.exez:Failed to write executable - trying to use .deleteme logicz %s.deletemez0Able to replace executable using .deleteme logicr~zSkipping existing file %s)#r&r0r)lineseprtrV _get_launcherrrenvironr<timegmtimeintrwritestrgetvaluer=r?r%splitextrr/write_binary_file ExceptionrKrLexistsremoverenamedebugr(r,set_executable_modeappend)r3namesrz script_bytes filenamesext use_launcherrlauncherstreamzfsource_date_epochrzinfozip_datar*outnamenedfnames r _write_scriptScriptMaker._write_scripts))9dkk **##G,((  G"1Ld{--c2--c2YF%$&JJNN3F$G!$ $ C0A,B CBQ GI#]iPEKK4KK |<&(H#-8LDggll4??D9Gww''01<<&&G"W,LL227LI";;w'7'7c 'B'B)0#6G77>>'**4<<NN#>H ..w E==LL44gY?   W %C&%&!NN$9:*W4Fww~~f-- &)IIgv.LL227LILL"34 &)$s8$A7J/1K/ J>B&N(N N N NN-ch[5nSUR;aURU5 SUR;a$URU<URS<35 SUR;aBURU<UR<URS<SURS<35 U$)Nr!Xrr"r~r)r-r.addr2variant_separator)r3r*res rget_script_filenames ScriptMaker.get_script_filenames,s   JJt  $--  JJt'8'8';< = DMM ! JJdD,B,B&*&7&7&:DURS/5nU(a%SSRU5-nURS5nURSXCS9nUR U5RS5nUR UR 5nU(aURSS5(aS n OS n URXXrU 5 g) Nrinterpreter_argsz %srrmr@r9Fpywr)r<r?rtr{rrr*r) r3rrr@raargsrzscript scriptnamesrs r _make_scriptScriptMaker._make_script7s ;;126Dsxx~-"kk'2 ##G[#J&&u-44W=// ; w{{5%00CC ;CHrcSn[RRUR[ U55n[RRUR [RR U55nUR(d7URRX5(d[RSU5 g[US5nUR5nU(d[RSU5 g[R!UR#SS55nU(aSnUR%S5=(d S nU(dqU(aUR+5 URR-X5 UR.(aURR1U/5 UR3U5 g[R5S UUR 5 URR((d[7UR5upUR9S 5 UR;U W5n S W;aS n OSn [RR U5n UR=U /XR?5X,5 U(aUR+5 gg![&a UR((deSnGNtf=f)NFznot copying %s (up-to-date)rbz%s is an empty file (skipping)s r^Trrzcopying and adjusting %s -> %srspythonwrr) r)r=r?r$r r%rr'r/newerrKrrGreadlinerL FIRST_LINE_REmatchr>grouprJr4close copy_filer,rrinforseekr{rrH)r3rradjustrf first_linerrarxlinesrzrrs r _copy_scriptScriptMaker._copy_scriptGsdoo|F/CD'',,t0@0@0HIzz$,,"4"4V"E"E LL6 ?   4VT"A J?H!'' (:(:7E(JKE#kk!n3  LL " "6 3}} 00';   W % KK8& )<<''"1!**"=q ++HkB+CCGG$$W-""A39J G <<A s JJ=<J=c.URR$rr/r4)r3s rr4ScriptMaker.dry_runzs||###rc$XRlgrr)r3values rr4r~s $ rr#c2[R"S5S:XaSnOSn[5S:XaSOSnU<U<U<S3n[R S S 5S n[ U5R U5nU(dS U<S U<3n[U5eUR$)NP6432z win-arm64z-armr!z.exer~rrzUnable to find resource z in package ) structcalcsizer__name__rsplitr findrwbytes)r3kindbitsplatform_suffixr*distlib_packageresourcemsgs rrScriptMaker._get_launcherss#q((4+(Ef2O#'?D'ooc15a8Oo.33D9HEI&( o%>> !rcl/n[U5nUcURX5 U$URXCUS9 U$)a Make a script. :param specification: The specification, which is either a valid export entry specification (to make a script from a callable) or a filename (to make a script by copying from a source location). :param options: A dictionary of options controlling script generation. :return: A list of all absolute pathnames written to. r)r rr)r3 specificationr@rrs rmakeScriptMaker.makesI  / =   m 7   e  @rc\/nUH#nURURXB55 M% U$)z Take a list of specifications and make scripts from them, :param specifications: A list of specifications. :return: A list of all absolute pathnames written to, )extendr)r3specificationsr@rrs r make_multipleScriptMaker.make_multiples0  +M   TYY}> ?,r) r/r0r&r(r'r,r$r%r.r2)TFN)rNr)$r __module__ __qualname____firstlineno____doc__SCRIPT_TEMPLATErrr6rCr1r`rrNrWrfr{r_DEFAULT_MANIFESTrrrrrrrpropertyr4setterr)r*r+rrr__static_attributes__rrrrGs&OJ=A'+-" ||v&&  2>CJ> !H$8&t I 1f$$ ^^%% ww$277f,T1A "&& rr)#iorloggingr)rerr1rzipfilercompatrrr resourcesr utilr r r r rr getLoggerrrKstriprcompilerrr_enquote_executableobjectrrrrrs 77::   8 $ uw!& =>   )n&nr