U ËAš`/Uã@sÊdZddlZddlZddlZddlZddlZddlmZddlm Z m Z ej   ej ¡Zej   ej¡Zej   ej¡Zej   ej¡Zdejkržej  ejd¡Zn&ejr¼ej  ej  ej¡¡Zne ¡Zdd„Zeed dƒZejd krúd d „ZeeƒZeeƒZd d„Z e ƒZ!dZ"ze!sej#Z"Wne$k r2YnXdd„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/d0d!d"„Z0d#d$„Z1da2d%d&„Z3d'd(„Z4d)d*„Z5d+d,„Z6dS)1aProvide 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é)Ú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/lib/python3.8/distutils/sysconfig.pyÚ_is_python_source_dir,srZ_homeÚntcCs0|r,tj |¡ tj tj td¡¡¡r,tS|S)NZPCbuild)rrÚnormcaseÚ startswithr ÚPREFIX)r r r r Ú _fix_pcbuild5s ÿrcCstr ttƒSttƒS)N)Ú _sys_homerÚ project_baser r r r Ú _python_build=srÚcCsdtjdd…S)z–Return a string containing the major and minor Python version, leaving off the patchlevel. Sample return values could be '1.5' or '2.2'. z%d.%dNé)ÚsysÚ version_infor r r r Úget_python_versionQsrcCsÖ|dkr|rtpt}tjdkr„trL|r.tp,tStj t dƒd¡}tj  |¡Sdt ƒt }tst|rtddl }| d¡Stj |d|¡Stjd krÄtr¶tj |d¡tjjtj |d ¡Stj |d¡Std tjƒ‚dS) a¤Return 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'. NÚposixÚsrcdirZIncludeÚpythonrZ platincludeZincluderÚ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Ú sysconfigZget_pathÚpathsepr)Ú plat_specificÚprefixZincdirZ python_dirr'r r r Úget_python_incYs0       ÿÿÿr+cCsô| ptj |¡dk}|dkr<|r0|r*tp,t}n |r8tp:t}tjdkr´tj |ddt ƒ¡}|rd|S|r¤dtj kr¤dtj kr¤dt j kr¤t j t jkr¤tj |dd d ¡Stj |d ¡SnìsB     ÿ  r>cCs*|dkrddl}| dtd¡tƒ |¡S)z“Return the value of a single variable using the dictionary returned by 'get_config_vars()'. Equivalent to get_config_vars().get(name) r…rNz SO is deprecated, use EXT_SUFFIXr)ÚwarningsÚwarnÚDeprecationWarningr>rq)r"rŒr r r r$6sr$)rN)rrN)N)N)7Ú__doc__r~rrKrr@r[rÚutilrrrr%r*rr„r,r/r!Úbase_exec_prefixr r-rrr‚r€r‡rrwrr"rrr#r&rvÚAttributeErrorrr+r1r<rDrJrXrLr^rarcrortr=r{rƒr>r$r r r r Ús^       + .X      jJ