Wc0xdZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z m ZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%e#Z&ej'de(d dd Zee d Z)eee&Zeee&Z*dd Z+dZ, esej-Z,n #e.$rYnwxYwdZ/ddZ0ddZ1dS)aProvide access to Python's configuration information. The specific configuration variables available depend heavily on the platform and configuration. The values may be retrieved using get_config_var(name), and the list of variables is available via get_config_vars().keys(). Additional convenience functions are also available. Written by: Fred L. Drake, Jr. Email: N)partial)DistutilsPlatformError)_PREFIX _BASE_PREFIX _EXEC_PREFIX_BASE_EXEC_PREFIX _PROJECT_BASE _PYTHON_BUILD _init_posixparse_config_h_init_non_posix _variable_rx _findvar1_rx _findvar2_rxexpand_makefile_varsis_python_buildget_config_h_filenameget_config_varget_config_varsget_makefile_filenameget_python_versionzCThe distutils.sysconfig module is deprecated, use sysconfig instead) stacklevelc$t||S)N)vars)sysconfig_parse_config_h)fpgs ,/usr/lib64/python3.11/distutils/sysconfig.pyr r =s #BQ / / //T) check_homec4ddlm}||dddd}|i}i}i} |}|ntjt |}|r|dd\}} | } | d d } d | vr| ||<n? t| } | ||<n)#t$r| d d ||<YnwxYwd } |rt|D]} || } tj t| ptj t| }|rk|d}d}||vrt||}nz||vrd }ns|t jvrt j|}nR|| vrG| dr| dd| vrd }n*d|z|vrd }n t|d|z}nd x||<}|r| |d}| d||z|z} d |vr| || <8t| } | || <n'#t$r| || <YnwxYw|| =| dr| dd| vr| dd} | |vr| || <|| =|||D]1\}} t/| tr| ||<2|||S)zParse a Makefile-style file. A dictionary containing name/value pairs is returned. If an optional dictionary is passed in as the second argument, it is used instead of a new dictionary. r)TextFilersurrogateescape)strip_comments skip_blanks join_lineserrorsNTrz$$$)CFLAGSLDFLAGSCPPFLAGSFPY_)distutils.text_filer$readlinerematchrgroupstripreplaceint ValueErrorlistsearchrrstrosenviron startswithendstartcloseitems isinstanceupdate)fnrr$rdonenotdonelinemnvtmpvrenamed_variablesnamevaluefounditemafterks r parse_makefilerUHs -,,,,, "QA!L] ^ ^ ^B  DG {{}}    H\4 ( (  771a==DAq A99T2&&Dd{   AA  DGG "333iic22DGGG3! 4: 0"MM/ "/ "DDME ,..P")L%2P2PA, "GGAJJ9(tAw<O2O4!g-4 % #4 ?33%''DGd3!!%%''((OE!*17799*-4ur?lenset_executablesshared_lib_extension)rerpcccxxcflagsccsharedldshared shlib_suffixarar_flagsnewcccpprjcc_cmds r rqrqs '>5 <8 # A ##$=>> A####// ===:@ 67 D%& ND) U U JS&(HlB 2:  Jt$E ( 6""*4 6 ++B// 6 !8CGGHH#55B BJ  $*U#C  # .z*-H BJ  *U#CCu*C  " >#~ 9(==H rz ! =c\BJx$88F#~ 8(<>H 2:  "D!B  " +Cx"*Y"77HHCx(*HcF"   x/ !   )5%%%}>5>5r!c||rtpt}tjdkrtrU|rt Stjtdd}tj |Sdtztz}tj|d|StjdkrztrStj|dtjj ztj|dzStj|dStd tjz) aReturn the directory containing installed Python header files. If 'plat_specific' is false (the default), this is the path to the non-platform-specific header files, i.e. Python.h and so on; otherwise, this is the path to platform-specific header files (namely pyconfig.h). If 'prefix' is supplied, use it instead of sys.base_prefix or sys.base_exec_prefix -- i.e., ignore 'plat_specific'. NposixsrcdirIncludepythonincludentPCzFI don't know where Python installs its C header files on platform '%s')BASE_EXEC_PREFIX BASE_PREFIXr=rO python_build project_basepathjoinrnormpathr build_flagspathsepr) plat_specificprefixincdir python_dirs r get_python_incrs-C3#3B{ w'*  0  0##nX&>&> JJw''/// 2 4 44{B w||FIz::: D *  0GLL33bgoEGLL../ 0w||FI...$ !# )** *r!c|#|r|rtpt}n|rtpt}tjdkrg|s|r t j}nd}tj ||dtz}|r|Stj |dStjdkrC|r tj |dStj |ddStdtjz) aSReturn the directory containing the Python library (standard or site additions). If 'plat_specific' is true, return the directory containing platform-specific modules, i.e. any module from a non-pure-Python module distribution; otherwise, return the platform-shared library directory. If 'standard_lib' is true, return the directory containing standard Python library modules; otherwise, return the directory for site-specific modules. If 'prefix' is supplied, use it instead of sys.base_prefix or sys.base_exec_prefix -- i.e., ignore 'plat_specific'. Nrlibrz site-packagesrLibz?I don't know where Python installs its library on platform '%s') rr EXEC_PREFIXPREFIXr=rOrl platlibdirrrrr)r standard_librlibdir libpythons r get_python_libr0s=  ="7'7F;FF"2{,@,@!@BB  < 7<< ?;; ; D*  @7<<.. .7<<?? ?$ !# )** *r!)N)rN)rrN)2__doc___impr=r3rlwarnings functoolsrr)r sysconfigrrrrrrr rr rr rr sysconfig_init_posixr rrrrrrrrrrrrrnwarnDeprecationWarning _python_build_init_ntrUrabiflagsAttributeErrorrqrrr!r rsQ   ******:   I0000D999 g*L99 7?L 1 1 f f f f ^  #l     D D5D5D5N%*%*%*%*P************s B$$B,+B,