o
Xai~T ã @ s¶ d Z ddlZddlZddlZddlZddlmZ dejv Zej
ej¡Zej
ej
¡Zej
ej¡Zej
ej¡Zdejv rHej ejd ¡ZnejrWej ej ej¡¡Zne ¡ Zdd„ Zeed dƒZejd
krvdd„ ZeeƒZeeƒZd
d„ Zeƒ ZdZ zes…ej!Z W n e"y Y nw 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-d/d!d"„Z.d#d$„ Z/da0d%d&„ Z1d'd(„ Z2d)d*„ Z3d+d,„ Z4dS )0a 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é )ÚDistutilsPlatformErrorZ__pypy__Z_PYTHON_PROJECT_BASEc C s, dD ]}t j t j | d|¡¡r dS qdS )N)ÚSetupzSetup.localÚModulesTF)ÚosÚpathÚisfileÚjoin)ÚdÚfn© r ú˜/builddir/build/BUILDROOT/alt-python310-setuptools-58.3.0-4.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/setuptools/_distutils/sysconfig.pyÚ_is_python_source_dir, s
ÿr Ú_homeÚntc C s0 | rt j | ¡ t j t j td¡¡¡rtS | 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à |du r
| rt p t}tjdkrItrtjdk rtj |d¡S t r4| r%t
p$tS tj tdƒd¡}tj
|¡S tr8dnd}|tƒ t }tj |d|¡S tjd krit rbtj |d¡tjj tj |d
¡ S tj |d¡S tdtj ƒ‚)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©é é ÚincludeÚsrcdirÚIncludeÚpypyÚpythonr ÚPCzFI don't know where Python installs its C header files on platform '%s')ÚBASE_EXEC_PREFIXÚBASE_PREFIXr ÚnameÚIS_PYPYr r r r Úpython_buildr r Úget_config_varÚnormpathr Úbuild_flagsÚpathsepr )Ú
plat_specificÚprefixÚincdirÚimplementationÚ
python_dirr r r
Úget_python_incY s0
ÿÿÿr6 c C sþ t r!tjdk r!|du r
t}|rtj |dtjd ¡S tj |d¡S |du r4|r.| r+tp,t }n| r2t
p3t}tjdkrb| s=|rDttddƒ}nd}t rJd nd
}tj |||t
ƒ ¡}|r[|S tj |d¡S tjdkrx|rptj |d¡S tj |dd¡S td
tj ƒ‚)aS Return 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'.
r Nz
lib-pythonr z
site-packagesr Ú
platlibdirÚlibr% r&