a ضZg�P�@s�ddlZddlZddlZddlZddlmZej�ej�Z ej�ej �Z ej�ej �Z ej�ej�Zdejvr�ej�ejd�Zn&ejr�ej�ej�ej��Zne��Zdd�Zeedd�Zejdkr�d d �Zee�Zee�Zd d �Ze�Zd Zzes�ejZWne�yYn0dd�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_BASEcCs,dD]"}tj�tj�|d|��rdSqdS)N)ZSetupz Setup.localZModulesTF)�os�path�isfile�join)�d�fn�r �+/usr/lib64/python3.9/distutils/sysconfig.py�_is_python_source_dir*sr �_home�ntcCs0|r,tj�|��tj�tj�td���r,tS|S)NZPCbuild)rr�normcase� startswithr�PREFIX)rr r r � _fix_pcbuild3s �rcCstr tt�Stt�S)N)� _sys_homer � project_baser r r r � _python_build;sr�cCsdtjdd�S)Nz%d.%d�)�sys� version_infor r r r �get_python_versionOsrcCs�|dur|rtpt}tjdkrjtrL|r.tp,tStj�t d�d�}tj� |�Sdt �t }tj�|d|�Stjdkr�tr�tj�|d�tjj tj�|d�Stj�|d�Stdtj��dS) 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_buildrrrr�get_config_var�normpathr� build_flags�pathsepr)� plat_specific�prefixZincdirZ python_dirr r r �get_python_incWs*      ���r)cCs�|dur&|r|rtpt}n |r"tp$t}tjdkrr|s8|r@tj}nd}tj� ||dt ��}|rb|Stj� |d�Sn sX      ( .I      jJ