Wc} . ddlZddlZddlmZmZgdZdhZddddd d d d d ddddddd d d dddddddd d ddddd d d d d dddddddd d dZejdkr eded<n eded<eded<dZ e duZ e r!eddddd d!d"d#d$d$d%d%d&d'd"d#d(d(d)d)d&d'd"d#d*zZe ed+sej ej ks d,ejvrd-Zd#ZejdZejdd.ejd/Zejdejd/Zejej Zejej ZejejZejejZdadZ d0Z!d1Z"d2Z#d3Z$ej%r)ej&e$ej%Z'ne$ej(Z'e)ed4dZ*e*re*Z'ejdkr,e$e'+e$ed5reZ'd6ejvre$ejd6Z'dZd7Z,e,Z-e-r#d8D]Z.ee.Z.e.d9e.d:<d;e.d9<dZ/d?Z0da1d@Z2dAZ3dBZ4dCZ5dDZ6d[dFZ7dGZ8dHZ9dIZ:dJZ;dKZdNZ?dOZ@e6ddEfdPZAe6ddEfdQZBdRZCdSZDdTZEdUZFdVZGdWZHdXZIeJdYkr eIdSdS)\N)pardirrealpath) get_config_h_filenameget_config_varget_config_varsget_makefile_filenameget_pathget_path_names get_paths get_platformget_python_versionget_scheme_namesparse_config_hMACOSX_DEPLOYMENT_TARGETz6{installed_base}/{platlibdir}/python{py_version_short}z0{platbase}/{platlibdir}/python{py_version_short}z1{base}/lib/python{py_version_short}/site-packagesz>{platbase}/{platlibdir}/python{py_version_short}/site-packagesz;{installed_base}/include/python{py_version_short}{abiflags}z?{installed_platbase}/include/python{py_version_short}{abiflags}z {base}/binz{base})stdlib platstdlibpurelibplatlibinclude platincludescriptsdataz{installed_base}/lib/pythonz{base}/lib/pythonz{installed_base}/include/pythonz{installed_base}/Libz {base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scripts) posix_prefix posix_homent posix_venvnt_venvrrvenvrr rpm_prefixc tjdd}|r|StjdvrdSd}tjdkr-tjdpd}||dStjdkrItjr=|dd tjtjd d tjd S|dd S)NPYTHONUSERBASE>wasivxworks emscriptencbtjtjj|SN)ospath expanduserjoin)argss "/usr/lib64/python3.11/sysconfig.pyjoinuserz_getuserbase..joinuser{s!w!!"',"5666rAPPDATA~PythondarwinLibraryr.z.local)r'environgetsysplatformname _framework version_info)env_baser-bases r, _getuserbaser?rsz~~.55H |88t777 w$(z~~i((/Cxh''' |xHCNHxY+A.FF1A!1DFFHH H 8C " ""r.z({userbase}/Python{py_version_nodot_plat}z6{userbase}/Python{py_version_nodot_plat}/site-packagesz0{userbase}/Python{py_version_nodot_plat}/Includez0{userbase}/Python{py_version_nodot_plat}/Scriptsz {userbase})rrrrrrrz0{userbase}/{platlibdir}/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/binz{userbase}/lib/pythonz#{userbase}/lib/python/site-packages)nt_user posix_userosx_framework_user real_prefixRPM_BUILD_ROOTz/localr4r5z"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}cF t|S#t$r|cYSwxYwr&)rOSError)r(s r,_safe_realpathrGs7~~  s   _homez\PCbuild_PYTHON_PROJECT_BASEc|!ddl}|dtddD]H}tjtjtd|rdSIdS) Nrz.check_home argument is deprecated and ignored.) stacklevel)Setupz Setup.localModulesTF)warningswarnDeprecationWarningr'r(isfiler* _PROJECT_BASE) check_homerOfns r,is_python_buildrVs~8 F(Q  8 8 8& 7>>"',,}iDD E E 44  5r.)rrrheadersz{srcdir}/Includez{projectbase}/.rc |jdi|S#t$rA} |jditjcYd}~S#t$rt |dwxYwd}~wwxYw)N)formatKeyErrorr'r6AttributeError)s local_varsvars r, _subst_varsr`s5qx%%*%%% 555 518))bj)) ) ) ) ) ) ) 5 5 5 C** 4 55s#  A6AAAAcv|}|D]\}}||vr |||<dSr&)keysitems) target_dict other_dict target_keyskeyvalues r, _extend_dictrisY""$$K &&((!! U +    C!!r.c|t/ttadtd<dtd<tS)Nz /usr/localr>platbase)_CONFIG_VARS_LOCALdictrrYr.r,_config_vars_localrns<6!/"3"344%16")5:& r.ci}|i}|dkr6tdkr+dtjvrt|t nt|t tjdkr|ddiz}t|D]b\}}tjdvrtj |}tj t||||<c|S)Nrz/usrrDr platlibdirlib)posixr) _PREFIXr'r6rirnrr:_INSTALL_SCHEMESrcr(r)normpathr`)schemevarsresrgrhs r, _expand_varsry%s C  . .6. *. 133 4 4 4 4T?,,--- w$,|U++&v.4466>> U 7o % .G&&u--E7##Kt$<$<==C Jr.c~tjdkrddddStjdkrtjrddddSddddS) Nrrr@)prefixhomeuserr2rrBrA)r'r:r8r9r;rYr.r,_get_preferred_schemesr~Fst w$      |x CN $ (   !  r.c|dkrtjtjkrdSt|}|tvrt |d|d|S)Nr{rz returned z., which is not a valid scheme on this platform)r8r{ base_prefixr~rt ValueError)rgrvs r,get_preferred_schemerZsx h3:8v # % %c *F %%          Mr.c tdS)Nr{)rrYr.r,get_default_schemerfs  ) ))r.TcR ddl}|i}i}i}t|tjd5}|}dddn #1swxYwY|D]}|ds|dkr0|t|} | r| dd\} } | } | dd} d | vr| || < | tvrtt| } | || <#t$r| dd || <YwxYwt|} d }t!| dkrLt#| D]'}||}|t&|}|t(|}|r1|r/||kr|n|} n|r|n|} | | d} d }| |vrt-|| }nz| |vrd }ns| t.jvrt.j| }nR| |vrG|d r|dd|vrd}n*d | z|vrd }n t-|d | z}ndx|| <}|r|| d}|d| |z|z}d |vr|||<s |tvrtt|}|||<n'#t$r|||<YnwxYw| ||d r|dd|vr|dd}||vr|||< |r|||<| |)t!| dkL|D]1\}} t9| t,r| ||<2|||S)Nrsurrogateescape)encodingerrors#r5rKz$$$)CFLAGSLDFLAGSCPPFLAGSTFPY_)reopenr8getfilesystemencoding readlines startswithstripmatch _variable_rxgroupreplace _ALWAYS_STRrintlistrblentuplesearch _findvar1_rx _findvar2_rxstartstrr'r6endremoverc isinstanceupdate)filenamerwkeep_unresolvedrdonenotdoneflineslinemnvtmpv variablesrenamed_variablesr:rhm1m2founditemafterks r,_parse_makefilerjs III  DG h!:!s1<>>> 7<<**OZ H HHr.c ttjdd}tjddtjdtjd|S)Nrr_PYTHON_SYSCONFIGDATA_NAME_sysconfigdata__)getattrr8rr'r6r7rr9) multiarchs r,_get_sysconfigdata_namersP*L"==I :>>$C#,CCCC CC  r.c ddl}i}t} t||nC#t$r6}d|}t |dr |d|jd}t|d}~wwxYwt } t|d5}t||dddn #1swxYwYnC#t$r6}d|}t |dr |d|jd}t|d}~wwxYwtr |d|d <t}d tj vr/ddl }||} || _| tj|<d t#d t$} t td r| dz } t'j| dt&j| |dz} t| dd5}|d|d|||dddn #1swxYwYtddd5}|| ddddS#1swxYwYdS)Nrz,invalid Python installation: unable to open strerrorz ()zutf-8)rLDSHARED BLDSHAREDr2z build/lib.rgettotalrefcountz-pydebugT)exist_okz.pywutf8zB# system configuration generated and used by the sysconfig module zbuild_time_vars = )streamzpybuilddir.txt)pprintrrrFrrrrrrrr8r9types ModuleTypebuild_time_varsmodulesr rr'makedirsr(r*write) rrwmakefileemsgconfig_hrr:rmodule pybuilddirdestfiles r,_generate_posix_varsrsEMMM D$&&H$'''' GXGG 1j ! ! *))AJ)))Ccll  %&&H (W - - - $ 1d # # # $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ GXGG 1j ! ! *))AJ)))Ccll - ,[ # $ $D3<# !!$''!%" DBlnnBB/@BBJs&''!j K T****w||Ju 55H hf - - -& * + + + $%%% d1 %%% &&&&&&&&&&&&&&& f 5 5 5  su( A(1A##A(:B4 B( B4(B,,B4/B,0B44 C4>1C//C4AH  H$'H$=I  I$'I$c t}t|ttdgd}|j}||dS)Nrr)r __import__globalslocalsrr)rwr:_temprs r, _init_posixr>sQA " $ $D tWYY3D2Eq I IE+OKK     r.cP ddl}td|d<td|d<td|d<|d|d<d |d <t|d <tjttj |d <d |d<dS)NrrLIBDESTr BINLIBDESTr INCLUDEPY EXT_SUFFIXz.exeEXEVERSIONBINDIRrTZPATH) _impr extension_suffixes_PY_VERSION_SHORT_NO_DOTr'r(dirnamerGr8 executable)rwrs r,_init_non_posixrFs5KKKx((DO!,//D ++D002215DDK.DOW__^CN%C%CDDDNDNNNr.c |i}ddl}|d}|d} |}|sn||}|rP|dd\}} |t vrt t|}n#t $rYnwxYw|||<n/||}|rd||d<|S)Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*) z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/ Tr5rK)rcompilereadlinerrrrr) fprwr define_rxundef_rxrrrrs r,rrXs   III @AAIzzCDDH%{{}}   OOD ! ! %771a==DAq  #%$$FF    DGGt$$A %#$QWWQZZ #%$ Ks=B B*)B*c tr>tjdkr&tjt d}nt }nt d}tj|dS)NrPCrz pyconfig-64.h)rr'r:r(r*rSr )inc_dirs r,rrzs\(* 7d? $gll=$77GG#GG=)) 7<< 1 11r.cF tttSr&)rsortedrtrYr.r,rrs6 ()) * **r.c tSr&) _SCHEME_KEYSrYr.r,r r s 4 r.cB |rt||St|Sr&)ryrt)rvrwexpands r,r r s, (FD)))''r.c2 t||||Sr&)r )r:rvrwr s r,r r s  VT6 * *4 00r.c tiattd<ttd<ttd<ttd<t td<t td<ttd<ttd<ttd <ttd <tj td < tj td <n#t$r d td <YnwxYw tj dd td<n#t$r d td<YnwxYwtjdkr(t#ttjtd<tjdkrt'tt(rt+td<tdt}tjdkr~t.rLtjt5}tj||}n+tjt5}t9|td<tjdkrddl}|t|r6g}|D]/}| t|0|StS)Nr{ exec_prefix py_versionpy_version_shortpy_version_nodotinstalled_baser>installed_platbaserk projectbaserprrr4py_version_nodot_platrVPATHrruserbasesrcdirr2r)! _CONFIG_VARSrs _EXEC_PREFIX _PY_VERSIONrr _BASE_PREFIX_BASE_EXEC_PREFIXrSr8rprr\winverrr'r:r_vpathr_HAS_USER_BASEr?r7rr(rrr*rGr9 _osx_supportcustomize_config_varsappend)r+rr>r!valsr:s r,rrs:= ") X&2 ]#%0 \"+< '(+C '()5 %&& V-> )*#/ Z &3 ]#%(^ \" *'*|L $ $ * * *')L $ $ $ * 747J4F4FsB4O4OL0 1 1 7 7 746L0 1 1 1 7 7d? / L ) ) )$'JL ! 7g  &  % % %  6(4~~L $!!(M:: 7g  B Bw'<'>'>??dF33 )>)@)@AA!/!7!7 X <8 # =      . .| < < <  0 0D KK ((.. / / / / s$7C C#"C#'(DD'&D'cF t|Sr&)rr7)r:s r,rrs#     & &&r.c tjdkrrdtjvrdSdtjvrdSdtjvrdStjStjdkst td s tjSd tjvrtjd Stj\}}}}}| d d }| d d}| d d}|dddkr|d|S|dddkrQ|ddkrDd}t|ddz d|dd}ddd}|d|tj z }n|dddkrddl m }|S|dddkrGd}ddl}|d }||} | r| }n:|ddd!kr,ddl} | t)|||\}}}|d|d|S)"Nramd64z win-amd64z(arm)z win-arm32z(arm64)z win-arm64rruname_PYTHON_HOST_PLATFORM/r rrlinuxsunosr5solarisrr4rK32bit64bit)ilaix) aix_platformcygwinz[\d.]+r2)r'r:r8versionlowerr9rr6r(rrmaxsize _aix_supportr4rrrrr!get_platform_osxr) osnamehostreleaser7machinebitnessr4rrel_rerr!s r,r r s( w$ ck'')) ) ; ck'')) ) ;  ))++ + ;| w'W!5!5|"*,3z122/1hjj+FD'7G\\^^ # #C , ,Fooc3''Gooc3''G bqbzWF%%G%%% w F 1:  2FWQZ1,<>&&|U A: U,,,    $3$$E$$$%%%%&&r.c dtjvrtdStdt dtdt dtdt dttdtttdtdS)Nz--generate-posix-varsz Platform: "rIzPython version: "zCurrent installation scheme: "Paths Variables) r8argvrrKr r rrNr rrYr.r,_mainrSss4#(* )  ) ) )*** 5022 5 5 5666 B+=+?+? B B BCCC GGG%%% GGG _../////r.__main__r&)NT)Kr'r8os.pathrr__all__rrtr:r?r rr{rr6_prefix_additionr r7splitrr<rrr(rursrrrbase_exec_prefixrr _USER_BASErrrrGrrrSgetcwdr _sys_homerrVrrvr`rirlrnryr~rrrrrrrrrrrr r r rrr r rFrNrS__name__rYr.r,r^sy3 $$$$$$$$     KHFS I M   0)&&48   )"---1# 8KHFS I M   )"---1#   }HHV7d?>/ :V/ =V "2.!A ###,,..,ADOOII ILNND' .1<<D' )L m $ $ J#/! BJ&  # k!!!$ '*BBS-=a-@BB!.q1H33CA3FHH '  3: & &w00 w00 G$$S%9::  5 / -  >0GOONN3>$B$BCCMM#N929;;//M GC$ ' '  M7d?% ~m$$// Nl555 6 688%$ RZ'G"N2:.D#EFFM !!  022 "&)"9-y.y 1}555!!!B(   ***}}}}@ I I I===~!!!   $D 2 2 2+++  ('))T ( ( ( (-,..T$1111MMM`'''N+N+N+b   4&&& 0 0 0 z  EGGGGG  r.