/snap/core20/2769/usr/lib/python3.8/distutils/__pycache__
Edit: /snap/core20/2769/usr/lib/python3.8/distutils/__pycache__/sysconfig.cpython-38.pyc (12807B)
U
ËAš`/U ã @ sÊ d Z ddlZddlZddlZddlZddlZddlmZ ddlm 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údd„ ZeeƒZeeƒZd
d„ Z e ƒ Z!dZ"ze!sej#Z"W n e$k
r2 Y nX dd„ 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 )1a Provide 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_BASEc C s, dD ]"}t j t j | d|¡¡r dS qdS )N)ZSetupzSetup.localZModulesTF)ÚosÚpathÚisfileÚjoin)ÚdÚfn© r ú)/usr/lib/python3.8/distutils/sysconfig.pyÚ_is_python_source_dir, s r Z_homeÚntc C s0 | r,t j | ¡ t j t j td¡¡¡r,tS | S )NZPCbuild)r r ÚnormcaseÚ
startswithr ÚPREFIX)r
r r r
Ú_fix_pcbuild5 s
ÿr c C s t rtt ƒS ttƒS )N)Ú _sys_homer Úproject_baser r r r
Ú
_python_build= s r Ú c C s dt jdd… 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_versionQ s r c C sÖ |dkr| rt pt}tjdkr„trL| r.tp,tS tj t dƒd¡}tj
|¡S dtƒ t }tst| rtddl
}| d¡S tj |d|¡S tjd krÄtr¶tj |d¡tjj tj |d
¡ S tj |d¡S tdtj ƒ‚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Úpythonr ZplatincludeZincluder ÚPCzFI don't know where Python installs its C header files on platform '%s')ÚBASE_EXEC_PREFIXÚBASE_PREFIXr ÚnameÚpython_buildr r r r Úget_config_varÚnormpathr Úbuild_flagsÚ sysconfigZget_pathÚpathsepr )Ú
plat_specificÚprefixZincdirZ
python_dirr' r r r
Úget_python_incY s0
ÿÿÿr+ c C sô | pt j |¡dk}|dkr<|r0| r*tp,t}n| r8tp:t}t jdkr´t j |ddt ƒ ¡}|rd|S |r¤dt j
kr¤dt j
kr¤dtjkr¤tj
tjkr¤t j |dd d
¡S t j |d¡S n