Hacked By AnonymousFox
B
f�P � @ s� d dl Z d dlZd dlZd dlZddlmZ ej�ej�Z ej�ej
�Zej�ej�Z
ej�ej�Zdejkr�ej�ejd �Zn&ejr�ej�ej�ej��Zne�� Zdd� Zeedd�Zejdkr�d d
� Zee�Zee�Zdd� Ze� Zd
Zyes�ejZW n ek
�r 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*d.dd �Z+d!d"� Z,da-d#d$� Z.d%d&� Z/d'd(� Z0d)d*� Z1dS )/� N� )�DistutilsPlatformErrorZ_PYTHON_PROJECT_BASEc C s. x(dD ] }t j�t j�| d|��rdS qW dS )N)z
Setup.distzSetup.localZModulesTF)�os�path�isfile�join)�d�fn� r
�8/opt/alt/python37/lib64/python3.7/distutils/sysconfig.py�_is_python_source_dir, s
r �_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 jd d� S )Nz%d.%d� )�sys�version_infor
r
r
r �get_python_versionQ s r c C s� |d kr| rt pt}tjdkrjtrL| r.tp,tS tj�t d�d�}tj�
|�S dt� t }tj�|d|�S tjdkr�tr�tj�|d�tjj
tj�|d� S tj�|d�S tdtj ��d S ) N�posix�srcdirZInclude�pythonZincluder �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�pathsepr )�
plat_specific�prefixZincdirZ
python_dirr
r
r �get_python_incY s$
r) c C s� |d kr&|r| rt pt}n| r"tp$t}tjdkrp| s8|r>d}nd}tj�||dt� �}|r`|S tj�|d�S n<tjdkr�|r�tj�|d�S tj�|dd�S nt dtj ��d S ) Nr �lib64�libr z
site-packagesr ZLibz?I don't know where Python installs its library on platform '%s')
r r �EXEC_PREFIXr r r! r r r r )r'