U §Î.ePã@s¾ddlZddlZddlZddlZddlmZddlmZmZej   ej ¡Z ej   ej ¡Zej   ej¡Zej   ej¡Zdejkr’ej  ejd¡Zn&ejr°ej  ej  ej¡¡Zne ¡Zdd„ZeeddƒZejd krîd d „ZeeƒZeeƒZd d „ZeƒZdZ zesej!Z Wne"k r&YnXdd„Z#d,dd„Z$d-dd„Z%dd„Z&dd„Z'dd„Z(d.dd„Z)e *d¡Z+e *d¡Z,e *d¡Z-d/d d!„Z.d"d#„Z/da0d$d%„Z1d&d'„Z2d(d)„Z3d*d+„Z4dS)0éNé)ÚDistutilsPlatformError)Ú get_platformÚget_host_platformZ_PYTHON_PROJECT_BASEcCs,dD]"}tj tj |d|¡¡rdSqdS)N)ZSetupz Setup.localZModulesTF)ÚosÚpathÚisfileÚjoin)ÚdÚfn©r ú+/usr/lib64/python3.8/distutils/sysconfig.pyÚ_is_python_source_dir+srÚ_homeÚntcCs0|r,tj |¡ tj tj td¡¡¡r,tS|S)NZPCbuild)rrÚnormcaseÚ startswithr ÚPREFIX)r r r r Ú _fix_pcbuild4s ÿrcCstr ttƒSttƒS)N)Ú _sys_homerÚ project_baser r r r Ú _python_build<srÚcCsdtjdd…S)Nz%d.%dé)ÚsysÚ version_infor r r r Úget_python_versionPsrcCs¼|dkr|rtpt}tjdkrjtrL|r.tp,tStj t dƒd¡}tj  |¡Sdt ƒt }tj |d|¡Stjdkrªtrœtj |d¡tjj tj |d¡Stj |d¡Stdtjƒ‚dS) NÚposixÚsrcdirZIncludeÚpythonZincluderÚPCzFI don't know where Python installs its C header files on platform '%s')ÚBASE_EXEC_PREFIXÚ BASE_PREFIXrÚnameÚ python_buildrrrr Úget_config_varÚnormpathrÚ build_flagsÚpathsepr)Ú plat_specificÚprefixZincdirZ python_dirr r r Úget_python_incXs*      ÿÿÿr+cCs°|dkr&|r|rtpt}n |r"tp$t}tjdkrp|s8|r>d}nd}tj ||dtƒ¡}|r`|Stj |d¡SnrÚendÚstartÚcloseÚitemsÚ isinstanceÚupdate)r rPrVrOZdoneZnotdonerQrRrSrTZtmpvZrenamed_variablesr#ÚvalueÚfoundÚitemZafterÚkr r r Úparse_makefile/s„                 ÿ      rmcCsVt |¡pt |¡}|rR| ¡\}}|d|…| | d¡¡||d…}qqRq|S)Nrr)r_r`raÚspanÚgetrL)ÚsÚvarsrRZbegrcr r r Úexpand_makefile_vars™s  *rrc CsVtj ddjtjtjttjddƒd¡}t |t ƒt ƒdgdƒ}|j }ia t  |¡dS)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rCr)Zabir9Z multiarchÚbuild_time_varsr)rr>rorDrÚabiflagsr9ÚgetattrrFÚ __import__ÚglobalsÚlocalsrsr<rh)r#Z_temprsr r r Ú _init_posix´s ýÿrycCs~i}tddd|d<tddd|d<tdd|d<t ¡d|d<d |d <tƒ d d ¡|d <tj tj  t j ¡¡|d<|a dS)NrrrBZLIBDESTZ BINLIBDESTr@Z INCLUDEPYÚ EXT_SUFFIXz.exeZEXEÚ.rZVERSIONZBINDIR) r0r+Ú_impÚextension_suffixesrr]rrÚdirnameÚabspathrÚ executabler<)rPr r r Ú_init_ntÄsrcGs\tdkr*tƒ dtj¡}|r(|ƒniattd<ttd<t d¡}|dk rV|td<t dt¡}tjdkrœtrŽtj   t ƒ¡}tj   ||¡}ntj   t ƒ¡}tj   tj  |¡¡td<tr tjdkr t}tj  td¡s |t ¡kr tj   |td¡}tj  |¡td<tjdkr*d dl}| t¡|rTg}|D]}| t |¡¡q8|StSdS) NZ_init_r*Ú exec_prefixrzÚSOrrr1r)r<rwrorr#rr.rr$rr~rGr rr&ÚisabsÚgetcwdrr9r:Zcustomize_config_varsÚappend)ÚargsÚfuncrƒrÚbaser:Zvalsr#r r r r=×sB     ÿ  r=cCs*|dkrddl}| dtd¡tƒ |¡S)Nrƒrz SO is deprecated, use EXT_SUFFIXr)ÚwarningsÚwarnÚDeprecationWarningr=ro)r#rŠr r r r%!sr%)rN)rrN)N)N)5r|rrHrrXrÚutilrrrr&r*rr‚r.Ú base_prefixr"Úbase_exec_prefixr!r>rrr€r~r…rrurr#rrr$r'rtÚAttributeErrorrr+r0r;rArGrUrIr[r_rarmrrr<ryrr=r%r r r r Ú sZ      ( +I      jJ