AlkantarClanX12

Your IP : 3.139.234.124


Current Path : /opt/alt/python39/lib64/python3.9/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python39/lib64/python3.9/distutils/__pycache__/sysconfig.cpython-39.opt-2.pyc

a

R�f�P�@s�ddlZddlZddlZddlZddlmZej�ej�Z	ej�ej
�Zej�ej�Z
ej�ej�Zdejvr�ej�ejd�Zn&ejr�ej�ej�ej��Zne��Zdd�Zeedd�Zejdkr�d	d
�Zee�Zee�Zdd�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)ZSetupzSetup.localZModulesTF)�os�path�isfile�join)�d�fn�r
�8/opt/alt/python39/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<tjdkr�|r�tj�	|d�Stj�	|dd�Sntdtj��dS)Nr�librz
site-packagesrZLibz?I don't know where Python installs its library on platform '%s')rr �EXEC_PREFIXrrr!r�
platlibdirrrrr)r'�standard_libr(�libdirZ	libpythonr
r
r�get_python_libs.

�
��r/c	Cs�|jdk�r�tjdkr8td�s8ddl}|�t�dtd<tdddd	d
ddd
�\}}}}}}}}	dtj	vr�tj	d}
tjdkr�d
tj	vr�|�
|�r�|
|t|�d�}|
}dtj	vr�tj	d}d
tj	vr�tj	d
}dtj	vr�tj	d}n|d}dtj	v�r|dtj	d}dtj	v�r<|dtj	d}|dtj	d}dtj	v�r~|dtj	d}|dtj	d}|dtj	d}dtj	v�r�tj	d}d
tj	v�r�|dtj	d
}n|d|	}|d|}
|j||
|
d|||||d�||_
dS)NZunix�darwinZCUSTOMIZED_OSX_COMPILERr�TrueZCCZCXX�CFLAGSZCCSHAREDZLDSHAREDZSHLIB_SUFFIXZARZARFLAGSZCPPz -E�LDFLAGS� �CPPFLAGS)Zpreprocessor�compilerZcompiler_soZcompiler_cxxZ	linker_soZ
linker_exe�archiver)Z
compiler_typer�platformr#�_osx_support�customize_compiler�_config_vars�get_config_varsr�environr�lenZset_executablesZshared_lib_extension)r6r9ZccZcxxZcflagsZccsharedZldsharedZshlib_suffixZarZar_flagsZnewccZcppr7Zcc_cmdr
r
rr:�sf


��


��






�	r:cCsDtr,tjdkr"tj�tptd�}q6tp(t}n
tdd�}tj�|d�S)Nrrr�r'z
pyconfig.h)r"rr!rrrrr))Zinc_dirr
r
r�get_config_h_filename�s


r@cCs\trtj�tptd�Stddd�}d�t�t	�}t
tjd�rL|dtjj
7}tj�||d�S)NZMakefilerr�r'r-zconfig-{}{}�
_multiarchz-%s)r"rrrrrr/�formatrr%�hasattrr�implementationrB)Zlib_dirZconfig_filer
r
r�get_makefile_filenamesrFcCs�|duri}t�d�}t�d�}|��}|s.q�|�|�}|rv|�dd�\}}zt|�}WntyjYn0|||<q |�|�}|r d||�d�<q |S)Nz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rrr)�re�compile�readline�match�group�int�
ValueError)�fp�gZ	define_rxZundef_rx�line�m�n�vr
r
r�parse_config_hs"




rTz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}c	Cs�ddlm}||ddddd�}|dur*i}i}i}|��}|durDq�t�|�}|r2|�dd�\}}	|	��}	|	�dd�}
d	|
vr�|	||<q2zt|	�}	Wn"t	y�|	�dd	�||<Yq20|	||<q2d
}|�rpt
|�D�]�}||}
t�|
�p�t
�|
�}|�rf|�d�}d}||v�r"t||�}n�||v�r2d}nx|tjv�rJtj|}n`||v�r�|�d
��rx|dd�|v�rxd}n$d
||v�r�d}nt|d
|�}nd||<}|�rl|
|��d�}|
d|���||}
d	|v�r�|
||<nxzt|
�}
Wn t	�y|
��||<Yn
0|
||<||=|�d
��rl|dd�|v�rl|dd�}||v�rl|
||<q�||=q�q�|��|��D]"\}}	t|	t��r�|	��||<�q�|�|�|S)Nr)�TextFiler�surrogateescape)Zstrip_commentsZskip_blanksZ
join_lines�errorsrz$$r�$)r2r3r5TFZPY_�)Zdistutils.text_filerUrI�_variable_rxrJrK�strip�replacerLrM�list�_findvar1_rx�search�_findvar2_rx�strrr=r�end�start�close�items�
isinstance�update)r	rOrUrNZdoneZnotdonerPrQrRrSZtmpvZrenamed_variablesr!�value�found�itemZafter�kr
r
r�parse_makefile1s�








�



rlcCsVt�|�pt�|�}|rR|��\}}|d|�|�|�d��||d�}qqRq|S)Nrr)r^r_r`�span�getrK)�s�varsrQZbegrbr
r
r�expand_makefile_vars�s*rqc
CsVtj�ddjtjtjttjdd�d��}t	|t
�t�dgd�}|j}ia
t
�|�dS)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rBr)Zabir8Z	multiarch�build_time_varsr)rr=rnrCr�abiflagsr8�getattrrE�
__import__�globals�localsrrr;rg)r!Z_temprrr
r
r�_init_posix�s��rxcCs~i}tddd�|d<tddd�|d<tdd�|d<t��d|d<d	|d
<t��dd�|d
<tj�tj�	t
j��|d<|adS)NrrrAZLIBDESTZ
BINLIBDESTr?Z	INCLUDEPY�
EXT_SUFFIXz.exeZEXE�.rZVERSIONZBINDIR)
r/r)�_imp�extension_suffixesrr\rr�dirname�abspathr�
executabler;)rOr
r
r�_init_nt�sr�cGs\tdu�r*t��dtj�}|r(|�niattd<ttd<t�d�}|durV|td<t�dt�}tjdkr�tr�tj	�
t��}tj	�||�}ntj	�
t��}tj	�
tj	�|��td<t�rtjdk�rt}tj	�td��s|t��k�rtj	�|td�}tj	�|�td<tjdk�r*d	dl}|�t�|�rTg}|D]}|�t�|���q8|StSdS)
NZ_init_r(�exec_prefixry�SOrrr0r)r;rvrnrr!rr+rr"rr}rFrr~r$�isabs�getcwdrr8r9Zcustomize_config_vars�append)�args�funcr�r�baser9Zvalsr!r
r
rr<�sB



�
r<cCs*|dkrddl}|�dtd�t��|�S)Nr�rz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningr<rn)r!r�r
r
rr##sr#)rN)rrN)N)N)2r{rrGrrWrrr$r(rr�r+�base_prefixr �base_exec_prefixrr=r~rrr}r�rrtrr!rrr"r%rs�AttributeErrorrr)r/r:r@rFrTrHrZr^r`rlrqr;rxr�r<r#r
r
r
r�<module>sX



(
.I





jJ