3
NOÖjÈN ã @ sÞ d Z ddlZddlZddlZddlZddlmZ ejjej ƒZ
ejjejƒZejjej
ƒZejjejƒZdejkr†ejjejd ƒZnejjejjejƒƒZejdkrÈejƒ jd,ƒrÈejjejjeƒƒZd d
„ ZeeddƒZeoöejdkoöejƒ jd-ƒ�rejjejjeƒƒZdd
„ Zeƒ ZdZye�s.ejZW n e k
�rF Y nX dd„ Z!d.dd„Z"d/dd„Z#dd„ Z$dd„ Z%dd„ Z&d0dd„Z'ej(dƒZ)ej(dƒZ*ej(dƒZ+d1d d!„Z,d"d#„ Z-da.d$d%„ Z/d&d'„ Z0d(d)„ Z1d*d+„ Z2dS )2a� 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_PYTHON_PROJECT_BASEÚntú\pcbuild\win32ú\pcbuild\amd64c C s. x(dD ] }t jjt jj| d|ƒƒrdS qW dS )Nú
Setup.distúSetup.localÚModulesTF)r r )ÚosÚpathÚisfileÚjoin)ÚdÚfn© r ú+/usr/lib64/python3.6/distutils/sysconfig.pyÚ_is_python_source_dir) s
r Ú_homec C s t rtt ƒS ttƒS )N)Ú _sys_homer Úproject_baser r r r Ú
_python_build2 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_versionD s r c C s” |dkr| rt pt}tjdkrjtrL| r.tp,tS tjjt dƒdƒ}tjj
|ƒS dtƒ t }tjj|d|ƒS tjdkr‚tjj|dƒS t
dtj ƒ‚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ÚpythonÚincluder zFI 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_flagsr )Ú
plat_specificÚprefixZincdirZ
python_dirr r r Úget_python_incL s
r) c C s° |dkr&|r| rt pt}n| r"tp$t}tjdkrp| s8|r>d}nd}tjj||dtƒ ƒ}|r`|S tjj|dƒS n