%PDF- %PDF-
Direktori : /snap/core18/current/usr/lib/python3.6/distutils/__pycache__/ |
Current File : //snap/core18/current/usr/lib/python3.6/distutils/__pycache__/sysconfig.cpython-36.pyc |
3 ��] T � @ s� d Z ddlZddlZddlZddlZddlZddlmZ ejj ej �Zejj ej�Z ejj ej�Zejj ej�Zdejkr�ejjejd �Znejjejjej��Zejdkr�ej� jd,�r�ejjejje��Zd d � Zeedd�Ze�rejdk�rej� jd-��rejjejje��Zdd � Ze� ZdZye�s:ej ZW n e!k �rR 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%� Z0d&d'� Z1d(d)� Z2d*d+� Z3dS )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: <fdrake@acm.org> � 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.localZModulesTF)r r )�os�path�isfile�join)�d�fn� r �)/usr/lib/python3.6/distutils/sysconfig.py�_is_python_source_dir* s r Z_homec C s t rtt �S tt�S )N)� _sys_homer �project_baser r r r � _python_build3 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_versionE s r c C s� |dkr| rt pt}tjdkr�trL| r.tp,tS tjjt d�d�}tjj |�S dt� t }t rv| rvddl }|jd�S tjj|d|�S tjd kr�tjj|d�S td 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�pythonr ZplatincludeZincluder 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_flags� sysconfigZget_pathr )� plat_specific�prefixZincdirZ python_dirr$ r r r �get_python_incM s$ r'